/* --- css/partials/app-base.css --- */
/* ===== Clean Corporate + Glassmorphic Design System ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --mesh-1: #e0e7ff;
    --mesh-2: #ede9fe;
    --mesh-3: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.72);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --shadow-soft: 0 14px 36px -10px rgba(15, 23, 42, 0.2), 0 6px 18px -6px rgba(37, 99, 235, 0.14);
    --mobile-nav-height: 4.25rem;
    --app-header-height: 3.75rem;
    --planning-input-height: 4.25rem;
    /* موبایل/تبلت: ستون خوانا؛ دسکتاپ در app-desktop-stack عریض می‌شود */
    --app-frame-max: 36rem;
    --app-frame-gutter: 0.75rem;
    --app-sidebar-width: 0px;
    --app-nav-shell-bottom: 0.5rem;
    --app-nav-shell-padding-block: 0.7rem;
    --app-fab-gap-above-nav: 0.75rem;
    --app-fab-left: max(1rem, env(safe-area-inset-left, 0px));
    --app-fab-bottom: calc(
        var(--app-nav-shell-bottom)
        + var(--app-nav-shell-padding-block)
        + var(--mobile-nav-height)
        + var(--app-fab-gap-above-nav)
        + env(safe-area-inset-bottom, 0px)
    );
    --field-control-min-height: 3rem;
    --field-control-height: 3.25rem;
    --field-control-padding-x: 0.875rem;
    --field-control-line-height: 1.35;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--mesh-3);
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 0%, var(--mesh-1) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, var(--mesh-2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, #dbeafe 0%, transparent 45%),
        linear-gradient(165deg, #f8fafc 0%, #eef2ff 40%, #f1f5f9 100%);
    background-attachment: fixed;
}

#main-container {
    width: 100%;
    max-width: var(--app-frame-max);
    margin-inline: auto;
    padding-inline: var(--app-frame-gutter);
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
    overflow-x: hidden;
}

/* تبلت: کمی پهن‌تر، همچنان تک‌ستونه با نوار پایین */
@media (min-width: 768px) {
    :root {
        --app-frame-gutter: 1rem;
        --app-frame-max: 42rem;
    }

    #main-container {
        max-width: var(--app-frame-max);
    }
}

.app-shell {
    min-height: 100vh;
    overflow: visible;
    width: 100%;
}

.app-main-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mobile-nav-shell,
.app-nav-shell {
    position: fixed;
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(
        calc(100vw - (2 * var(--app-frame-gutter))),
        calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)))
    );
    max-width: calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)));
    z-index: 60;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow:
        0 12px 40px -8px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.4rem;
    box-sizing: border-box;
}

.mobile-bottom-nav {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    min-height: var(--mobile-nav-height);
    z-index: 1;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(0.08rem, 0.35vw, 0.22rem);
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0.35rem;
    scrollbar-width: none;
}

#mobile-nav .nav-item:not(.nav-item--hidden) {
    scroll-snap-align: center;
    transform: none;
    line-height: 1.25;
}

#mobile-nav .nav-item > .nav-label {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

#mobile-nav .nav-item.active {
    transform: none;
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

#mobile-nav .nav-item svg {
    width: clamp(1.15rem, 4.5vw, 1.5rem);
    height: clamp(1.15rem, 4.5vw, 1.5rem);
}

/* دکمه + شناور — گوشه پایین چپ صفحه، بالای نوار تب‌ها */
.nc-fab,
.tweet-fab {
    position: fixed;
    left: var(--app-fab-left);
    bottom: var(--app-fab-bottom);
    z-index: 65;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(29, 155, 240, 0.45);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body[data-active-tab="tab-messenger"] .nc-fab {
    display: flex;
}

body[data-active-tab="tab-tweets"] .tweet-fab {
    display: flex;
}

.nc-fab svg,
.tweet-fab svg {
    width: 1.35rem;
    height: 1.35rem;
}

.nc-fab:hover,
.tweet-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.55);
}

.nc-fab:active,
.tweet-fab:active {
    transform: scale(0.96);
}

@media (max-width: 640px) {
    .nc-fab,
    .tweet-fab {
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        width: 3rem;
        height: 3rem;
    }
}


/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-progress.css --- */
/**
 * نوار پیشرفت — پس‌زمینه واقعی از JS (NetProProgressFill) تنظیم می‌شود.
 * این fallback فقط وقتی inline style نباشد رنگ پایه می‌دهد.
 */
.goals-inline-progress__fill,
.perf-pulse-bar__fill,
.goals-progress__fill,
.lib-detail__progress-fill,
.admin-lib-progress__bar,
.deploy-readiness__fill,
.media-progress__fill {
    min-width: 0;
    background: linear-gradient(90deg, #dc2626, #16a34a);
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-mystats.css --- */
/* فیلترهای نمودار — کادر شیشه‌ای + اسکرول افقی */
.filter-glass-group {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
    padding: 0.35rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

.filter-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.1rem 0.2rem;
}

.filter-scroll-track::-webkit-scrollbar {
    display: none;
}

.filter-scroll-track .filter-btn {
    flex-shrink: 0;
}

.stats-form-card {
    overflow: visible;
}

.stats-form-card .modern-select.open {
    z-index: 80;
}

.glass-card.stats-form-card {
    position: relative;
    z-index: 2;
}

.tab-grid-stats > .glass-card:not(.stats-form-card) {
    position: relative;
    z-index: 1;
}

.validation-tracker-card.section-accordion-card,
.followup-tracker-card.section-accordion-card {
    z-index: 3;
}

.present-name-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.present-name-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.present-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.present-name-row .present-name-input {
    flex: 1;
    min-width: 8rem;
}

.present-date-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.present-date-btn:hover {
    background: #dbeafe;
}

.present-date-btn.is-missing {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.present-add-block {
    width: 100%;
}

.daily-stats-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.daily-activity-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}
.daily-activity-cat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid #dbeafe;
    background: rgba(248, 250, 252, 0.9);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-align: right;
}
.daily-activity-cat:hover {
    border-color: #93c5fd;
    background: #fff;
}
.daily-activity-cat.is-active {
    border-color: #2563eb;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.85));
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}
.daily-activity-cat__label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e3a8a;
}
.daily-activity-cat__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.daily-activity-cat__badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.85);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.daily-activity-cat.is-active .daily-activity-cat__badge {
    background: rgba(37, 99, 235, 0.15);
}

.daily-activity-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.daily-activity-panel.hidden { display: none; }
.daily-activity-panel__hint {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #64748b;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(241, 245, 249, 0.85);
    border: 1px dashed #cbd5e1;
}
.daily-activity-panel__tracker {
    margin-top: 0.15rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}
.daily-activity-panel__tracker-title {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
}
.daily-activity-panel__tracker .followup-section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.daily-activity-panel__tracker .followup-section-toolbar .daily-activity-panel__tracker-title {
    margin: 0;
}

.daily-form-block {
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.85);
}

.daily-form-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.daily-form-block__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

/* ── پرزنت / اعتبارسازی — لیست بدون اسکرول؛ کادر با محتوا رشد می‌کند ── */
#daily-stats-section.section-accordion-card.is-open > .section-accordion-body {
    max-height: none !important;
    overflow: visible !important;
}

.daily-prospect-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: none;
    overflow: visible;
    margin-top: 0.15rem;
}

.daily-prospect-scroll:empty {
    display: none;
    margin: 0;
}

.daily-prospect-scroll .present-name-row,
.daily-prospect-scroll .validation-name-row,
.daily-prospect-scroll .lead-tracker-card,
.daily-prospect-scroll .scheduled-present-card {
    flex-shrink: 0;
}

.present-name-row,
.validation-name-row {
    width: 100%;
    min-width: 0;
    padding-bottom: 0.15rem;
}

.present-add-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.present-add-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.75);
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.55));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 14px rgba(59, 130, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.present-add-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32);
    background: linear-gradient(145deg, rgba(191, 219, 254, 0.95), rgba(147, 197, 253, 0.65));
}

.present-add-btn:active {
    transform: scale(0.98);
}

.present-add-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 2.5;
}

.present-add-btn--manual {
    width: 100%;
    height: auto;
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    border: 1.5px dashed rgba(37, 99, 235, 0.45);
    background: rgba(239, 246, 255, 0.45);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    word-break: normal;
    gap: 0.5rem;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.present-add-btn--manual:hover {
    transform: none;
    background: rgba(219, 234, 254, 0.72);
    border-color: #2563eb;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.14);
}

.present-add-btn--manual:active {
    transform: scale(0.99);
}

.present-add-btn__add-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.present-add-btn__add-text {
    flex: 0 1 auto;
}

.people-form-picker-wrap {
    margin: 0 0 0.55rem;
}

.people-form-picker-wrap .modern-select {
    width: 100%;
}

.modern-select--list-add .modern-select-trigger {
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    border: 1.5px dashed rgba(37, 99, 235, 0.45) !important;
    background: rgba(239, 246, 255, 0.45) !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    justify-content: center;
    gap: 0.45rem;
}

.modern-select--list-add .modern-select-trigger:hover {
    background: rgba(219, 234, 254, 0.72) !important;
    border-color: #2563eb !important;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.14) !important;
}

.modern-select--list-add.open .modern-select-trigger {
    background: rgba(219, 234, 254, 0.72) !important;
    border-color: #2563eb !important;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.14) !important;
}

.modern-select--list-add .modern-select-value {
    flex: 0 1 auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
    color: #1d4ed8;
    font-weight: 700;
}

.modern-select--list-add .modern-select-value::before {
    content: '+';
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.modern-select--list-add .modern-select-arrow {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.45;
    color: #1d4ed8;
}

.people-form-picker-row--glass {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding-top: 0;
    border-top: none;
}

.people-form-picker-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.modern-select--glass .modern-select-trigger {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 4px 18px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    color: #334155;
}

.modern-select--glass .modern-select-trigger:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(147, 197, 253, 0.85);
}

.modern-select--glass.open .modern-select-trigger {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.14),
        0 8px 22px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.modern-select-menu--glass {
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(22px) saturate(165%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.16),
        0 8px 18px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    border-radius: 1rem !important;
    padding: 0.4rem !important;
}

.modern-select-menu--glass .modern-select-option {
    font-size: 0.72rem;
    border-radius: 0.65rem;
}

.modern-select-menu--glass .modern-select-option:hover {
    background: rgba(219, 234, 254, 0.62);
    color: #1e3a8a;
}

.modern-select-menu--glass .modern-select-option.selected {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(191, 219, 254, 0.75) 100%);
    color: #1d4ed8;
}

.present-row-remove-btn {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.8);
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.present-row-remove-btn:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.present-row-send-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid #86efac;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    color: #047857;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.present-row-send-btn:hover {
    background: #bbf7d0;
    border-color: #4ade80;
}

.present-row-send-btn:active {
    transform: scale(0.98);
}

.present-schedule-dialog .followup-form-label { margin-top: 0.65rem; }
.present-schedule-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}
.present-schedule-time-part {
    flex: 1;
    min-width: 0;
    max-width: 5.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.present-schedule-time-colon {
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
    line-height: 1;
}
.present-schedule-time-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    font-family: inherit;
    background: #fff;
}
.present-schedule-presenter-select {
    width: 100%;
    margin-top: 0.25rem;
}
.present-schedule-location-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-family: inherit;
    background: #fff;
    margin-top: 0.25rem;
}
.present-schedule-presenter-hint {
    font-size: 0.62rem;
    color: #64748b;
    margin: 0.2rem 0 0.35rem;
}
.present-schedule-availability-hint {
    font-size: 0.65rem;
    margin: 0.45rem 0 0.15rem;
    min-height: 1rem;
}
.present-schedule-availability-hint--ok { color: #047857; font-weight: 700; }
.present-schedule-availability-hint--busy { color: #b91c1c; font-weight: 700; }

.followup-tracker-card {
    width: 100%;
}

@media (min-width: 1024px) {
    .tab-grid-stats .followup-tracker-card {
        grid-column: 1 / -1;
    }
}

.followup-lead-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 0.65rem 0.75rem;
}

.followup-lead-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.followup-checks-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
}

.followup-check-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.followup-check-item input {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: #16a34a;
    cursor: pointer;
}

.followup-check-item label {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.followup-check-item input:checked + label {
    color: #16a34a;
}

.followup-check-item input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.followup-check-item input:disabled + label {
    cursor: not-allowed;
    color: #cbd5e1;
}

.followup-analysis {
    margin-top: 0.625rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    line-height: 1.55;
    border: 1px solid transparent;
}

.followup-analysis__title {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
}

.followup-analysis--good {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.followup-analysis--good .followup-analysis__title {
    color: #15803d;
}

.followup-analysis--weak {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.followup-analysis--weak .followup-analysis__title {
    color: #b91c1c;
}

.followup-analysis--pending {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.followup-metric {
    margin-top: 0.45rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.followup-metric:first-of-type {
    margin-top: 0.35rem;
}

.followup-metric__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.followup-metric__label {
    font-weight: 700;
    font-size: 0.68rem;
}

.followup-metric__badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
}

.followup-metric__reason {
    font-size: 0.65rem;
    line-height: 1.45;
    margin: 0;
}

.followup-metric--good {
    background: rgba(236, 253, 245, 0.85);
    border-color: #bbf7d0;
}

.followup-metric--good .followup-metric__badge {
    background: #dcfce7;
    color: #15803d;
}

.followup-metric--weak {
    background: rgba(254, 242, 242, 0.9);
    border-color: #fecaca;
}

.followup-metric--weak .followup-metric__badge {
    background: #fee2e2;
    color: #b91c1c;
}

.followup-metric--pending {
    background: rgba(248, 250, 252, 0.9);
    border-color: #e2e8f0;
}

.followup-metric--pending .followup-metric__badge {
    background: #f1f5f9;
    color: #64748b;
}

.validation-tracker-card,
.tracker-card-full {
    width: 100%;
}

@media (min-width: 1024px) {
    .tab-grid-stats .validation-tracker-card,
    .tab-grid-stats .followup-tracker-card {
        grid-column: 1 / -1;
    }
}

.lead-tracker-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 0.75rem;
}

.lead-accordion-card {
    padding: 0.5rem 0.75rem;
}

.lead-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    color: inherit;
}

.lead-accordion-header--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.lead-accordion-header__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 0 2.25rem;
}

.lead-accordion-header__row .followup-lead-name {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    padding-inline: 0.35rem;
}

.lead-accordion-header__row .drawer-chev {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.lead-accordion-header__row .lead-accordion-meta {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.tracker-lead-progress {
    width: 100%;
    pointer-events: none;
}

.lead-accordion-header-wrap .tracker-lead-progress {
    margin-inline-end: 2.35rem;
}

.lead-accordion-header:hover .followup-lead-name {
    color: #2563eb;
}

.lead-accordion-meta {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    margin-inline-start: auto;
}

.lead-accordion-body {
    display: none;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 0.35rem;
}

.lead-accordion-card.is-open .lead-accordion-body {
    display: block !important;
}

.activity-slots-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.15rem 0.25rem;
    align-items: flex-end;
}

.activity-slots-hint {
    font-size: 0.62rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.activity-slot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 3.1rem;
}

.activity-slot-btn {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.7rem;
    border: 2px dashed #94a3b8;
    background: linear-gradient(160deg, #ffffff, #f1f5f9);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.activity-slot-btn.is-actionable {
    border-color: #3b82f6;
    background: linear-gradient(160deg, #eff6ff, #dbeafe);
    animation: activity-slot-pulse 2.2s ease-in-out infinite;
}

@keyframes activity-slot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.25); }
    50% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12); }
}

.activity-slot-btn:hover:not(:disabled):not(.is-locked) {
    border-color: #2563eb;
    transform: translateY(-1px);
}

.activity-slot-tap-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.activity-slot-check {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.activity-slot-btn.is-done {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    border: 2px solid #16a34a;
    border-style: solid;
    animation: none;
}

.activity-slot-btn.is-done-locked {
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.activity-slot-btn.is-done-locked:hover {
    border-color: #1d4ed8;
    filter: brightness(1.05);
}

.activity-slot-btn.is-done-phone::after,
.activity-slot-btn.is-done-in_person::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
}

.activity-slot-btn.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
}

.activity-slot-btn:not(.is-done):not(.is-locked) {
    cursor: pointer;
}

.activity-slot-label {
    font-size: 0.58rem;
    color: #64748b;
    font-weight: 700;
    line-height: 1;
}

.activity-slot-hint {
    font-size: 0.52rem;
    color: #2563eb;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    max-width: 3.2rem;
}

.activity-slot.is-locked-step .activity-slot-hint {
    color: #94a3b8;
}

.activity-slot-meta {
    font-size: 0.55rem;
    color: #16a34a;
    font-weight: 600;
}

.slot-add-btn {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
    border: 1px dashed #94a3b8;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 1rem;
}

.slot-add-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.prospect-stage-track {
    display: none;
}

.prospect-stage-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.prospect-stage-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.prospect-stage-num {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prospect-stage-btn.active .prospect-stage-num {
    background: #3b82f6;
    color: #fff;
}

.prospect-stage-label {
    font-size: 0.58rem;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    font-weight: 600;
}

.prospect-stage-btn.active .prospect-stage-label {
    color: #1d4ed8;
}

.team-trainings-editor {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.team-training-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.team-training-row input,
.team-training-row .present-name-input {
    flex: 1;
    min-width: 0;
}

.team-training-saved-section {
    margin-bottom: 0.55rem;
}

.team-training-section-label {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
}

.team-training-draft-section {
    margin-top: 0.45rem;
}

.lead-training-setup.present-add-block .present-add-btn--manual {
    margin-bottom: 0;
}

.lead-training-setup.present-add-block .team-training-draft-section {
    margin-top: 0.55rem;
}

.lead-training-checklist--with-manager {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.people-list-add-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.people-list-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.people-list-add-row input {
    flex: 1;
    min-width: 7rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-family: inherit;
}

.people-pick-contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px dashed #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.people-pick-contact-btn:hover {
    background: #dbeafe;
}

.people-add-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.people-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.people-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.people-list-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.people-list-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.people-total-badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
}

.people-ratings {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.people-rating-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.people-rating-label {
    flex: 1;
    min-width: 6.5rem;
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.35;
}

.people-rating-hint {
    width: 100%;
    font-size: 0.58rem;
    color: #475569;
    background: #f1f5f9;
    border-radius: 0.45rem;
    padding: 0.25rem 0.4rem;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.people-rating-row--select {
    flex-direction: column;
    align-items: stretch;
}

.people-relationship-select {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-family: inherit;
    background: #fff;
}

.people-list-item--incomplete {
    background: linear-gradient(165deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #f87171;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.people-list-item--rated {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.people-list-item__header--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.people-list-item__name-toggle {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.2rem 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.people-list-item__name-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-list-item__header--compact .people-contact-actions {
    flex-shrink: 0;
    margin: 0;
}

.people-list-item__details {
    display: none;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
    margin-top: 0.35rem;
}

.people-list-item--rated.is-expanded .people-list-item__details,
.people-list-item--incomplete .people-list-item__details {
    display: block;
}

.people-list-item--incomplete .people-list-item__details {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.people-unrated-alert {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin-bottom: 0.15rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.55rem;
    background: #fecaca;
    border: 1px solid #f87171;
    color: #991b1b;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.4;
}

.people-unrated-alert svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.people-relationship-glass {
    padding: 0.5rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.people-relationship-glass__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.people-relationship-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.people-rel-chip {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.95);
    color: #475569;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.people-rel-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.people-rel-chip.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1e40af;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.people-complete-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
}

.people-pending-badge {
    font-size: 0.58rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
}

.people-list-item__name {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    background: transparent;
    color: #0f172a;
    line-height: 1.35;
}

.people-list-item__name:focus {
    border-color: #93c5fd;
    background: #fff;
    outline: none;
}

.people-list-item__phone {
    font-size: 0.7rem;
    color: #64748b;
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.people-score-stars {
    display: flex;
    gap: 0.1rem;
    direction: ltr;
}

.people-star {
    border: none;
    background: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.1s, transform 0.1s;
}

.people-star.is-on {
    color: #f59e0b;
}

.people-star:hover {
    transform: scale(1.1);
}

.people-remove-btn {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.people-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.people-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.15s;
}

.people-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.people-contact-btn--call {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.people-contact-btn--sms {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.prospect-stage-navigator {
    margin: 0.5rem 0 0.65rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.9), rgba(243, 232, 255, 0.55));
}

.stage-navigator__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.stage-navigator__current-label {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
}

.stage-navigator__current-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e40af;
    margin: 0;
}

.stage-navigator__arrows {
    display: flex;
    gap: 0.35rem;
}

.stage-nav-arrow-btn {
    padding: 0.35rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid #bfdbfe;
    background: #fff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.stage-nav-arrow-btn:hover:not(:disabled) {
    background: #dbeafe;
    transform: translateY(-1px);
}

.stage-nav-arrow-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stage-navigator__pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

@media (min-width: 420px) {
    .stage-navigator__pills {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stage-pill-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.3rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.stage-pill-btn:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.stage-pill-btn.active {
    border-color: #3b82f6;
    background: linear-gradient(145deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.stage-pill-btn.active .stage-pill-num {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.stage-pill-num {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-pill-label {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.people-form-picker-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
}

.people-form-picker {
    flex: 1;
    min-width: 9rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    font-size: 0.72rem;
    font-family: inherit;
    background: #fff;
    color: #334155;
}

.people-list-empty {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.75rem;
}

.mystats-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-accordion-card {
    padding: 0.65rem 1.25rem;
    box-shadow:
        0 12px 32px -10px rgba(15, 23, 42, 0.18),
        0 4px 14px -4px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(186, 198, 214, 0.95);
    background: rgba(255, 255, 255, 0.88);
}

.section-accordion-card:not(.is-open) {
    box-shadow:
        0 10px 28px -8px rgba(15, 23, 42, 0.16),
        0 3px 10px -3px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-height: 5.15rem;
}

.mystats-accordion-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 12.5rem);
    max-width: 12.5rem;
    min-height: 1.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.mystats-accordion-preview.is-empty {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
    font-weight: 600;
}

#people-list-count.mystats-accordion-preview {
    color: #0c4a6e;
    background: #f0f9ff;
    border-color: #bae6fd;
}

#mystats-preview-daily.mystats-accordion-preview {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

@media (max-width: 639px) {
    .mystats-accordion-preview {
        width: min(100%, 11rem);
        max-width: 11rem;
        font-size: 0.58rem;
        padding: 0.18rem 0.45rem;
        min-height: 1.25rem;
    }
}

.section-accordion-header {
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* عنوان و متن پیش‌نمایش زیر هم؛ ارتفاع هدر یکسان */
.section-accordion-header:not(.account-settings-item__trigger) {
    position: relative;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.35rem;
    row-gap: 0.2rem;
    align-items: center;
    align-content: center;
    justify-content: stretch;
    min-height: 4.15rem;
    height: 4.15rem;
    padding: 0.45rem 0.35rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.section-accordion-header:not(.account-settings-item__trigger) > .drawer-chev {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    z-index: 1;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
    order: unset;
}

.section-accordion-header:not(.account-settings-item__trigger) h3,
.section-accordion-header:not(.account-settings-item__trigger) .goals-box__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    width: auto;
    max-width: none;
    min-width: 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    padding-inline: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    order: unset;
}

.section-accordion-header:not(.account-settings-item__trigger) > .section-accordion-toolbar,
.section-accordion-header:not(.account-settings-item__trigger) > .mystats-section-status {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
    margin: 0;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: unset;
}

/* اگر پیش‌نمایش نبود، عنوان در وسط ارتفاع ثابت بماند */
.section-accordion-header:not(.account-settings-item__trigger):not(:has(> .section-accordion-toolbar)) h3,
.section-accordion-header:not(.account-settings-item__trigger):not(:has(> .section-accordion-toolbar)) .goals-box__title {
    grid-row: 1 / -1;
    align-self: center;
}

.has-section-feedback-anchor > .section-accordion-header:not(.account-settings-item__trigger),
.has-section-feedback-anchor > .goals-box-section > .section-accordion-header {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
    min-height: 4.15rem;
    height: 4.15rem;
}

.has-section-feedback-anchor > .section-accordion-header:not(.account-settings-item__trigger) > .section-accordion-toolbar,
.has-section-feedback-anchor > .section-accordion-header:not(.account-settings-item__trigger) > .mystats-section-status {
    left: auto;
}

.section-accordion-header:hover h3 {
    color: #2563eb;
}

.section-accordion-header--title-only {
    cursor: default;
    pointer-events: none;
}

.section-accordion-header--title-only:hover h3,
.section-accordion-header--title-only:hover .goals-box__title {
    color: #374151;
}

.team-kpi-section .team-period-filter-wrap {
    margin-bottom: 0.65rem;
}

.section-accordion-body {
    display: none;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 0.35rem;
}

.section-accordion-card.is-open .section-accordion-body {
    display: block !important;
}

/* ─── آیکون یکسان فلش کشو ─── */
.drawer-chev {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.05rem; height: 1.05rem; border-radius: 0.32rem; flex-shrink: 0;
    color: #0891b2; background: rgba(8, 145, 178, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.drawer-chev svg { display: block; }
.section-accordion-header:hover .drawer-chev,
.lead-accordion-header:hover .drawer-chev,
.people-list-item__name-toggle:hover .drawer-chev,
.goals-item__summary:hover .drawer-chev,
.goals-report-drawer__summary:hover .drawer-chev,
.my-perf-stats-details > summary:hover .drawer-chev {
    background: rgba(8, 145, 178, 0.18); color: #0e7490;
}
.section-accordion-card.is-open > .section-accordion-header > .drawer-chev,
.section-accordion-header[aria-expanded="true"] > .drawer-chev,
.goals-section.is-open > .section-accordion-header > .drawer-chev,
.goals-section-toggle[aria-expanded="true"] > .drawer-chev,
.lead-accordion-header[aria-expanded="true"] .lead-accordion-header__row > .drawer-chev,
.my-perf-stats-details[open] > summary > .drawer-chev,
.goals-report-drawer[open] .goals-report-drawer__lead > .drawer-chev {
    transform: rotate(180deg);
    background: rgba(8, 145, 178, 0.16);
}

.lead-accordion-card.is-open > .lead-accordion-header-wrap .drawer-chev,
.lead-accordion-card.is-open > .lead-accordion-header .drawer-chev,
.people-list-item--rated.is-expanded .drawer-chev,
.people-list-item__name-toggle[aria-expanded="true"] .drawer-chev,
.goals-item.is-open .drawer-chev,
.goals-item__summary[aria-expanded="true"] .drawer-chev {
    transform: rotate(180deg);
    background: rgba(8, 145, 178, 0.16);
}

.section-accordion-header:not(.account-settings-item__trigger) > .drawer-chev.drawer-chev--open,
.section-accordion-header[aria-expanded="true"]:not(.account-settings-item__trigger) > .drawer-chev {
    transform: rotate(180deg);
    background: rgba(8, 145, 178, 0.16);
}

.section-accordion-header .section-accordion-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    margin-inline-start: 0;
}

.section-accordion-header .followup-hidden-toggle-btn {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
}

.mystats-section-status {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mystats-section-status--locked {
    color: #b45309;
    background: #fffbeb;
}

.mystats-section-status--empty {
    color: #6b7280;
    background: #f3f4f6;
}

.section-accordion-card--locked .section-accordion-header h3 {
    color: #9ca3af;
}

.section-accordion-card--locked:not(.is-open) {
    opacity: 0.94;
}

.mystats-section-empty-hint {
    text-align: center;
    padding: 1.25rem 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.6;
}

.mystats-inner-paywall {
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.lead-training-checklist {
    margin: 0.5rem 0 0.65rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e9d5ff;
    background: rgba(243, 232, 255, 0.45);
}

.lead-training-checklist__title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 0.4rem;
}

.lead-training-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(233, 213, 255, 0.8);
}

.lead-training-item:last-child {
    border-bottom: none;
}

.lead-training-item input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #7c3aed;
    cursor: pointer;
    flex-shrink: 0;
}

.lead-training-item label {
    font-size: 0.72rem;
    color: #334155;
    cursor: pointer;
    flex: 1;
}

.lead-purchase-panel {
    margin: 0.5rem 0 0.65rem;
    padding: 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid #bbf7d0;
    background: rgba(240, 253, 244, 0.85);
}

.lead-purchase-panel--pending {
    border-color: #fde68a;
    background: rgba(254, 252, 232, 0.9);
}

.lead-purchase-status {
    font-size: 0.72rem;
    font-weight: 700;
}

.lead-purchase-status--done {
    color: #15803d;
}

.lead-purchase-status--pending {
    color: #b45309;
}

.lead-training-setup {
    margin: 0.5rem 0 0.65rem;
    padding: 0.55rem;
    border-radius: 0.75rem;
    border: 1px dashed #c4b5fd;
    background: rgba(245, 243, 255, 0.9);
}

.lead-training-setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

#contacts-pick-modal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.contacts-pick-dialog {
    width: 100%;
    max-width: 22rem;
    max-height: min(85vh, 32rem);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.contacts-pick-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.65rem 0;
    padding: 0.15rem;
}

.contacts-pick-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.contacts-pick-item:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.contacts-pick-item.is-added {
    opacity: 0.55;
    cursor: default;
}

.contacts-pick-rank {
    grid-row: span 2;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    width: 1.25rem;
    text-align: center;
}

.contacts-pick-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}

.contacts-pick-phone {
    font-size: 0.65rem;
    color: #64748b;
    direction: ltr;
    text-align: right;
}

.contacts-pick-score {
    grid-row: span 2;
    font-size: 0.62rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.contacts-pick-action {
    grid-column: 2;
    font-size: 0.6rem;
    font-weight: 700;
    color: #2563eb;
}

.contacts-pick-item.is-added .contacts-pick-action {
    color: #64748b;
}

#contacts-import-modal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.contacts-import-dialog {
    width: 100%;
    max-width: 22rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.contacts-import-hint {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 0.65rem;
}

.contacts-import-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.contacts-import-option {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.contacts-import-option--native {
    border-color: #86efac;
    background: #ecfdf5;
    color: #15803d;
}

.contacts-import-paste-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.25rem;
}

.contacts-import-paste {
    width: 100%;
    min-height: 5.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.5rem 0.6rem;
    font-family: inherit;
    font-size: 0.68rem;
    resize: vertical;
    margin-bottom: 0.45rem;
}

.contacts-import-submit {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid #93c5fd;
    background: #2563eb;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

#contact-mode-modal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.contact-mode-dialog {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    width: min(20rem, calc(100% - 2rem));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.contact-mode-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.contact-mode-btn {
    padding: 0.65rem;
    border-radius: 0.75rem;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.contact-mode-btn--phone {
    background: #eff6ff;
    color: #1d4ed8;
}

.contact-mode-btn--in-person {
    background: #ecfdf5;
    color: #15803d;
}

.contact-mode-btn.active-mode {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
    transform: scale(1.02);
}

.followup-log-dialog {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1rem;
    width: min(22rem, calc(100% - 1.5rem));
    max-height: min(90vh, 36rem);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

/* تقویم شمسی — استایل‌ها در app-jalali-calendar.css */

.followup-form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    margin: 0.65rem 0 0.35rem;
}

.followup-selected-date {
    font-size: 0.75rem;
    color: #1d4ed8;
    font-weight: 600;
    min-height: 1.1rem;
}

.result-percent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
}

.result-percent-btn {
    padding: 0.4rem 0;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: #475569;
}

.result-percent-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.followup-log-submit {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.present-schedule-location-input.present-schedule-location-input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

#present-date-modal:not(.hidden) {
    pointer-events: auto;
}

#present-date-modal .present-schedule-dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.present-schedule-submit {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.present-outcome-summary-wrap:empty {
    display: none;
}

.present-outcome-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (min-width: 480px) {
    .present-outcome-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.present-outcome-summary__item {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.present-outcome-summary__item strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.present-outcome-summary__item span {
    display: block;
    font-size: 0.62rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.present-outcome-summary__item--fixed strong { color: #2563eb; }
.present-outcome-summary__item--held strong { color: #16a34a; }
.present-outcome-summary__item--not-held strong { color: #dc2626; }
.present-outcome-summary__item--awaiting strong { color: #d97706; }

.scheduled-presents-section.hidden {
    display: none;
}

.scheduled-presents-list {
    margin-top: 0.35rem;
}

.scheduled-present-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
}

.scheduled-present-card--due {
    border-color: #fbbf24;
    background: #fffbeb;
}

.scheduled-present-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.scheduled-present-card__name {
    font-size: 0.8rem;
    color: #1e293b;
}

.scheduled-present-card__status {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.scheduled-present-card__status--due {
    background: #fef3c7;
    color: #b45309;
}

.scheduled-present-card__date {
    font-size: 0.65rem;
    color: #475569;
    margin-bottom: 0.2rem;
}

.scheduled-present-card__hint {
    font-size: 0.58rem;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}

.scheduled-present-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.scheduled-present-btn {
    border: none;
    border-radius: 0.55rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.scheduled-present-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.scheduled-present-btn--held {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #fff;
}

.scheduled-present-btn--not-held {
    background: #fee2e2;
    color: #b91c1c;
}

.my-stats-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (min-width: 640px) {
    .my-stats-summary {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.my-stats-summary-item {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.my-stats-summary-item strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.2;
}

.my-stats-summary-item span {
    font-size: 0.58rem;
    color: #64748b;
    font-weight: 600;
}

.my-stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .my-stats-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.overview-chart-cell {
    padding: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overview-chart-cell__title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.25rem;
    text-align: center;
}

.overview-chart-box {
    position: relative;
    height: 110px;
    width: 100%;
}

.perf-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.perf-hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 55%, #fdf2f8 100%);
    border: 1px solid #dbeafe;
}

.perf-hero__ring {
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 800;
    line-height: 1;
    border: 3px solid #93c5fd;
    background: #fff;
}

.perf-hero__score {
    font-size: 1.35rem;
    color: #1d4ed8;
}

.perf-hero__score-label {
    font-size: 0.5rem;
    color: #64748b;
    font-weight: 700;
}

.perf-hero__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.perf-hero__desc {
    font-size: 0.68rem;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.perf-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #334155;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.perf-section-title::before {
    content: '';
    width: 0.2rem;
    height: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.perf-today-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.perf-task {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0.7rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.68rem;
    line-height: 1.4;
}

.perf-task--high {
    border-color: #fecaca;
    background: #fef2f2;
}

.perf-task__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    margin-top: 0.25rem;
    flex-shrink: 0;
    background: #3b82f6;
}

.perf-task--high .perf-task__dot {
    background: #ef4444;
}

.perf-task__text {
    flex: 1;
    color: #1e293b;
    font-weight: 600;
}

.perf-task__link {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    color: #2563eb;
    border: none;
    background: #eff6ff;
    padding: 0.2rem 0.45rem;
    border-radius: 0.45rem;
    cursor: pointer;
    font-family: inherit;
}

.perf-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

@media (min-width: 520px) {
    .perf-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.perf-insight-card {
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.perf-insight-card--weak {
    border-color: #fecaca;
    background: linear-gradient(145deg, #fff5f5, #fff);
}

.perf-insight-card--warn {
    border-color: #fde68a;
    background: linear-gradient(145deg, #fffbeb, #fff);
}

.perf-insight-card--growth {
    border-color: #bbf7d0;
    background: linear-gradient(145deg, #f0fdf4, #fff);
}

.perf-insight-card__title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.perf-insight-card__detail {
    font-size: 0.62rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.perf-insight-card__meta {
    font-size: 0.58rem;
    font-weight: 700;
    color: #b91c1c;
    margin-top: 0.25rem;
}

.perf-insight-card--warn .perf-insight-card__meta {
    color: #b45309;
}

.perf-insight-card--growth .perf-insight-card__meta {
    color: #15803d;
}

.perf-pulse-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.perf-pulse-row {
    padding: 0.4rem 0.45rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.perf-pulse-row__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.perf-pulse-row__label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #334155;
}

.perf-pulse-row__nums {
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
}

.perf-pulse-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.perf-pulse-bar__fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.perf-empty-hint {
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
    padding: 0.65rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.growth-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.growth-stats-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 480px) {
    .growth-stats-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.growth-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.growth-stat-card__val {
    font-size: 1rem;
    font-weight: 800;
    color: #1e40af;
    line-height: 1.2;
}

.growth-stat-card__label {
    font-size: 0.58rem;
    color: #64748b;
    font-weight: 700;
    margin-top: 0.2rem;
}

.growth-stat-card.growth-stat--up .growth-stat-card__val { color: #16a34a; }
.growth-stat-card.growth-stat--down .growth-stat-card__val { color: #dc2626; }

.growth-ranked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.growth-ranked-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.68rem;
}

.growth-ranked-list__rank {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.growth-ranked-list__name {
    flex: 1;
    font-weight: 700;
    color: #0f172a;
}

.growth-ranked-list__score {
    font-weight: 700;
    color: #6366f1;
    font-size: 0.62rem;
}

.team-growth-panel {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid #bbf7d0;
}

.team-growth-panel h4 {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.mystats-kpi-card--meta {
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
}

#mystats-kpi-section [data-section-body="kpi"] {
    padding: 0.15rem 0.75rem 0.75rem;
}

.mystats-perf-kpi__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.mystats-perf-kpi__filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.65);
    color: #64748b;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mystats-perf-kpi__filter-btn:hover {
    background: rgba(239, 246, 255, 0.95);
    color: #2563eb;
}

.mystats-perf-kpi__filter-btn.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mystats-perf-kpi__filter-hint {
    margin: 0 0 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: #94a3b8;
}

.mystats-perf-kpi__filter-hint strong {
    color: #475569;
}

.mystats-perf-kpi__section-title {
    margin: 0.75rem 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
}

.mystats-perf-kpi__grid {
    display: grid;
    gap: 0.45rem;
}

.mystats-perf-kpi__grid--filtered {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mystats-perf-kpi__grid--alltime {
    grid-template-columns: 1fr;
}

@media (max-width: 420px) {
    .mystats-perf-kpi__grid--filtered {
        grid-template-columns: 1fr;
    }
}

.mystats-perf-kpi__card {
    padding: 0.55rem 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
}

.mystats-perf-kpi__card--clickable {
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: transform 0.15s, box-shadow 0.2s;
}

.mystats-perf-kpi__card--clickable:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
}

.mystats-perf-kpi__card--clickable:disabled {
    opacity: 0.55;
    cursor: default;
}

.mystats-perf-kpi__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.mystats-perf-kpi__value--alltime {
    font-size: 0.92rem;
}

.mystats-perf-kpi__of {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0.15rem;
}

.mystats-perf-kpi__label {
    font-size: 0.58rem;
    font-weight: 800;
    color: #475569;
    line-height: 1.35;
}

.mystats-perf-kpi__sub,
.mystats-perf-kpi__tap-hint {
    font-size: 0.5rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.4;
}

.mystats-trained-names-modal {
    width: 100%;
    max-width: 22rem;
    max-height: min(70dvh, 28rem);
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mystats-trained-names-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.mystats-trained-names-modal__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.mystats-trained-names-modal__close {
    border: none;
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.mystats-trained-names {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.mystats-trained-names__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.mystats-trained-names__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    font-size: 0.58rem;
    font-weight: 800;
}

.mystats-trained-names__name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.mystats-trained-names__empty {
    margin: 0;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    padding: 1rem 0;
}

.mystats-kpi-strip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mystats-kpi-card {
    padding: 0.45rem 0.35rem;
    border-radius: 0.7rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: center;
}

.mystats-kpi-card strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
}

.mystats-kpi-card span {
    font-size: 0.55rem;
    font-weight: 800;
    color: #475569;
}

.mystats-kpi-card small {
    display: block;
    font-size: 0.5rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 0.1rem;
}

.perf-funnel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.perf-funnel-cell {
    text-align: center;
    padding: 0.5rem 0.35rem;
    border-radius: 0.7rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.perf-funnel-cell strong {
    display: block;
    font-size: 0.85rem;
    color: #1d4ed8;
}

.perf-funnel-cell span {
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.3;
}

.perf-pipeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.62rem;
    font-weight: 600;
}

.upline-report {
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid #c7d2fe;
    background: linear-gradient(145deg, #eef2ff, #faf5ff);
}

.upline-report__head {
    font-size: 0.72rem;
    font-weight: 800;
    color: #3730a3;
    margin: 0 0 0.35rem;
}

.upline-report__item {
    font-size: 0.62rem;
    color: #334155;
    line-height: 1.45;
    padding: 0.25rem 0;
    border-bottom: 1px dashed #c7d2fe;
}

.upline-report__item:last-child {
    border-bottom: none;
}

.team-insights-panel {
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid #bbf7d0;
    background: linear-gradient(145deg, #ecfdf5, #f0fdf4);
    margin-bottom: 0.65rem;
}

.team-insights-panel--alert {
    border-color: #fecaca;
    background: linear-gradient(145deg, #fef2f2, #fff7ed);
}

.team-insights-panel h4 {
    font-size: 0.72rem;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 0.35rem;
}

.team-insights-panel--alert h4 {
    color: #991b1b;
}

.team-insight-line {
    font-size: 0.62rem;
    color: #334155;
    line-height: 1.45;
    padding: 0.2rem 0;
}

.my-perf-stats-details {
    margin-top: 0.5rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
}

.my-perf-stats-details > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 2.25rem;
    padding: 0.55rem 2.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.my-perf-stats-details > summary > .drawer-chev {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.my-perf-stats-details > summary > :not(.drawer-chev) {
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
}

.my-perf-stats-details > summary::-webkit-details-marker {
    display: none;
}

#tab-teamstats .team-dashboard-combo .team-dashboard-chart-summary {
    min-height: 2.75rem;
    padding: 0.25rem 2.25rem;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

#tab-teamstats .team-dashboard-combo .team-dashboard-chart-summary:hover {
    color: inherit;
}

#tab-teamstats .my-perf-stats-details[data-feedback-section="team-chart"]:not(.team-dashboard-chart-details) > summary {
    min-height: 2.75rem;
    padding: 0.25rem 2.25rem 0.25rem 3rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

#tab-teamstats .my-perf-stats-details[data-feedback-section="team-chart"]:not(.team-dashboard-chart-details) > summary:hover {
    color: #2563eb;
}

.my-perf-stats-details__body {
    padding: 0 0.65rem 0.65rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
    .chart-box {
        min-height: 240px;
        height: min(300px, 42vh);
    }

    .chart-panel {
        padding: 0.5rem;
    }

    .chart-panel .capsule-badge {
        font-size: 0.6rem;
    }

    .media-tab-viewport,
    .news-tab-viewport,
    .planning-viewport {
        min-height: min(22rem, calc(100dvh - var(--app-header-height) - var(--mobile-nav-height) - 0.75rem));
        max-height: none;
    }

    .section-accordion-header,
    .present-add-btn,
    .people-add-btn,
    .people-pick-contact-btn,
    .planning-send-btn,
    .task-check,
    .task-delete {
        touch-action: manipulation;
    }

    #planning-input-bar {
        z-index: 55;
    }

    .mobile-nav-shell {
        z-index: 50;
    }
}

.auth-section-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card-inner {
    width: 100%;
    max-width: 420px;
}

@media (min-width: 768px) {
    .auth-card-inner {
        max-width: 480px;
    }
}

.tab-grid-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-grid-account {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── حساب من — کشوی حساب کاربری داخل تنظیمات ── */
.account-user-section {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
}
.account-user-toggle h3 {
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0;
}
.account-user-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.35rem;
}
.account-profile-card--nested {
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
}
.account-roles-card--nested {
    margin: 0;
    padding: 0.95rem 1rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.account-appearance-section {
    margin-bottom: 0.85rem;
    border-color: rgba(14, 165, 233, 0.18);
}
.account-appearance-body {
    padding-top: 0.35rem;
}
.account-appearance-body .account-font-glass {
    margin: 0;
}

/* ── حساب من — کارت پروفایل ── */
.account-profile-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.account-profile-card__header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1.15rem 1.1rem;
    background: linear-gradient(160deg, #4f46e5 0%, #6366f1 42%, #818cf8 100%);
}

.account-profile-card__header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(15, 23, 42, 0.12), transparent 50%);
    pointer-events: none;
}

.account-profile-card__avatar {
    position: relative;
    z-index: 1;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #4338ca;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.account-profile-card__name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.account-profile-card__company {
    position: relative;
    z-index: 1;
    margin: 0.25rem 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.account-profile-card__tier {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.account-profile-card__tier::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.account-profile-card__tier--premium,
.profile-level--premium.account-profile-card__tier {
    color: #047857;
}

.account-profile-card__tier--premium::before,
.profile-level--premium.account-profile-card__tier::before {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.account-profile-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.15rem 0.25rem;
}

.account-profile-card__field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.account-profile-card__field-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.account-profile-card__field-value {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    word-break: break-all;
}

.account-profile-card__code-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.account-profile-card__code-section > .account-profile-card__field-label {
    padding: 0 0.15rem;
    font-size: 0.7rem;
}

.account-profile-card__code-display {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #3730a3;
    background: #eef2ff;
    border: 1.5px dashed #a5b4fc;
}

.account-profile-card__code-display.is-empty {
    color: #94a3b8;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.82rem;
    border-style: solid;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.account-profile-card__code-edit {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.account-profile-card__code-edit:hover {
    background: #eef2ff;
    color: #4338ca;
}

.account-profile-card__edit {
    margin: 0.65rem 1.15rem 1.15rem;
    width: calc(100% - 2.3rem);
    padding: 0.72rem 1rem;
    border-radius: 0.9rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.account-profile-card__edit:hover {
    border-color: #c7d2fe;
    background: #fafafa;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
}

.account-profile-card__edit:active,
.account-profile-card__code-edit:active {
    transform: scale(0.99);
}

/* ── حساب من — کارت تنظیمات گلس ── */
.account-glass-card {
    padding: 1.1rem 1.15rem 1.15rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 10px 32px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.account-glass-card__head {
    margin-bottom: 0.85rem;
}
.account-glass-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.account-glass-card__sub {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.45;
}

.account-font-glass {
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(160deg, rgba(239, 246, 255, 0.75), rgba(255, 255, 255, 0.42));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 4px 18px rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.account-font-glass__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.account-font-glass__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(219, 234, 254, 0.75));
    border: 1px solid rgba(191, 219, 254, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.account-font-glass__meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.account-font-glass__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
}
.account-font-glass__value,
#font-scale-label.account-font-glass__value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
}
.account-font-glass__hint {
    margin: 0.65rem 0 0;
    font-size: 0.64rem;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

/* ── حساب من — نقش‌های کاربر (چندانتخابی) ── */
.account-roles-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.account-roles-count {
    display: inline-flex;
    margin-top: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.85);
    border: 1px solid rgba(191, 219, 254, 0.9);
}
.account-roles-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.account-role-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.55));
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.account-role-option:hover {
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(59, 130, 246, 0.1);
}
.account-role-option.is-selected {
    border-color: rgba(37, 99, 235, 0.65);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.72));
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.account-role-option__input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
}
.account-role-option__icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.account-role-option__label {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
}
.account-role-option.is-selected .account-role-option__label { color: #1e3a8a; }

.account-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.55));
    color: #334155;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(59, 130, 246, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.account-role-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(59, 130, 246, 0.12);
}
.account-role-chip:active { transform: scale(0.98); }
.account-role-chip.is-selected {
    border-color: rgba(37, 99, 235, 0.75);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.88));
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.account-role-chip__icon {
    font-size: 0.95rem;
    line-height: 1;
}
.account-role-chip__label {
    line-height: 1.25;
    white-space: nowrap;
}
.account-roles-summary {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #475569;
    background: rgba(248, 250, 252, 0.72);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}
.account-roles-summary.is-empty { color: #94a3b8; }

.profile-roles-badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
    max-width: 100%;
}
.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.font-scale-glass {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.font-scale-glass:focus-visible {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.font-scale-glass__btn {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.8));
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.font-scale-glass__btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(160deg, #fff, #bfdbfe);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.font-scale-glass__btn:active {
    transform: translateY(0);
}
.font-scale-glass__track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.font-scale-glass__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.28rem;
    width: 100%;
    padding: 0.15rem 0.1rem;
}
.font-scale-dot {
    flex: 1;
    max-width: 2rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.font-scale-dot.is-active {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transform: scaleY(1.45);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}
.font-scale-glass__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
}
.font-scale-glass__sample-live {
    color: #1d4ed8;
    font-weight: 800;
    line-height: 1;
    font-size: 0.88rem;
    transition: font-size 0.2s ease, color 0.2s ease;
}

.account-logout-glass {
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.72rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(254, 202, 202, 0.9);
    background: linear-gradient(160deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.55));
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background 0.15s, transform 0.15s;
}
.account-logout-glass:hover {
    background: linear-gradient(160deg, #fee2e2, rgba(255, 255, 255, 0.7));
    transform: translateY(-1px);
}

/* ── حساب من — مودال‌های شیشه‌ای ── */
.account-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.account-modal-backdrop.hidden { display: none; }

.account-modal {
    width: 100%;
    max-width: 26rem;
    padding: 1.1rem 1.15rem 1.15rem;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.account-modal--compact { max-width: 22rem; }

.account-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.account-modal__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.01em;
}
.account-modal__close {
    border: none;
    background: rgba(255, 255, 255, 0.65);
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: color 0.15s, background 0.15s;
}
.account-modal__close:hover { color: #334155; background: rgba(255, 255, 255, 0.9); }

.account-modal__sub {
    margin: 0 0 0.85rem;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #64748b;
}

.account-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.account-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.account-modal-field > span {
    font-size: 0.66rem;
    font-weight: 700;
    color: #475569;
}
.account-modal-field input {
    width: 100%;
    padding: 0.58rem 0.72rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 0.74rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.account-modal-field input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 3px rgba(59, 130, 246, 0.14);
}
.account-modal-field input:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    background: rgba(241, 245, 249, 0.75);
    border-color: rgba(226, 232, 240, 0.9);
    color: #64748b;
}
.account-modal-field--ltr input { text-transform: uppercase; letter-spacing: 0.04em; }

.account-modal__error {
    margin-top: 0.35rem;
    min-height: 0;
}
.account-modal__error.show {
    margin-top: 0.5rem;
}

.account-modal__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.account-modal-btn {
    flex: 1;
    padding: 0.58rem 0.75rem;
    border-radius: 0.8rem;
    border: none;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.account-modal-btn:active { transform: scale(0.98); }
.account-modal-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.account-modal-btn--primary:hover {
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.account-modal-btn--ghost {
    color: #475569;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.7));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.account-modal-btn--ghost:hover { background: rgba(255, 255, 255, 0.98); }

.followup-date-group {
    margin-bottom: 0.75rem;
}

.followup-date-group__title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.55rem;
    padding: 0.35rem 0.55rem;
    margin-bottom: 0.45rem;
}

.followup-tracker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.followup-hidden-toggle-btn {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-family: inherit;
    cursor: pointer;
}

.followup-hidden-toggle-btn:hover,
.followup-hidden-toggle-btn.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.followup-hidden-panel {
    margin-bottom: 0.65rem;
    padding: 0.55rem;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.9);
}

.followup-hidden-panel__title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.lead-accordion-header-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.lead-accordion-header-wrap .lead-accordion-header {
    flex: 1;
    min-width: 0;
}

.followup-eye-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.followup-visibility-btn {
    flex-shrink: 0;
    width: 2.1rem;
    align-self: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.followup-visibility-btn:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.followup-visibility-btn--restore {
    color: #64748b;
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.followup-visibility-btn--restore:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background: #eff6ff;
}

.followup-section-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

#followup-tracker-section.is-open .followup-section-toolbar {
    display: flex;
}

.media-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .media-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.messenger-tab-viewport,
.media-tab-viewport,
.news-tab-viewport {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: min(28rem, calc(100dvh - var(--app-header-height) - var(--mobile-nav-height) - 1rem));
    max-height: calc(100dvh - var(--app-header-height) - var(--mobile-nav-height) - 0.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 0 0.5rem;
}

.messenger-tab-viewport {
    overflow: hidden;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.messenger-tab-viewport #messenger-root,
.media-tab-viewport #clips-catalog,
.media-tab-viewport #tweets-root,
.media-tab-viewport #ascension-root,
.news-tab-viewport #news-root {
    flex: 1 1 auto;
    min-height: min(26rem, calc(100dvh - var(--app-header-height) - var(--mobile-nav-height) - 2rem));
}

.messenger-tab-viewport #messenger-root {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.messenger-tab-viewport .nc-app {
    border-radius: 0;
    border-inline: none;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    min-height: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.18);
}

.media-tab-viewport .clips-toolbar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
    .messenger-tab-viewport,
    .media-tab-viewport,
    .news-tab-viewport {
        max-height: calc(100dvh - var(--app-header-height) - var(--mobile-nav-height) - 1.5rem);
    }
}
.msg-nav-badge {
    position: absolute;
    top: 0.1rem;
    left: 50%;
    margin-left: 0.55rem;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.48rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-item { position: relative; }

.feature-paywall {
    margin: 0.5rem 0;
}

.nav-item--hidden {
    display: none !important;
}

.nav-item--admin-locked {
    filter: grayscale(1);
    opacity: 0.88;
}

.nav-item--admin-locked span {
    color: #6b7280 !important;
}

#mobile-nav .nav-item--admin-locked svg {
    color: #6b7280 !important;
    stroke: #6b7280 !important;
}

#mobile-nav .nav-item--admin-locked.active {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    box-shadow: none !important;
}

.tab-admin-lock-screen {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.tab-admin-lock-screen.hidden {
    display: none !important;
}

.tab-admin-lock-card {
    max-width: 22rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #f8fafc, #eff6ff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tab-admin-lock-card__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: #64748b;
}

.tab-admin-lock-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.tab-admin-lock-card__text {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.app-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 100500;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid #c7d2fe;
    background: linear-gradient(165deg, #eef2ff, #faf5ff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.app-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-toast__title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #3730a3;
    margin: 0 0 0.25rem;
}

.app-toast__text {
    font-size: 0.68rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.app-toast.app-toast--success {
    border-color: #86efac;
    background: linear-gradient(165deg, #ecfdf5, #d1fae5);
}

.app-toast.app-toast--success .app-toast__title { color: #047857; }
.app-toast.app-toast--success .app-toast__text { color: #065f46; }

.app-toast.app-toast--danger {
    border-color: #fca5a5;
    background: linear-gradient(165deg, #fef2f2, #fee2e2);
}

.app-toast.app-toast--danger .app-toast__title { color: #b91c1c; }
.app-toast.app-toast--danger .app-toast__text { color: #991b1b; }

.profile-level--premium { color: #059669 !important; font-weight: 700; }
.profile-level--free { color: #64748b !important; }

.subscription-active-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid #86efac;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    margin-bottom: 0.85rem;
    text-align: right;
}

.subscription-active-banner__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.subscription-active-banner__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #047857;
}

.subscription-active-banner__sub {
    font-size: 0.68rem;
    color: #065f46;
    margin-top: 0.15rem;
}

.subscription-free-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-align: right;
}

.subscription-free-badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #94a3b8;
    flex-shrink: 0;
}

.subscription-countdown {
    margin-top: 0.65rem;
}
.subscription-countdown__expire-note {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.45;
}

.zarinpal-sim-dialog {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.zarinpal-sim-header {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #fcd34d;
}

.zarinpal-sim-header__logo {
    font-weight: 900;
    color: #92400e;
    font-size: 1rem;
}

.zarinpal-sim-body { padding: 1.25rem; }

.zarinpal-sim-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0.5rem 0 0.25rem;
}

.zarinpal-sim-plan {
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1rem;
}

.zarinpal-sim-note {
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
}

.referrer-status {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: right;
}

.referrer-status.is-visible { display: flex; }

.referrer-status--ok {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #065f46;
}

.referrer-status--err {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.referrer-status--err .referrer-status__icon {
    background: #ef4444;
}

.auth-field-hint {
    font-size: 0.68rem;
    line-height: 1.45;
    color: #64748b;
    margin: -0.15rem 0 0.15rem;
    text-align: right;
}

.referrer-status__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.35rem 0;
}

.admin-plan-row {
    display: grid;
    grid-template-columns: auto 1fr repeat(4, minmax(4rem, 1fr)) auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.5rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
    .admin-plan-row {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-deploy-section {
    border: 2px solid #c7d2fe;
    background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 55%);
}

.admin-deploy-section h3 {
    color: #3730a3;
}

/* ─── تب‌های اختصاصی پنل مدیریت ─── */
#admin-panel .admin-panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    position: sticky;
    top: 0;
    z-index: 2;
}
.admin-panel-tab {
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.admin-panel-tab:hover {
    color: #0e7490;
    background: rgba(236, 254, 255, 0.65);
}
.admin-panel-tab.is-active {
    color: #0e7490;
    background: #fff;
    border-color: rgba(8, 145, 178, 0.28);
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.1);
}
.admin-panel-panels { display: block; }
.admin-panel-tab-panel { display: none; }
.admin-panel-tab-panel.is-active {
    display: block;
    animation: adminPanelTabIn 0.22s ease;
}
@keyframes adminPanelTabIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.admin-form-grid--2 { grid-template-columns: 1fr 1fr; }
.admin-form-grid__full { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .admin-form-grid, .admin-form-grid--2 { grid-template-columns: 1fr; }
}
.admin-brand-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    padding: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.8);
}
.admin-brand-logo-preview__img {
    max-height: 4rem;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}
.admin-brand-logo-preview__placeholder {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

.admin-favicon-preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.5rem;
    padding: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.8);
}
.admin-favicon-preview__img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.65rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.admin-favicon-preview__img--default {
    opacity: 0.85;
}

/* ── برش لوگو در پنل مدیریت ── */
.admin-logo-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.admin-logo-crop-modal.hidden { display: none !important; }
.admin-logo-crop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.admin-logo-crop-modal__dialog {
    position: relative;
    width: min(100%, 22rem);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    direction: rtl;
    text-align: right;
}
.admin-logo-crop-modal__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.admin-logo-crop-modal__hint {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #64748b;
}
.admin-logo-crop-modal__viewport {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    touch-action: none;
    cursor: grab;
}
.admin-logo-crop-modal__viewport:active { cursor: grabbing; }
.admin-logo-crop-modal__viewport img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
    max-width: none;
    max-height: none;
}
.admin-logo-crop-modal__frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25), 0 0 0 9999px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}
.admin-logo-crop-modal__zoom {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}
.admin-logo-crop-modal__zoom input {
    flex: 1;
    accent-color: #4f46e5;
}
.admin-logo-crop-modal__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.admin-logo-crop-modal__btn {
    border: none;
    border-radius: 0.65rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-logo-crop-modal__btn--ghost {
    background: #f1f5f9;
    color: #475569;
}
.admin-logo-crop-modal__btn--primary {
    background: #16a34a;
    color: #fff;
}
.brand-logo__custom-img {
    object-fit: contain;
    background: transparent;
}
.site-maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}
.site-maintenance-overlay.hidden { display: none; }
.site-maintenance-overlay__card {
    max-width: 22rem;
    padding: 1.25rem 1.35rem;
    text-align: center;
}
.site-maintenance-overlay__card h2 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.site-maintenance-overlay__card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #64748b;
}

.deploy-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0.85rem 0 0.4rem;
}

.deploy-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .deploy-form-grid { grid-template-columns: 1fr; }
}

.deploy-form-grid .deploy-full { grid-column: 1 / -1; }

.deploy-input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
}

.deploy-readiness__bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.deploy-readiness__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.deploy-readiness__text {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.deploy-readiness__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.5rem;
    font-size: 0.65rem;
}

@media (max-width: 520px) {
    .deploy-readiness__list { grid-template-columns: 1fr; }
}

.deploy-readiness__list .is-ok { color: #15803d; }
.deploy-readiness__list .is-pending { color: #94a3b8; }

.deploy-dns-preview {
    font-size: 0.65rem;
    font-family: ui-monospace, monospace;
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.65rem;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    direction: ltr;
    text-align: left;
    max-height: 8rem;
    overflow-y: auto;
}

.deploy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.deploy-btn {
    padding: 0.5rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.deploy-btn--primary { background: #4f46e5; color: #fff; }
.deploy-btn--secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.deploy-btn--success { background: #059669; color: #fff; }

.deploy-warn {
    font-size: 0.62rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.media-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 520px) {
    .media-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.media-item-card {
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.media-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.media-item-card__thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.media-item-card__thumb--pdf {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    color: #b91c1c;
}

.media-item-card__body {
    padding: 0.55rem 0.6rem;
}

.media-item-card__title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.media-item-card__desc {
    font-size: 0.6rem;
    color: #64748b;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.media-progress {
    height: 0.3rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.35rem;
}

.media-progress__fill {
    height: 100%;
    border-radius: inherit;
}

.media-progress__label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #15803d;
    margin-top: 0.2rem;
}

.team-dash-hero {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff 55%, #f5f3ff);
    border: 1px solid #bbf7d0;
    margin-bottom: 0.75rem;
}

.team-level-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.team-level-tab {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: inherit;
    color: #475569;
    cursor: pointer;
}

.team-level-tab.active {
    background: linear-gradient(135deg, #16a34a, #2563eb);
    color: #fff;
    border-color: transparent;
}

.team-member-card {
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.team-member-card:hover,
.team-member-card.is-selected {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.team-member-card__name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
}

.team-member-card__meta {
    font-size: 0.58rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.team-member-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.team-metric-pill {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.team-metric-pill--weak {
    background: #fef2f2;
    color: #b91c1c;
}

.team-detail-panel {
    margin-top: 0.65rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid #bfdbfe;
    background: #f8fafc;
}

.team-coach-box {
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid #fde68a;
    background: linear-gradient(145deg, #fffbeb, #fff);
}

.team-coach-box h4 {
    font-size: 0.72rem;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 0.4rem;
}

.team-coach-item {
    font-size: 0.62rem;
    color: #78350f;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #fde68a;
    line-height: 1.45;
}

.team-coach-item:last-child {
    border-bottom: none;
}

.pdf-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    flex-direction: column;
}

.pdf-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #1e293b;
    color: #fff;
    flex-shrink: 0;
}

.pdf-viewer-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pdf-viewer-scroll canvas {
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal-frame {
    width: 100%;
    max-width: 42rem;
    aspect-ratio: 16/9;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #000;
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-frame .aparat-player-mount iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-modal-frame--aparat,
.video-modal-frame .aparat-player-mount {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    position: relative;
}


/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-account-settings.css --- */
/* ── حساب من — هاب تنظیمات ۲۰۲۶ ── */

.account-settings-hub .section-accordion-card {
    padding: 0;
}

/* جلوگیری از تداخل استایل سراسری accordion با کشوهای حساب */
.account-settings-hub .account-settings-item__trigger.section-accordion-header {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    text-align: right;
}

.account-settings-hub .section-accordion-body {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

.account-settings-hub .account-user-section,
.account-settings-hub .account-appearance-section {
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.account-settings-hub {
    --ash-radius: 1.15rem;
    --ash-gap: 0.55rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(ellipse 120% 80% at 100% -20%, rgba(99, 102, 241, 0.14), transparent 52%),
        radial-gradient(ellipse 90% 60% at 0% 110%, rgba(14, 165, 233, 0.1), transparent 48%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.52));
    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* هدر */
.account-settings-hub__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    overflow: hidden;
}

.account-settings-hub__header-glow {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 140%;
    background: conic-gradient(from 210deg at 50% 50%, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12), rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.18));
    opacity: 0.55;
    filter: blur(28px);
    pointer-events: none;
}

.account-settings-hub__header-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    color: #4f46e5;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.75));
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow:
        0 6px 18px rgba(79, 70, 229, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.account-settings-hub__header-icon svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.account-settings-hub__header-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.account-settings-hub__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.account-settings-hub__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

/* منوی کشوها */
.account-settings-hub__menu {
    display: flex;
    flex-direction: column;
    gap: var(--ash-gap);
    padding: 0.85rem 0.9rem 0.35rem;
}

.account-settings-item {
    margin: 0;
    padding: 0;
    border-radius: var(--ash-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.account-settings-item--profile {
    --ash-accent: #6366f1;
    --ash-accent-soft: rgba(99, 102, 241, 0.12);
    --ash-accent-ring: rgba(99, 102, 241, 0.28);
}

.account-settings-item--appearance {
    --ash-accent: #0ea5e9;
    --ash-accent-soft: rgba(14, 165, 233, 0.12);
    --ash-accent-ring: rgba(14, 165, 233, 0.28);
}

.account-settings-item:hover {
    border-color: color-mix(in srgb, var(--ash-accent) 35%, #e2e8f0);
    background: rgba(255, 255, 255, 0.72);
}

.account-settings-item.is-open {
    border-color: var(--ash-accent-ring);
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 8px 24px color-mix(in srgb, var(--ash-accent) 12%, transparent),
        inset 3px 0 0 var(--ash-accent);
}

.account-settings-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    color: inherit;
}

.account-settings-item__trigger:hover .account-settings-item__title {
    color: var(--ash-accent);
}

.account-settings-item__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    color: var(--ash-accent);
    background: var(--ash-accent-soft);
    border: 1px solid color-mix(in srgb, var(--ash-accent) 22%, transparent);
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-settings-item__icon svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
}

.account-settings-item.is-open .account-settings-item__icon {
    transform: scale(1.04);
    background: color-mix(in srgb, var(--ash-accent) 18%, white);
}

.account-settings-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    text-align: right;
}

.account-settings-item__title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.account-settings-item__desc {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-settings-item__end {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.account-settings-item__badge {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    padding: 0.18rem 0.5rem !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--ash-accent) 20%, transparent);
}

.account-settings-item--profile .account-settings-item__badge {
    color: #4338ca !important;
    background: rgba(238, 242, 255, 0.95) !important;
}

.account-settings-item--appearance .account-settings-item__badge {
    color: #0369a1 !important;
    background: rgba(224, 242, 254, 0.95) !important;
}

.account-settings-item__chev {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.45rem;
    color: var(--ash-accent);
    background: var(--ash-accent-soft);
}

.account-settings-item__panel {
    display: none;
    padding: 0 0.75rem 0.85rem;
    margin: 0;
    border-top: none;
}

.account-settings-item.is-open .account-settings-item__panel {
    display: block !important;
    animation: ash-panel-in 0.28s ease;
}

@keyframes ash-panel-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-settings-item__panel.account-user-body {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.account-settings-item.is-open .account-settings-item__panel.account-user-body {
    display: flex !important;
}

/* محتوای داخلی */
.account-settings-hub .account-profile-card--nested {
    border-radius: 0.95rem;
    border-color: rgba(99, 102, 241, 0.14);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.account-settings-hub .account-presenter-card--nested {
    border-radius: 0.95rem;
    padding: 0.9rem 0.95rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(248, 250, 252, 0.65);
    margin-top: 0.15rem;
}

.account-settings-hub .account-presenter-card--hub {
    border-radius: 1rem;
    padding: 0.95rem 1rem 1rem;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.88));
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08);
}

.account-presenter-card--hub.is-disabled {
    opacity: 0.72;
}

.account-presenter-card--hub.is-disabled .account-presenter-toggle__track {
    background: #e2e8f0;
}

.account-presenter-card--hub.is-disabled .account-presenter-card__hint {
    color: #64748b;
}

.account-presenter-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.account-presenter-card__copy {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.account-presenter-card__icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.account-presenter-card__title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    color: #1e293b;
}

.account-presenter-card__sub {
    margin: 0.2rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.account-presenter-card__hint {
    margin: 0.65rem 0 0;
    font-size: 0.66rem;
    font-weight: 600;
    color: #6366f1;
    line-height: 1.45;
}

.account-presenter-toggle {
    position: relative;
    flex-shrink: 0;
    width: 2.85rem;
    height: 1.55rem;
    cursor: pointer;
}

.account-presenter-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.account-presenter-toggle__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.account-presenter-toggle__track::after {
    content: '';
    position: absolute;
    top: 0.18rem;
    right: 0.18rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.account-presenter-toggle__input:checked + .account-presenter-toggle__track {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.account-presenter-toggle__input:checked + .account-presenter-toggle__track::after {
    transform: translateX(-1.3rem);
}

.account-presenter-toggle__input:focus-visible + .account-presenter-toggle__track {
    outline: 2px solid rgba(99, 102, 241, 0.45);
    outline-offset: 2px;
}

.account-settings-hub .account-font-glass {
    border-radius: 0.95rem;
    border-color: rgba(14, 165, 233, 0.16);
}

/* فوتر — خروج */
.account-settings-hub__footer {
    padding: 0.5rem 0.9rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.55));
}

.account-settings-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0 !important;
    border-radius: 0.95rem !important;
    font-size: 0.83rem !important;
    letter-spacing: -0.01em;
}

.account-settings-logout__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    background: rgba(185, 28, 28, 0.1);
}

.account-settings-logout__icon svg {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .account-settings-item.is-open .account-settings-item__panel {
        animation: none;
    }
    .account-settings-item,
    .account-settings-item__icon {
        transition: none;
    }
}

@media (max-width: 380px) {
    .account-settings-item__desc {
        display: none;
    }
    .account-settings-item__badge {
        max-width: 5rem;
    }
}

/* اطلاعات شخصی — جنسیت، استان، شهرستان */
.account-profile-location {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.account-profile-location__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-profile-location__summary {
    font-size: 0.62rem;
    font-weight: 600;
    color: #6366f1;
}

.account-profile-location__summary.is-empty {
    color: #94a3b8;
}

.account-profile-gender {
    border: none;
    margin: 0;
    padding: 0;
}

.account-profile-gender__legend {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
    padding: 0;
}

.account-profile-gender__options {
    display: flex;
    gap: 0.45rem;
}

.account-profile-gender__option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.account-profile-gender__option:has(input:checked) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

.account-profile-gender__option input {
    accent-color: #6366f1;
}

.account-profile-location__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.account-profile-location__save {
    align-self: flex-end;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
}

.account-profile-location__save:hover {
    opacity: 0.92;
}

.account-profile-location__save:active {
    transform: scale(0.98);
}

.account-invite-share {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(99, 102, 241, 0.25);
}

.account-invite-share__hint {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0.35rem 0 0.6rem;
    line-height: 1.5;
}

.account-invite-share__url {
    font-size: 0.65rem;
    color: #475569;
    word-break: break-all;
    margin: 0.35rem 0 0.75rem;
    direction: ltr;
    text-align: left;
}

.account-invite-share__qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.account-invite-share__qr {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.account-invite-share__code {
    font-size: 0.72rem;
    color: #334155;
    text-align: center;
    margin: 0 0 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.account-invite-share__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-referrer-bind {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.account-referrer-bind__hint {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0.35rem 0 0.65rem;
    line-height: 1.5;
}

.account-referrer-bind__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-uplines-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.profile-uplines-list.is-empty {
    font-size: 0.72rem;
    color: #94a3b8;
}

.profile-uplines-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
}

.profile-uplines-list__depth {
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-weight: 700;
    font-size: 0.62rem;
}

.profile-uplines-list__name {
    font-weight: 700;
    color: #334155;
}

.profile-uplines-list__code {
    color: #64748b;
    font-size: 0.65rem;
    margin-inline-start: auto;
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-jalali-calendar.css --- */
/* ═══ تقویم شمسی — استایل ساده (مشترک در کل سایت) ═══ */

.jalali-calendar {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    min-height: 14rem;
    direction: rtl;
    font-family: inherit;
}

.jalali-calendar-loading {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    padding: 2rem 0.5rem;
}

.jalali-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.jalali-calendar-header button {
    border: none;
    background: #e2e8f0;
    border-radius: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.jalali-calendar-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

.jalali-calendar-weekdays,
.jalali-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.jalali-calendar-weekdays span {
    font-size: 0.6rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 600;
}

.jalali-day-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 0.45rem;
    background: #fff;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    color: #334155;
}

.jalali-day-btn:hover:not(:disabled):not(.is-empty) {
    background: #eff6ff;
}

.jalali-day-btn.is-today {
    border: 1px solid #93c5fd;
}

.jalali-day-btn.is-selected {
    background: #3b82f6;
    color: #fff;
}

.jalali-day-btn.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.jalali-day-btn.is-past {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* بازه انتخاب (اهداف) */
.jalali-day-btn.is-in-range {
    background: #dbeafe;
    color: #1e40af;
}

.jalali-day-btn.is-range-start,
.jalali-day-btn.is-range-end {
    background: #3b82f6;
    color: #fff;
}

.jalali-day-btn.is-range-start.is-range-end {
    border-radius: 0.45rem;
}

/* آمار تیم — بازطراحی تقویم (فونت ثابت نسبت به ریشه تا در «خیلی بزرگ» کش نیاید) */
.team-cal-calendar {
    font-size: 14px;
    line-height: 1.35;
}

.team-cal-calendar-header {
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.team-cal-calendar-header button {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1.15rem;
    border: 1px solid #bae6fd;
}

.team-cal-calendar-header button:hover {
    background: #bae6fd;
}

.team-cal-calendar-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
}

.team-cal-calendar .jalali-calendar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.team-cal-calendar-title-hint {
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
}

.team-cal-calendar-weekdays {
    margin-bottom: 0.35rem;
    padding: 0.35rem 0.15rem;
    border-radius: 0.55rem;
    background: #f1f5f9;
}

.team-cal-calendar-weekdays span {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
}

.team-cal-days {
    gap: 0.35rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.team-cal-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.team-cal-days .jalali-day-btn {
    position: relative;
    min-height: 0;
    aspect-ratio: 1;
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    padding: 0.2rem 0.1rem 0.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.team-cal-days .jalali-day-btn:hover:not(:disabled):not(.is-empty) {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
}

.team-cal-days .jalali-day-btn.is-today {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #93c5fd;
}

.team-cal-days .jalali-day-btn.is-selected {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.team-cal-days .jalali-day-btn.has-team-data {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #4ade80;
    color: #166534;
}

.team-cal-days .jalali-day-btn.has-team-data.is-today {
    background: linear-gradient(180deg, #ecfdf5 0%, #dbeafe 100%);
    border-color: #16a34a;
    box-shadow: inset 0 0 0 1px #86efac, 0 0 0 1px #93c5fd;
}

.team-cal-days .jalali-day-btn.has-team-data.is-selected {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border-color: #166534;
    color: #fff;
}

.team-cal-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #16a34a;
}

.team-cal-day-badge {
    display: block;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    color: #15803d;
    margin-top: 2px;
}

.team-cal-days .jalali-day-btn.is-selected .team-cal-dot,
.team-cal-days .jalali-day-btn.is-selected .team-cal-day-badge {
    color: #fff;
    background: transparent;
}

.team-cal-days .jalali-day-btn.is-selected .team-cal-dot {
    background: #fff;
}

@media (max-width: 767px) {
    .team-cal-calendar {
        font-size: 13px;
    }
    .team-cal-days {
        gap: 0.25rem;
    }
    .team-cal-days .jalali-day-btn {
        font-size: 0.75rem;
        padding: 0.12rem 0.05rem 0.28rem;
    }
    .team-cal-day-badge {
        font-size: 0.5rem;
    }
}

@media (max-width: 380px) {
    .team-cal-days .jalali-day-btn {
        font-size: 0.7rem;
    }
    .team-cal-day-badge { font-size: 0.48rem; }
}

html.font-scale-xl .team-cal-calendar,
html.font-scale-lg .team-cal-calendar {
    font-size: 13px;
    max-width: 100%;
}

html.font-scale-xl .team-cal-days .jalali-day-btn,
html.font-scale-lg .team-cal-days .jalali-day-btn {
    aspect-ratio: 1;
    min-height: 0;
    max-height: none;
    height: auto;
}

html.font-scale-xl .team-cal-calendar-weekdays span,
html.font-scale-lg .team-cal-calendar-weekdays span {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    html.font-scale-xl .team-cal-calendar,
    html.font-scale-lg .team-cal-calendar {
        font-size: 11px;
    }

    html.font-scale-xl .team-cal-days .jalali-day-btn,
    html.font-scale-lg .team-cal-days .jalali-day-btn {
        font-size: 0.72rem;
        padding: 0.1rem 0.05rem 0.22rem;
    }

    html.font-scale-xl .team-cal-day-badge,
    html.font-scale-lg .team-cal-day-badge {
        font-size: 0.46rem;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-shell.css --- */
/* هدر — هم‌عرض با کادرها و نوار پایین (عرض از ستون #main-container) */
.header-shell {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.75rem 0 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .header-shell {
        padding-inline: 0;
    }
}

#app-header.app-header-glass {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: visible;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.14);
}

#app-header.app-header-glass::before {
    content: none;
}

#app-header .header-inner {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    /* پدینگ متقارن تا لوگو از لبه کادر فاصله یکسان داشته باشد */
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.28));
}

.brand-logo__icon--sm {
    width: 2.1rem;
    height: 2.1rem;
}

.brand-logo__wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.brand-logo__title {
    font-family: 'Plus Jakarta Sans', 'Vazirmatn', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: #0f2449;
    white-space: nowrap;
}

.brand-logo__title--sm {
    font-size: 0.95rem;
}

.brand-logo__year {
    font-size: 0.58rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.05rem;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
}

.brand-tagline--hero {
    font-size: 0.8rem;
}

.brand-logo--stacked {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
}

.brand-logo__textcol {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
}

.brand-logo--stacked .brand-logo__wordmark {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
}

.brand-logo--stacked .brand-logo__year {
    margin-top: 0;
    font-size: 0.68rem;
}

.brand-header-slogan {
    font-size: 0.58rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .brand-header-slogan {
        font-size: 0.62rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-inline-start: auto;
}

#app-header .header-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

#app-header .header-action-btn:hover {
    background: #f1f5f9;
}

/* لامپ وضعیت اتصال سرور در هدر */
#app-header .header-connection-lamp {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 9999px;
    overflow: visible;
    flex-shrink: 0;
}

#app-header .header-connection-lamp__icon {
    position: relative;
    z-index: 1;
    width: 1.35rem;
    height: 1.35rem;
    transition: color 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

#app-header .header-connection-lamp__glow {
    position: absolute;
    inset: 0.2rem;
    border-radius: 9999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

#app-header .header-connection-lamp.is-off {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

#app-header .header-connection-lamp.is-off .header-connection-lamp__icon {
    color: #94a3b8;
    filter: grayscale(0.35);
    opacity: 0.85;
}

#app-header .header-connection-lamp.is-on {
    color: #ca8a04;
    background: #fffbeb;
    border-color: #fde68a;
}

#app-header .header-connection-lamp.is-on .header-connection-lamp__icon {
    color: #eab308;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.65));
}

#app-header .header-connection-lamp.is-on .header-connection-lamp__glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.45) 0%, rgba(250, 204, 21, 0) 72%);
    animation: np-connection-lamp-pulse 1.8s ease-in-out infinite;
}

#app-header .header-connection-lamp.is-off:hover {
    background: #e2e8f0;
}

#app-header .header-connection-lamp.is-on:hover {
    background: #fef3c7;
}

@keyframes np-connection-lamp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.18); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    #app-header .header-connection-lamp.is-on .header-connection-lamp__glow {
        animation: none;
    }
}

/* چیپ تاریخ/ساعت — هویت بصری مستقل از لوگو و بدون شیشه روی شیشه */
#app-header .header-datetime {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.4rem 0.75rem;
    min-width: 0;
    max-width: 12rem;
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#app-header #header-date {
    color: #94a3b8;
    line-height: 1.35;
    text-align: right;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    font-weight: 600;
}

#app-header #header-clock {
    color: #f8fafc;
    line-height: 1.25;
    text-align: right;
    font-variant-numeric: tabular-nums;
    direction: rtl;
    unicode-bidi: plaintext;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

#notification-panel .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.65rem 0.55rem 0.65rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}
#notification-panel .notification-item:hover {
    background: #f8fafc;
}
#notification-panel .notification-item--unread {
    background: #eff6ff;
}
#notification-panel .notification-item--unread:hover {
    background: #dbeafe;
}
#notification-panel .notification-item__body {
    flex: 1;
    min-width: 0;
}
#notification-panel .notification-item__title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}
#notification-panel .notification-item__message {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#notification-panel .notification-item__dismiss {
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
#notification-panel .notification-item__dismiss:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}
#notification-panel .notification-empty {
    padding: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
}

#notification-bell .notification-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
    pointer-events: none;
    z-index: 2;
}
#notification-bell .notification-badge.hidden {
    display: none !important;
}

@media (max-width: 639px) {
    #notification-bell .notification-badge {
        top: 0.05rem;
        right: 0;
        min-width: 0.95rem;
        height: 0.95rem;
        font-size: 0.52rem;
        padding: 0 0.22rem;
    }
}

@media (max-width: 639px) {
    .header-shell {
        padding: 0.35rem 0 0;
    }

    #app-header.app-header-glass {
        border-radius: 1rem;
    }

    #app-header .header-inner {
        padding: 0.55rem 0.7rem;
        gap: 0.45rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .brand-block {
        gap: 0.3rem;
        min-width: 0;
        flex: 1 1 auto;
        max-width: none;
    }

    .brand-logo {
        gap: 0.4rem;
    }

    .brand-logo__icon {
        width: 1.85rem;
        height: 1.85rem;
    }

    .brand-logo__title {
        font-size: 0.88rem;
        letter-spacing: -0.01em;
        transform: none;
    }

    .brand-logo__wordmark {
        flex-shrink: 0;
    }

    .brand-logo__year {
        font-size: 0.58rem;
    }

    .brand-header-slogan {
        display: block;
        font-size: 0.48rem;
        max-width: 7rem;
        white-space: normal;
        line-height: 1.25;
    }

    #app-header .header-datetime {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 0.06rem;
        padding: 0.32rem 0.55rem;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 8.5rem;
        overflow: visible;
        border-radius: 0.7rem;
    }

    #app-header #header-date {
        font-size: 0.52rem;
        line-height: 1.2;
        white-space: nowrap;
        color: #94a3b8;
    }

    #app-header #header-clock {
        font-size: 0.72rem;
        line-height: 1.2;
        white-space: nowrap;
        color: #f8fafc;
    }

    #app-header #header-clock::before {
        content: none;
    }

    #app-header #header-date span:first-child {
        display: none;
    }

    #app-header #header-date span:last-child {
        font-size: 0.52rem !important;
        margin-top: 0 !important;
    }

    .header-actions {
        gap: 0.35rem;
        flex: 0 0 auto;
    }

    #app-header .header-action-btn {
        padding: 0.35rem !important;
    }

    #app-header .header-action-btn svg {
        width: 1.05rem !important;
        height: 1.05rem !important;
    }
}

.stats-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.stats-data-table thead {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.95);
    z-index: 1;
}

.stats-data-table th,
.stats-data-table td {
    padding: 0.5rem 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.stats-data-table th {
    font-weight: 700;
    color: #475569;
}

.stats-data-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.8);
}

.chart-table-wrap {
    max-height: 360px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
}

/* Conversion metrics inline (team KPI size) */
.conv-kpi-mini {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.conv-kpi-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.conv-kpi-mini .conv-kpi-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    line-height: 1.25;
}
#team-kpi-grid > .glass-card-inner > span:not([id]):not(.conv-trend-wrap) {
    font-weight: 800;
    color: #475569;
}
.conv-kpi-mini .conv-trend,
.conv-trend-wrap .conv-trend {
    margin-top: 4px;
    font-size: 0.65rem;
}

.conv-trend-wrap {
    display: block;
    min-height: 0.85rem;
}
.conv-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
}
.conv-trend.up { color: #16a34a; }
.conv-trend.down { color: #dc2626; }
.conv-skeleton-mini {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 1rem;
    min-height: 88px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.glass-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
}

.glass-card-inner {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}

.chart-panel {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(255,255,255,0.35) 100%);
    border-radius: 1.25rem;
    padding: 0.75rem;
}

.btn-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-capsule-primary {
    background: #0f172a;
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-capsule-primary:hover {
    background: #000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.btn-capsule-green {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 45%, #16a34a 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.38);
}

.btn-capsule-green:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
}

.btn-capsule-green:active {
    transform: scale(0.98);
}

.capsule-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

main.app-main {
    padding-bottom: calc(var(--mobile-nav-height) + 1.25rem + env(safe-area-inset-bottom, 0px));
    /* padding افقی از #main-container می‌آید تا با هدر و نوار پایین یکی باشد */
    padding-inline: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

.nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    text-align: center;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#mobile-nav .nav-item {
    color: #64748b;
    background: transparent;
    box-shadow: none;
    transform: none;
}

#mobile-nav .nav-item svg {
    transition: transform 0.25s ease, filter 0.25s ease;
}

#mobile-nav .nav-tab-goals svg { color: #0891b2; stroke: #0891b2; }
#mobile-nav .nav-tab-mystats svg { color: #2563eb; stroke: #2563eb; }
#mobile-nav .nav-tab-teamstats svg { color: #16a34a; stroke: #16a34a; }
#mobile-nav .nav-tab-planning svg { color: #d97706; stroke: #d97706; }
#mobile-nav .nav-tab-ascension svg { color: #10b981; stroke: #10b981; }
#mobile-nav .nav-tab-messenger svg { color: #3390ec; stroke: #3390ec; }
#mobile-nav .nav-tab-tweets svg { color: #1d9bf0; stroke: #1d9bf0; }
#mobile-nav .nav-tab-clips svg { color: #dc2626; stroke: #dc2626; }
#mobile-nav .nav-tab-account svg { color: #4f46e5; stroke: #4f46e5; }

#mobile-nav .nav-tab-goals.active {
    background: rgba(236, 254, 255, 0.92);
    color: #0891b2;
    box-shadow: 0 8px 16px -4px rgba(8, 145, 178, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(165, 243, 252, 0.65);
}
#mobile-nav .nav-tab-mystats.active {
    background: rgba(239, 246, 255, 0.94);
    color: #2563eb;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(191, 219, 254, 0.7);
}
#mobile-nav .nav-tab-teamstats.active {
    background: rgba(240, 253, 244, 0.92);
    color: #16a34a;
    box-shadow: 0 8px 16px -4px rgba(22, 163, 74, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(187, 247, 208, 0.65);
}
#mobile-nav .nav-tab-planning.active {
    background: rgba(255, 251, 235, 0.94);
    color: #d97706;
    box-shadow: 0 8px 16px -4px rgba(217, 119, 6, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(253, 230, 138, 0.65);
}
#mobile-nav .nav-tab-ascension.active {
    background: rgba(236, 253, 245, 0.92);
    color: #10b981;
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(167, 243, 208, 0.65);
}
#mobile-nav .nav-tab-messenger.active {
    background: rgba(239, 246, 255, 0.92);
    color: #3390ec;
    box-shadow: 0 8px 16px -4px rgba(51, 144, 236, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(191, 219, 254, 0.65);
}
#mobile-nav .nav-tab-tweets.active {
    background: rgba(232, 246, 253, 0.94);
    color: #1d9bf0;
    box-shadow: 0 8px 16px -4px rgba(29, 155, 240, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(186, 230, 253, 0.65);
}
#mobile-nav .nav-tab-clips.active {
    background: rgba(254, 242, 242, 0.94);
    color: #dc2626;
    box-shadow: 0 8px 16px -4px rgba(220, 38, 38, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(254, 202, 202, 0.65);
}
#mobile-nav .nav-tab-account.active {
    background: rgba(238, 242, 255, 0.94);
    color: #4f46e5;
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(199, 210, 254, 0.65);
}

#mobile-nav .nav-item.active {
    transform: translateY(-4px);
    font-weight: 600;
}

#mobile-nav .nav-item.active svg {
    transform: scale(1.08);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* ─── تب اهداف (NetPro 2026) ─── */
.goals-viewport {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 0.5rem;
}
.goals-root { display: flex; flex-direction: column; gap: 0.75rem; }
.goals-hero { padding: 1rem 1.1rem; border-radius: 1rem; margin-bottom: 0; }
.goals-hero__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.goals-hero__title { font-size: 1.05rem; font-weight: 800; color: #0e7490; margin: 0 0 0.25rem; }
.goals-hero__sub { font-size: 0.68rem; color: #64748b; margin: 0; line-height: 1.55; }
.goals-hero__date { font-size: 0.65rem; color: #0891b2; margin: 0.35rem 0 0; font-weight: 600; }
.goals-date-source { font-weight: 400; color: #94a3b8; font-size: 0.58rem; }
.goals-kpi-strip {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; margin-bottom: 0.65rem;
}
@media (min-width: 640px) { .goals-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .goals-kpi-strip--stats { grid-template-columns: repeat(3, 1fr); } }
.goals-kpi { background: rgba(8, 145, 178, 0.06); border: 1px solid rgba(8, 145, 178, 0.12); border-radius: 0.75rem; padding: 0.55rem; text-align: center; }
.goals-kpi span { display: block; font-size: 0.58rem; font-weight: 800; color: #475569; margin-bottom: 0.15rem; }
.goals-kpi strong { font-size: 0.88rem; color: #0891b2; font-weight: 800; }
.goals-kpi--warn strong { color: #dc2626; }
.goals-kpi--warn.goals-kpi--clickable:hover {
    background: rgba(254, 242, 242, 0.85);
    border-color: rgba(220, 38, 38, 0.28);
}
.goals-kpi--why strong { color: #0d9488; }
.goals-kpi--why.goals-kpi--clickable:hover {
    background: rgba(204, 251, 241, 0.85);
    border-color: rgba(13, 148, 136, 0.28);
}
.goals-kpi--done strong { color: #047857; }
.goals-kpi--clickable {
    cursor: pointer;
    font: inherit;
    width: 100%;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.goals-kpi--clickable:hover {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.28);
}
.goals-kpi--clickable:active { transform: scale(0.98); }
.goals-kpi__hint {
    display: block;
    font-size: 0.5rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0 !important;
}
.goals-stats-charts { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.55rem; }
.goals-stats-charts--glass { gap: 0.5rem; }
.goals-stats-charts__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
}
.goals-stats-charts__row > .goals-stats-chart-card,
.goals-stats-charts__row > .goals-glass-chart {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 639px) {
    .goals-stats-charts__row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.3rem;
    }
    .goals-stats-charts__row > .goals-stats-chart-card,
    .goals-stats-charts__row > .goals-glass-chart {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }
    .goals-stats-charts__row .goals-stats-chart-wrap {
        height: 96px;
        max-height: 96px;
        padding: 0.25rem 0.2rem 0.2rem;
    }
    .goals-stats-charts__row .goals-stats-chart-card__title {
        font-size: 0.5rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .goals-stats-charts__row .goals-glass-chart__head,
    .goals-stats-charts__row .goals-stats-chart-card__head {
        margin-bottom: 0.25rem;
        padding-bottom: 0.22rem;
    }
    .goals-stats-charts__row .goals-stats-chart-card__link {
        font-size: 0.42rem;
        padding: 0.1rem 0.26rem;
    }
}
.goals-glass-chart,
.goals-stats-chart-card {
    position: relative;
    overflow: hidden;
    padding: 0.55rem 0.5rem 0.5rem;
    border-radius: 1rem;
    min-width: 0;
    isolation: isolate;
    background: linear-gradient(
        148deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(236, 254, 255, 0.42) 48%,
        rgba(255, 255, 255, 0.52) 100%
    );
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 10px 32px rgba(8, 145, 178, 0.1),
        0 2px 10px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.goals-glass-chart::before,
.goals-stats-chart-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 85% 60% at 12% -5%, rgba(103, 232, 249, 0.28), transparent 58%);
    pointer-events: none;
    z-index: 0;
}
.goals-glass-chart::after,
.goals-stats-chart-card::after {
    content: '';
    position: absolute;
    inset-inline-end: -18%;
    top: -35%;
    width: 55%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.goals-stats-chart-card--priority::before {
    background: radial-gradient(ellipse 75% 55% at 88% -8%, rgba(251, 191, 36, 0.2), transparent 58%);
}
.goals-stats-chart-card--wide {
    background: linear-gradient(
        148deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(224, 242, 254, 0.38) 45%,
        rgba(255, 255, 255, 0.5) 100%
    );
}
.goals-stats-chart-card--wide::before {
    background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(56, 189, 248, 0.22), transparent 60%);
}
.goals-glass-chart__head,
.goals-stats-chart-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.goals-stats-chart-card__title {
    margin: 0;
    font-size: 0.6rem;
    font-weight: 800;
    color: #0e7490;
    line-height: 1.35;
    flex: 1 1 4.5rem;
    min-width: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.goals-stats-chart-card--priority .goals-stats-chart-card__title {
    font-size: 0.48rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.45;
    text-shadow: none;
}
.goals-stats-chart-card__link {
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0e7490;
    font-size: 0.48rem;
    font-weight: 700;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow:
        0 2px 10px rgba(8, 145, 178, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
@media (min-width: 640px) {
    .goals-stats-charts__row { gap: 0.45rem; }
    .goals-glass-chart,
    .goals-stats-chart-card { padding: 0.6rem 0.62rem 0.55rem; border-radius: 1.05rem; }
    .goals-stats-chart-card__title { font-size: 0.65rem; }
    .goals-stats-chart-card--priority .goals-stats-chart-card__title { font-size: 0.52rem; }
    .goals-stats-chart-card__link { font-size: 0.52rem; padding: 0.2rem 0.42rem; }
}
.goals-stats-chart-card__link:hover {
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.goals-stats-chart-card__link:active { transform: scale(0.97); }
.goals-trend-period-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}
.goals-trend-period-btn {
    border: 1px solid rgba(8, 145, 178, 0.22);
    background: rgba(255, 255, 255, 0.55);
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.goals-trend-period-btn.is-active {
    background: rgba(236, 254, 255, 0.95);
    border-color: #0891b2;
    color: #0e7490;
}
.goals-trend-period-btn:hover:not(.is-active) {
    border-color: rgba(8, 145, 178, 0.45);
    color: #0891b2;
}
@media (max-width: 639px) {
    .goals-trend-period-btn { font-size: 0.52rem; padding: 0.18rem 0.4rem; }
}
.goals-stats-chart-card__hint {
    margin: 0 0 0.2rem;
    font-size: 0.5rem;
    color: #94a3b8;
    line-height: 1.35;
}
.goals-stats-chart-wrap {
    position: relative;
    z-index: 1;
    height: 128px;
    max-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0.05rem;
    padding: 0.35rem 0.3rem 0.25rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -8px 18px rgba(8, 145, 178, 0.04);
}
.goals-stats-chart-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%);
    pointer-events: none;
}
.goals-stats-chart-wrap canvas {
    position: relative;
    z-index: 1;
    max-height: 100% !important;
}
@media (min-width: 640px) {
    .goals-stats-chart-wrap { height: 138px; max-height: 138px; }
}
.goals-stats-chart-wrap--trend {
    height: 148px;
    max-height: 148px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(224, 242, 254, 0.18) 100%);
}
.goals-stats-chart-wrap--trend-weekly {
    height: 158px;
    max-height: 158px;
}
@media (min-width: 640px) {
    .goals-stats-chart-wrap--trend { height: 158px; max-height: 158px; }
    .goals-stats-chart-wrap--trend-weekly { height: 168px; max-height: 168px; }
}
.goals-stats-popup__body { max-height: 65vh; overflow-y: auto; }
.goals-stats-priority-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.goals-stats-priority-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
}
.goals-stats-priority-item__title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
}
.goals-stats-priority-item__meta {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 600;
}
.goals-stats-overdue-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.goals-stats-overdue-item {
    padding: 0.55rem 0.62rem;
    border-radius: 0.75rem;
    background: rgba(254, 242, 242, 0.72);
    border: 1px solid rgba(254, 202, 202, 0.85);
}
.goals-stats-overdue-item__title {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}
.goals-stats-overdue-item__meta {
    display: block;
    font-size: 0.58rem;
    color: #64748b;
    line-height: 1.35;
}
.goals-stats-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.goals-stats-why-item {
    padding: 0.65rem 0.72rem;
    border-radius: 0.85rem;
    background: rgba(236, 253, 245, 0.72);
    border: 1px solid rgba(167, 243, 208, 0.85);
}
.goals-stats-why-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
}
.goals-stats-why-item__title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #115e59;
    line-height: 1.35;
}
.goals-stats-why-item__date {
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.goals-stats-why-item__text {
    margin: 0;
    font-size: 0.68rem;
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
}
.goals-field__optional {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.92em;
}
.goals-stats-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.goals-stats-popup__action-hint {
    margin: 0;
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.45;
    text-align: center;
}
.goals-stats-popup__action {
    width: 100%;
    justify-content: center;
}
.goals-stats-steps-list { display: flex; flex-direction: column; gap: 0.55rem; }
.goals-stats-step-card {
    padding: 0.7rem 0.75rem;
    border-radius: 0.8rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
}
.goals-stats-step-card__title {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
}
.goals-stats-step-card__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin: 0 0 0.5rem;
}
.goals-stats-step-card__meta div { text-align: center; }
.goals-stats-step-card__meta dt {
    margin: 0;
    font-size: 0.55rem;
    color: #64748b;
    font-weight: 700;
}
.goals-stats-step-card__meta dd {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0891b2;
}
.goals-stats-step-card__progress { margin: 0; }
.goals-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.18rem;
    margin-bottom: 0.25rem;
    padding: 0.18rem;
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.goals-toolbar::-webkit-scrollbar { display: none; }
.goals-filter-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    font-size: 0.54rem;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    line-height: 1.25;
}
@media (max-width: 640px) {
    .goals-toolbar {
        margin-inline: -0.15rem;
        padding: 0.3rem 0.35rem;
        border-radius: 0.75rem;
    }
    .goals-filter-pill {
        padding: 0.15rem 0.3rem;
        font-size: 0.5rem;
    }
}
.goals-filter-pill.is-active { background: #ecfeff; border-color: #0891b2; color: #0e7490; }
.goals-list { display: flex; flex-direction: column; gap: 0.75rem; }
.goals-box-section .goals-box__accordion-head .goals-box__title {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}
.goals-box__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.goals-box__title { font-size: 0.9rem; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.35; }
.goals-box__add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.8rem;
    border: 1.5px dashed rgba(22, 163, 74, 0.45);
    background: rgba(240, 253, 244, 0.45);
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.goals-box__add-btn:hover {
    background: rgba(220, 252, 231, 0.72);
    border-color: #16a34a;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.14);
}
.goals-box__add-btn:active { transform: scale(0.99); }
.goals-box__add-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    color: #15803d;
    background: rgba(22, 163, 74, 0.1);
    border: 1px dashed rgba(22, 163, 74, 0.35);
    flex-shrink: 0;
}
.goals-box__add-text { letter-spacing: -0.01em; }
.goals-box__spacer { height: 0.4rem; flex-shrink: 0; }

/* ── دکمه افزودن گام (glass + cyan) ── */
.goals-add-step-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.goals-add-step-btn__icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.28);
    flex-shrink: 0;
}
.goals-add-step-btn--row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    border: 1.5px dashed rgba(8, 145, 178, 0.38);
    background: rgba(236, 254, 255, 0.42);
    color: #0e7490;
    font-size: 0.7rem;
    font-weight: 700;
}
.goals-add-step-btn--row .goals-add-step-btn__text { letter-spacing: -0.01em; }
.goals-add-step-btn--row:hover {
    background: rgba(207, 250, 254, 0.65);
    border-color: #0891b2;
    box-shadow: 0 3px 12px rgba(8, 145, 178, 0.12);
}
.goals-add-step-btn--row:active { transform: scale(0.99); }
.goals-add-step-composer {
    display: flex;
    align-items: stretch;
    margin-top: 0.5rem;
    border: 1px solid rgba(8, 145, 178, 0.22);
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.goals-add-step-composer .goals-step-add-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
}
.goals-add-step-composer .goals-step-add-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.55);
}
.goals-add-step-btn--attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    background: rgba(236, 254, 255, 0.55);
    border-inline-start: 1px solid rgba(8, 145, 178, 0.18);
}
.goals-add-step-btn--attach:hover {
    background: rgba(207, 250, 254, 0.75);
}
.goals-add-step-btn--attach:hover .goals-add-step-btn__icon {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(8, 145, 178, 0.35);
}
.goals-add-step-btn--attach .goals-add-step-btn__icon {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.95rem;
    transition: transform 0.12s, box-shadow 0.12s;
}
/* ── فیلتر حوزه‌های رویال مایند ── */
.goals-royal-toolbar {
    display: flex; flex-wrap: nowrap; gap: 0.35rem; margin-bottom: 0.55rem;
    padding: 0.35rem; border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.85); border: 1px solid #e2e8f0;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.goals-royal-toolbar::-webkit-scrollbar { display: none; }
.goals-royal-pill-filter {
    flex-shrink: 0; scroll-snap-align: start;
    padding: 0.32rem 0.65rem; border-radius: 999px; font-size: 0.62rem; font-weight: 700;
    border: 1px solid transparent; background: #fff; color: #64748b; cursor: pointer;
    font-family: inherit; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
}
@media (max-width: 640px) {
    .goals-royal-toolbar {
        margin-inline: -0.15rem;
        padding: 0.3rem 0.35rem;
        border-radius: 0.75rem;
    }
    .goals-royal-pill-filter {
        padding: 0.26rem 0.48rem;
        font-size: 0.56rem;
    }
}
.goals-royal-pill-filter.is-active { background: #ecfeff; border-color: #0891b2; color: #0e7490; }
.goals-royal-pill-filter.royal--financial.is-active { background: #fefce8; border-color: #ca8a04; color: #a16207; }
.goals-royal-pill-filter.royal--career.is-active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.goals-royal-pill-filter.royal--lifestyle.is-active { background: #ecfdf5; border-color: #16a34a; color: #15803d; }
.goals-royal-pill-filter.royal--mental.is-active { background: #f5f3ff; border-color: #7c3aed; color: #6d28d9; }
.goals-royal-pill-filter.royal--fitness.is-active { background: #fff1f2; border-color: #e11d48; color: #be123c; }
.goals-royal-pill-filter.royal--relationships.is-active { background: #fdf2f8; border-color: #db2777; color: #be185d; }

/* ── کارت هدف با تم حوزه (accent ملایم — پس‌زمینه خنثی برای خوانایی) ── */
.goals-item--royal {
    border-width: 1px;
    border-style: solid;
    border-color: #e2e8f0;
    border-inline-start-width: 3px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.goals-item--royal.royal--financial { border-inline-start-color: #ca8a04; }
.goals-item--royal.royal--career { border-inline-start-color: #2563eb; }
.goals-item--royal.royal--lifestyle { border-inline-start-color: #16a34a; }
.goals-item--royal.royal--mental { border-inline-start-color: #7c3aed; }
.goals-item--royal.royal--fitness { border-inline-start-color: #e11d48; }
.goals-item--royal.royal--relationships { border-inline-start-color: #db2777; }
.goals-item--royal.is-open { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08); }

/* هدر کارت: عنوان + نوار پیشرفت */
.goals-item--royal .goals-item__summary {
    padding: 0.65rem 0.75rem 0.7rem;
    border-radius: 0;
    background: #fff;
    width: 100%;
}
.goals-item--royal .goals-item__drawer {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}
.goals-item--royal .goals-item__title { color: #0f172a; }

.goals-royal-pill {
    font-size: 0.58rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.45rem;
    background: rgba(8, 145, 178, 0.08); color: #0e7490; white-space: nowrap;
}
.goals-item--royal.royal--financial .goals-royal-pill { background: rgba(202, 138, 4, 0.12); color: #a16207; }
.goals-item--royal.royal--career .goals-royal-pill { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; }
.goals-item--royal.royal--lifestyle .goals-royal-pill { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.goals-item--royal.royal--mental .goals-royal-pill { background: rgba(124, 58, 237, 0.1); color: #6d28d9; }
.goals-item--royal.royal--fitness .goals-royal-pill { background: rgba(225, 29, 72, 0.1); color: #be123c; }
.goals-item--royal.royal--relationships .goals-royal-pill { background: rgba(219, 39, 119, 0.1); color: #be185d; }
.goals-meta-legacy { opacity: 0.75; font-style: italic; }

/* ── آکاردئون چرایی و روش اجرا ── */
.goals-psyche-accordion {
    margin-top: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
}
.goals-psyche-accordion__toggle {
    width: 100%; display: flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.6rem; border: none; background: #f8fafc;
    font-size: 0.68rem; font-weight: 700; color: #475569; cursor: pointer;
    font-family: inherit; text-align: right;
}
.goals-psyche-accordion__body { display: none; padding: 0 0.65rem 0.6rem; background: #fff; }
.goals-psyche-accordion.is-open .goals-psyche-accordion__body { display: block; }
.goals-psyche-block h5 { margin: 0.35rem 0 0.2rem; font-size: 0.62rem; color: #64748b; font-weight: 800; }
.goals-psyche-block p { margin: 0; font-size: 0.68rem; color: #334155; line-height: 1.6; white-space: pre-wrap; }

/* ── ویزارد مرحله‌ای فرم مودال ── */
.goals-form-wizard { margin-bottom: 0.75rem; }
.goals-form-wizard__caption {
    font-size: 0.62rem; font-weight: 700; color: #0891b2; margin: 0 0 0.45rem; text-align: center;
}
.goals-form-wizard__track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem;
}
.goals-form-wizard__step {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    padding: 0.4rem 0.25rem; border-radius: 0.65rem;
    border: 1px solid #e2e8f0; background: #f8fafc; transition: border-color 0.15s, background 0.15s;
}
.goals-form-wizard__num {
    width: 1.35rem; height: 1.35rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 800; color: #64748b; background: #fff; border: 1px solid #e2e8f0;
}
.goals-form-wizard__label { font-size: 0.58rem; font-weight: 700; color: #64748b; text-align: center; line-height: 1.35; }
.goals-form-wizard__step.is-active { border-color: #0891b2; background: #ecfeff; }
.goals-form-wizard__step.is-active .goals-form-wizard__num { background: #0891b2; border-color: #0891b2; color: #fff; }
.goals-form-wizard__step.is-active .goals-form-wizard__label { color: #0e7490; }
.goals-form-wizard__step.is-done { border-color: #a5f3fc; background: rgba(236, 254, 255, 0.5); }
.goals-form-wizard__step.is-done .goals-form-wizard__num { background: #06b6d4; border-color: #06b6d4; color: #fff; }
.goals-form-step-intro {
    font-size: 0.65rem; color: #64748b; margin: 0 0 0.15rem; line-height: 1.55;
    padding: 0.45rem 0.55rem; border-radius: 0.55rem; background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.1);
}
.goals-form-wizard-actions { justify-content: flex-end; }
.goals-form-wizard-actions .goals-btn--primary { margin-inline-start: auto; }
.goals-form-wizard-actions #goals-form-wizard-back { margin-inline-end: auto; }

/* ── تب‌های فرم مودال (قدیمی — نگه‌داری برای سازگاری) ── */
.goals-form-tabs {
    display: flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.65rem;
    border-radius: 0.75rem; background: rgba(241, 245, 249, 0.9); border: 1px solid #e2e8f0;
}
.goals-form-tab {
    flex: 1; border: 1px solid transparent; background: transparent; border-radius: 0.55rem;
    padding: 0.42rem 0.35rem; font-size: 0.62rem; font-weight: 700; color: #64748b;
    cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.goals-form-tab.is-active { background: #fff; border-color: #a5f3fc; color: #0e7490; box-shadow: 0 1px 4px rgba(8, 145, 178, 0.12); }
.goals-form-panel { display: none; flex-direction: column; gap: 0.65rem; }
.goals-form-panel.is-active { display: flex; }
.goals-field--wide textarea { min-height: 4.5rem; resize: vertical; }
.goals-field--check { flex-direction: row; align-items: center; gap: 0.45rem; cursor: pointer; }
.goals-field--check input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: #0891b2; }
.goals-form-hint { font-size: 0.6rem; color: #94a3b8; margin: -0.35rem 0 0.15rem; line-height: 1.5; }
.goals-form-hint--royal { margin-top: -0.25rem; margin-bottom: 0.15rem; color: #0e7490; font-weight: 600; }
.goals-form-legacy { font-size: 0.65rem; color: #64748b; border: 1px dashed #e2e8f0; border-radius: 0.65rem; padding: 0.45rem 0.55rem; }
.goals-form-legacy summary { cursor: pointer; font-weight: 700; }
.goals-jalali-field.is-waived { opacity: 0.45; pointer-events: none; }

/* ── بازه زمانی — تقویم واحد ── */
.goals-no-deadline-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    direction: rtl;
    text-align: right;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #f8fafc, #fff);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.goals-no-deadline-option:hover { border-color: #cbd5e1; background: #f1f5f9; }
.goals-no-deadline-option input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #0891b2;
    cursor: pointer;
}
.goals-no-deadline-option__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.goals-no-deadline-option__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}
.goals-no-deadline-option__hint {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.45;
}
.goals-range-schedule { display: flex; flex-direction: column; gap: 0.55rem; }
.goals-range-schedule.is-waived { opacity: 0.4; pointer-events: none; user-select: none; }
.goals-range-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media (max-width: 480px) { .goals-range-summary { grid-template-columns: 1fr; } }
.goals-range-chip {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: #fff;
    text-align: right;
    direction: rtl;
}
.goals-range-chip--start { border-color: #bfdbfe; background: #eff6ff; }
.goals-range-chip--end { border-color: #a7f3d0; background: #ecfdf5; }
.goals-range-chip__label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.goals-range-chip__value {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
}
.goals-range-chip__value.is-missing { color: #94a3b8; font-weight: 600; }
.goals-range-hint {
    font-size: 0.62rem;
    color: #64748b;
    margin: 0;
    text-align: right;
    line-height: 1.5;
}
.goals-range-cal { margin-top: 0.15rem; }

.goals-sortable-list { display: flex; flex-direction: column; gap: 0.45rem; }
.goals-item {
    border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #fff;
    overflow: hidden; transition: box-shadow 0.2s;
}
.goals-item.is-open { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.goals-item--ghost { opacity: 0.45; }
.goals-item--chosen { box-shadow: 0 6px 20px rgba(8, 145, 178, 0.18); border-color: #67e8f9; }
.goals-item__head-row { display: flex; align-items: stretch; width: 100%; }
.goals-item__summary {
    flex: 1; display: flex; align-items: stretch; width: 100%;
    padding: 0.55rem 0.65rem; border: none; background: transparent; cursor: grab;
    text-align: right; font-family: inherit; min-width: 0;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}
.goals-item--chosen .goals-item__summary { cursor: grabbing; }
.goals-item__summary-body {
    flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; width: 100%;
}
.goals-item__title-wrap { display: flex; align-items: flex-start; gap: 0.35rem; width: 100%; min-width: 0; }
.goals-item__title {
    font-size: 0.82rem; font-weight: 800; color: #0f172a;
    flex: 1; min-width: 0; line-height: 1.45;
    white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.goals-item__title-wrap .drawer-chev { flex-shrink: 0; margin-top: 0.12rem; }
.goals-item__inline-progress { width: 100%; }
/* ── نوار پیشرفت مدرن زیر عنوان هدف ── */
.goals-inline-progress {
    width: 100%;
    padding: 0.45rem 0.55rem 0.5rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.goals-inline-progress__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.35rem; gap: 0.35rem;
}
.goals-inline-progress__label {
    font-size: 0.58rem; font-weight: 800; color: #64748b;
    letter-spacing: 0.02em;
}
.goals-inline-progress__label::before {
    content: '▰'; margin-inline-end: 0.25rem; font-size: 0.52rem; color: #64748b;
}
.goals-inline-progress__pct {
    font-size: 0.62rem; font-weight: 800; color: #334155;
    font-variant-numeric: tabular-nums;
}
.goals-inline-progress__track {
    position: relative;
    height: 0.52rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.15);
}
.goals-inline-progress__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.45s ease, box-shadow 0.45s ease;
    position: relative;
}
.goals-inline-progress__fill::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 55%);
    pointer-events: none;
}
.goals-item__inline-progress .goals-progress__bar { height: 0.38rem; }
.goals-item__drawer { display: none; padding: 0.65rem 0.75rem 0.75rem; border-top: 1px solid #e2e8f0; }
.goals-item.is-open .goals-item__drawer { display: block; }
.goals-item__drawer .goals-card__meta { margin-top: 0.5rem; }
.goals-section .section-accordion-body { display: none; padding: 0.85rem 1rem 1rem; }
.goals-section.is-open .section-accordion-body { display: block; }
.goals-section-toggle { width: 100%; }
.goals-panel { padding: 1rem 1.15rem; }
.goals-form { display: flex; flex-direction: column; gap: 0.65rem; }
.goals-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
@media (max-width: 480px) { .goals-form-grid { grid-template-columns: 1fr; } }
.goals-field { display: flex; flex-direction: column; gap: 0.3rem; }
.goals-field > span, .goals-field-label { font-size: 0.68rem; font-weight: 700; color: #475569; }
.goals-field input, .goals-field select, .goals-field textarea {
    width: 100%; border: 1px solid #e2e8f0; border-radius: 0.75rem;
    padding: 0.55rem 0.7rem; font-size: 0.78rem; background: #fff; font-family: inherit;
}
.goals-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.goals-btn {
    border: none; border-radius: 0.75rem; padding: 0.55rem 0.95rem;
    font-size: 0.72rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.goals-btn--primary { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.goals-btn--ghost { background: #f1f5f9; color: #334155; }
.goals-btn--danger { background: #fef2f2; color: #b91c1c; }
.goals-btn--sm { padding: 0.4rem 0.65rem; font-size: 0.68rem; }
.goals-card { padding: 0.95rem 1rem; }
.goals-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.45rem; }
.goals-card__title { font-size: 0.88rem; font-weight: 800; color: #0f172a; margin: 0; }
.goals-honor-badge { font-size: 0.85rem; }
.goals-status { font-size: 0.62rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.55rem; }
.goals-status--active { background: #ecfeff; color: #0e7490; }
.goals-status--done { background: #ecfdf5; color: #047857; }
.goals-status--late { background: #fef2f2; color: #b91c1c; }
.goals-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; font-size: 0.62rem; color: #475569; }
.goals-card__meta span { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.12rem 0.4rem; }
.goals-deadline-countdown {
    text-align: center;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.55rem;
    border-radius: 0.85rem;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #fff);
}
.goals-deadline-countdown__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.3rem;
    line-height: 1.45;
    word-break: break-word;
}
.goals-deadline-countdown__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e3a8a;
    direction: ltr;
}
.goals-countdown-units {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.35rem;
    direction: ltr;
}
.goals-countdown-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.5rem;
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.12);
}
.goals-countdown-unit__val {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    color: #1e3a8a;
}
.goals-countdown-unit__lbl {
    font-size: 0.58rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.1rem;
}
.goals-deadline-countdown--expired {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2, #fff);
}
.goals-deadline-countdown--expired .goals-deadline-countdown__label { color: #b91c1c; }
.goals-deadline-countdown--expired .goals-deadline-countdown__value { color: #b91c1c; }
.goals-deadline-countdown--done {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ecfdf5, #fff);
}
.goals-deadline-countdown--done .goals-deadline-countdown__label { color: #047857; }
.goals-deadline-countdown--done .goals-deadline-countdown__value { color: #065f46; font-size: 0.88rem; }
.goals-deadline-countdown--open {
    border-color: #e2e8f0;
    background: #f8fafc;
}
.goals-deadline-countdown--open .goals-deadline-countdown__label { color: #64748b; }
.goals-deadline-countdown--open .goals-deadline-countdown__value { color: #475569; font-size: 0.82rem; }
.goals-priority--high { color: #b91c1c !important; background: #fef2f2 !important; }
.goals-priority--mid { color: #b45309 !important; background: #fffbeb !important; }
.goals-priority--low { color: #0369a1 !important; background: #f0f9ff !important; }
.goals-progress__bar { height: 0.45rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.goals-progress__fill { height: 100%; transition: width 0.35s; }
.goals-progress__labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: #475569; margin-top: 0.3rem; }
.goals-card__desc { font-size: 0.68rem; color: #64748b; margin: 0.45rem 0 0; }
.goals-card-steps { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid #f1f5f9; }
.goals-steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.goals-step-item { display: flex; align-items: flex-start; gap: 0.4rem; padding: 0.4rem 0.5rem; border-radius: 0.65rem; background: #fff; border: 1px solid #e2e8f0; }
.goals-step-item.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.goals-step-check { width: 1.45rem; height: 1.45rem; border-radius: 0.4rem; border: 2px solid #cbd5e1; background: #fff; color: #059669; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.goals-step-item.is-done .goals-step-check { background: #059669; border-color: #059669; color: #fff; }
.goals-step-title { font-size: 0.74rem; font-weight: 600; display: block; }
.goals-step-meta { font-size: 0.6rem; color: #64748b; }
.goals-step-remove { border: none; background: transparent; color: #94a3b8; cursor: pointer; font-size: 1rem; }
.goals-add-step-inline { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.goals-step-add-input { flex: 1; border: 1px dashed #cbd5e1; border-radius: 0.65rem; padding: 0.4rem 0.55rem; font-size: 0.72rem; }
.goals-share-row { display: flex; gap: 0.35rem; margin-top: 0.5rem; flex-wrap: wrap; }
.goals-share-input { flex: 1; min-width: 8rem; font-size: 0.6rem; padding: 0.35rem; border: 1px dashed #cbd5e1; border-radius: 0.5rem; direction: ltr; }
.goals-card__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.goals-empty-hint { font-size: 0.72rem; color: #94a3b8; text-align: center; padding: 1rem 0.5rem; margin: 0; }
.goals-chart-wrap { position: relative; height: 200px; }
.goals-team-feed { list-style: none; padding: 0; margin: 0; }
.goals-team-feed li { display: flex; justify-content: space-between; padding: 0.5rem 0.65rem; border-radius: 0.65rem; background: #f8fafc; margin-bottom: 0.35rem; font-size: 0.74rem; }
.goals-team-feed__pct { font-weight: 800; color: #0891b2; }
.goals-report-timeline { list-style: none; padding: 0; margin: 0; }
.goals-report-timeline li { padding: 0.5rem 0.65rem; border-radius: 0.65rem; background: #f8fafc; border-right: 3px solid #0891b2; margin-bottom: 0.4rem; }
.goals-report-timeline__goal { font-size: 0.6rem; color: #64748b; }
.goals-report-timeline__step { font-size: 0.76rem; font-weight: 700; }
.goals-jalali-btn { width: 100%; text-align: right; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.55rem 0.7rem; font-size: 0.78rem; background: #fff; cursor: pointer; font-family: inherit; }
.goals-jalali-cal { margin-top: 0.35rem; }
.goals-form-steps-block { border-top: 1px solid #f1f5f9; padding-top: 0.6rem; }
.goals-form-steps-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; font-size: 0.72rem; font-weight: 700; }
.goals-form-step-row { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.35rem; }
.goals-form-step-num { font-size: 0.62rem; color: #94a3b8; width: 1.1rem; text-align: center; }
.goals-form-step-input { flex: 1; border: 1px solid #e2e8f0; border-radius: 0.65rem; padding: 0.45rem 0.6rem; font-size: 0.74rem; }
.goals-form-step-remove { border: none; background: #fef2f2; color: #b91c1c; width: 1.65rem; height: 1.65rem; border-radius: 0.45rem; cursor: pointer; }
.goals-modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.goals-modal { width: 100%; max-width: 420px; padding: 1rem 1.15rem; max-height: 90vh; overflow-y: auto; }
.goals-modal--wide { max-width: 520px; }
.goals-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.goals-modal__head h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.goals-modal__close { border: none; background: transparent; font-size: 1.35rem; cursor: pointer; color: #94a3b8; }

/* ─── تقویم آمار تیم ─── */
.team-cal-section { grid-column: 1 / -1; width: 100%; }
.team-cal-section__title { font-size: 0.9rem; font-weight: 800; color: #1e293b; margin: 0 0 0.25rem; }
.team-cal-section__sub { font-size: 0.65rem; color: #64748b; margin: 0; line-height: 1.5; }
.team-cal-section__head { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.75rem; }
.team-cal-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.team-cal-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.team-cal-filter-panel__label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0c4a6e;
    letter-spacing: -0.01em;
}
.team-cal-filter-panel__badge {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.team-cal-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem;
    border-radius: 0.85rem;
    background: #ffffff;
    border: 1px solid #bae6fd;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.team-cal-filter::-webkit-scrollbar { display: none; }
.team-cal-filter-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: inherit;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
@media (max-width: 640px) {
    .team-cal-layout {
        padding: 0.65rem 0.7rem;
        border-radius: 0.9rem;
    }
    .team-cal-filter-panel__label { font-size: 0.72rem; }
    .team-cal-filter {
        padding: 0.4rem;
        border-radius: 0.75rem;
    }
    .team-cal-filter-pill {
        padding: 0.38rem 0.7rem;
        font-size: 0.64rem;
    }
}
.team-period-filter-wrap {
    grid-column: 1 / -1;
    width: 100%;
}
.team-period-filter-bar {
    margin-bottom: 0;
}
.team-period-filter-bar .filter-scroll-track {
    scroll-snap-type: x proximity;
    padding: 0.12rem 0.25rem;
}
.team-period-filter-bar .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.48rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 600;
    scroll-snap-align: start;
}
@media (max-width: 639px) {
    .team-period-filter-bar .filter-btn {
        padding: 0.42rem 0.75rem;
        font-size: 0.64rem;
    }
}
.team-dashboard-section {
    grid-column: 1 / -1;
    width: 100%;
}

/* ── تب آمار تیم — کارت‌های کشو یکسان (بسته) ── */
#tab-teamstats #team-content.tab-grid-stats {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
}

#tab-teamstats #team-content.tab-grid-stats > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    margin: 0 !important;
}

#tab-teamstats #team-content > .section-accordion-card {
    padding: 0;
    overflow: hidden;
}

#tab-teamstats #team-content > .section-accordion-card > .section-accordion-header[data-team-section-key] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 2.5rem 0.7rem 2.75rem;
    margin: 0;
    box-sizing: border-box;
}

#tab-teamstats #team-content > .section-accordion-card > .section-accordion-header[data-team-section-key] h3 {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding-inline: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 4.5rem);
    text-align: center;
}

#tab-teamstats #team-content > .section-accordion-card > .section-accordion-header[data-team-section-key] > .drawer-chev {
    position: absolute;
    right: 0.85rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
    flex-shrink: 0;
}

#tab-teamstats #team-content > .section-accordion-card:not(.is-open) > .section-accordion-header[data-team-section-key] {
    border-bottom: none;
}

#tab-teamstats #team-content > .section-accordion-card.is-open > .section-accordion-header[data-team-section-key] {
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

#tab-teamstats #team-content > .section-accordion-card:not(.is-open) > .section-accordion-body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#tab-teamstats #team-content > .section-accordion-card.has-section-feedback-anchor > .section-accordion-header[data-team-section-key] {
    padding-inline-start: 2.75rem;
    padding-inline-end: 2.5rem;
}

#tab-teamstats #team-content > .section-accordion-card > .section-accordion-header[data-team-section-key] > .drawer-chev.drawer-chev--open,
#tab-teamstats #team-content > .section-accordion-card > .section-accordion-header[data-team-section-key][aria-expanded="true"] > .drawer-chev {
    transform: translateY(-50%) rotate(180deg);
}

#tab-teamstats #team-content > .section-accordion-card.is-open > .section-accordion-body {
    margin-top: 0;
    padding: 0.85rem 1rem 1rem !important;
    border-top: none;
}

/* ── تب اهداف من — کارت‌های کشو یکسان (مثل آمار تیم) ── */
#tab-goals .goals-root {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
}

#tab-goals .goals-root > .section-accordion-card.goals-section {
    padding: 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 2.5rem 0.7rem 2.75rem;
    margin: 0;
    box-sizing: border-box;
}

#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle h3,
#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle .goals-box__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding-inline: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 4.5rem);
    text-align: center;
    color: #374151;
}

#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle > .drawer-chev {
    position: absolute;
    right: 0.85rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
    flex-shrink: 0;
}

#tab-goals .goals-root > .goals-section:not(.is-open) > .section-accordion-header.goals-section-toggle {
    border-bottom: none;
}

#tab-goals .goals-root > .goals-section.is-open > .section-accordion-header.goals-section-toggle {
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

#tab-goals .goals-root > .goals-section:not(.is-open) > .section-accordion-body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#tab-goals .goals-root > .goals-section.has-section-feedback-anchor > .section-accordion-header.goals-section-toggle {
    padding-inline-start: 2.75rem;
    padding-inline-end: 2.5rem;
}

#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle > .drawer-chev.drawer-chev--open,
#tab-goals .goals-root > .goals-section > .section-accordion-header.goals-section-toggle[aria-expanded="true"] > .drawer-chev {
    transform: translateY(-50%) rotate(180deg);
}

#tab-goals .goals-root > .goals-section.is-open > .section-accordion-body {
    margin-top: 0;
    padding: 0.85rem 1rem 1rem !important;
    border-top: none;
}

.team-dashboard-root {
    padding: 0.15rem 0 0;
}
.team-dashboard-section .section-accordion-body {
    padding-top: 0.35rem;
}

.team-dashboard-combo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-dashboard-combo > #team-dashboard-toggle {
    border-bottom: 1px solid rgba(226, 232, 240, 0.55);
}

.team-dashboard-combo .team-dashboard-chart-details {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.team-dashboard-combo .team-dashboard-chart-summary {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.25rem 2.25rem;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    list-style: none;
}

.team-dashboard-combo .team-dashboard-chart-summary h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

.team-dashboard-combo .team-dashboard-chart-summary:hover h3 {
    color: #2563eb;
}

.team-dashboard-combo .team-dashboard-chart-summary > .drawer-chev {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.team-dashboard-combo .team-dashboard-chart-details[open] .team-dashboard-chart-summary > .drawer-chev {
    transform: translateY(-50%) rotate(180deg);
}

.team-dashboard-combo .team-dashboard-chart-details .my-perf-stats-details__body {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 0;
}

.team-dashboard-combo > #team-dashboard-body {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 0;
}

.has-section-feedback-anchor.team-dashboard-combo .team-dashboard-chart-summary {
    padding-left: 3rem;
    padding-right: 2.25rem;
}
.team-cal-filter-pill:hover,
.team-cal-filter-pill:focus-visible {
    border-color: #38bdf8;
    color: #0369a1;
    background: #f0f9ff;
    outline: none;
}
.team-cal-filter-pill.is-active {
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-color: #16a34a;
    color: #15803d;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}
.team-cal-date-source { font-size: 0.58rem; color: #94a3b8; margin: 0.15rem 0 0; }
.team-cal-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 45%, #f8fafc 100%);
    border: 2px solid #7dd3fc;
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.1);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .team-cal-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 1rem;
    }

    .team-cal-calendar-panel {
        border-top: none;
        padding-top: 0;
    }
}
.team-cal-hint { font-size: 0.65rem; color: #64748b; margin: 0; line-height: 1.55; }
.team-cal-hint.is-warn { color: #b45309; font-weight: 700; }
.team-cal-calendar-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-top: 1px dashed #bae6fd;
}
.team-cal-calendar-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.team-cal-calendar-panel__label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
}
.team-cal-calendar-panel__status {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}
.team-cal-calendar { max-width: 100%; width: 100%; border: none; background: transparent; padding: 0; min-height: auto; }
.team-cal-calendar.is-awaiting-metric { opacity: 0.82; }
.team-cal-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin: 0;
    padding: 0.55rem 0 0;
    list-style: none;
    border-top: none;
}
.team-cal-calendar-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
}
.team-cal-legend-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.25rem;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
}
.team-cal-legend-swatch--today { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 0 0 0 1px #93c5fd; }
.team-cal-legend-swatch--data { background: #ecfdf5; border-color: #16a34a; }
.team-cal-legend-swatch--selected { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #1d4ed8; }
.team-cal-selected-label { font-size: 0.72rem; font-weight: 700; color: #334155; margin: 0 0 0.65rem; }
.team-cal-meta { font-size: 0.62rem; color: #64748b; margin: 0 0 0.65rem; }
.team-cal-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 480px) { .team-cal-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .team-cal-metrics { grid-template-columns: repeat(5, 1fr); } }
.team-cal-metric { padding: 0.65rem 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.2rem; }
.team-cal-metric__val { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.team-cal-metric__lbl { font-size: 0.58rem; color: #64748b; line-height: 1.35; }
.team-cal-empty { font-size: 0.72rem; color: #94a3b8; text-align: center; padding: 1.25rem 0.5rem; margin: 0; }
.team-cal-modal-backdrop {
    position: fixed; inset: 0; z-index: 130;
    background: rgba(15, 23, 42, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; overflow-y: auto;
}
.team-cal-modal-backdrop.hidden { display: none; }
.team-cal-modal {
    width: 100%; max-width: 420px; padding: 1rem 1.15rem;
    max-height: 90vh; overflow-y: auto;
}
.team-cal-modal__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.75rem; margin-bottom: 0.75rem;
}
.team-cal-modal__head h3 { margin: 0; font-size: 0.95rem; font-weight: 800; color: #1e293b; }
.team-cal-modal__sub { font-size: 0.62rem; color: #64748b; margin: 0.25rem 0 0; }
.team-cal-modal__close {
    border: none; background: transparent; font-size: 1.35rem;
    cursor: pointer; color: #94a3b8; line-height: 1; flex-shrink: 0;
}

/* ─── کشو + جدول گزارش عملکرد (اهداف) ─── */
.goals-report-drawer {
    margin-top: 0.65rem;
    border: 1px solid rgba(8, 145, 178, 0.18);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.goals-report-drawer__summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 2.25rem;
    padding: 0.6rem 2.25rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    list-style: none;
    background: rgba(248, 250, 252, 0.85);
}
.goals-report-drawer__lead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}
.goals-report-drawer__lead .drawer-chev {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}
.goals-report-drawer__label {
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
    font-weight: 500;
    color: #94a3b8;
}
.goals-report-drawer[open] .goals-report-drawer__lead > .drawer-chev {
    transform: translateY(-50%) rotate(180deg);
    background: rgba(8, 145, 178, 0.16);
}

.goals-report-drawer__summary::-webkit-details-marker { display: none; }
.goals-report-drawer[open] .goals-report-drawer__label { color: #0891b2; }
.goals-report-drawer__count {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.62rem; font-weight: 800; color: #0891b2;
    background: rgba(236, 254, 255, 0.9); padding: 0.15rem 0.5rem; border-radius: 999px;
    border: 1px solid rgba(8, 145, 178, 0.2);
}
.goals-report-section__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}
.goals-report-section .goals-box__accordion-head .goals-report-section__title {
    margin: 0;
}
#tab-goals .goals-report-section.is-open .section-accordion-body {
    padding-top: 0.85rem;
    border-top: none;
    margin-top: 0;
}

.goals-report-drawer__body { padding: 0.55rem; }
.goals-report-table-wrap {
    border-radius: 0.85rem; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    max-height: 16rem; overflow-y: auto;
}
.goals-report-table {
    width: 100%; border-collapse: collapse; font-size: 0.66rem;
}
.goals-report-table thead {
    position: sticky; top: 0; z-index: 1;
    background: rgba(8, 145, 178, 0.1);
    backdrop-filter: blur(8px);
}
.goals-report-table th {
    padding: 0.5rem 0.55rem; text-align: right; font-weight: 800;
    color: #0e7490; border-bottom: 1px solid rgba(8, 145, 178, 0.15);
    white-space: nowrap;
}
.goals-report-table td {
    padding: 0.45rem 0.55rem; text-align: right; vertical-align: top;
    color: #334155; border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}
.goals-report-table tbody tr:last-child td { border-bottom: none; }
.goals-report-table tbody tr:hover { background: rgba(8, 145, 178, 0.05); }
.goals-report-table__goal { color: #64748b; font-size: 0.6rem; max-width: 6rem; }
.goals-report-table__step { font-weight: 700; color: #0f172a; }
.goals-report-table__date { color: #0891b2; font-weight: 600; white-space: nowrap; }
.goals-report-table__note { color: #64748b; font-size: 0.62rem; max-width: 7rem; }

/* ─── نوار بالا: راهنما + گزارش خطا (هم‌تراز داخل کادر) ─── */
.tab-content.admin-card-hidden {
    display: none !important;
}

[data-feedback-section],
.has-section-feedback-anchor {
    position: relative !important;
    overflow: hidden !important;
}

.has-section-feedback-anchor.is-open,
[data-feedback-section].is-open {
    overflow: visible !important;
}

.section-corner-bar {
    position: absolute;
    top: 6px;
    bottom: auto;
    inset-inline-start: 10px;
    inset-inline-end: auto;
    width: auto;
    max-width: calc(100% - 1.25rem);
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
    direction: ltr;
}

.section-corner-bar__start,
.section-corner-bar__end {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    flex-shrink: 0;
    min-height: 16px;
    overflow: visible;
}

.section-corner-bar__start {
    justify-content: flex-start;
}

.section-corner-bar__end {
    justify-content: flex-end;
}

.section-feedback-btn-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.section-feedback-btn-group .section-feedback-btn {
    pointer-events: auto;
    z-index: 1;
}

/* ─── دکمه راهنما (شیشه‌ای آبی) ─── */
.section-help-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    padding: 0;
    margin: 0;
    border-radius: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 100;
    background: rgba(224, 242, 254, 0.58);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(8, 145, 178, 0.38);
    color: #0891b2;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.section-corner-bar__start .section-help-btn {
    position: relative;
}

.section-help-btn svg {
    width: 7px;
    height: 7px;
}

.section-help-btn.is-active {
    background: rgba(8, 145, 178, 0.22);
    border-color: #0891b2;
    color: #0e7490;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* ─── کادر راهنما داخل همان بخش ─── */
.section-help-panel {
    display: none;
    margin: 0 0.65rem 0.55rem;
    padding: 0;
    position: relative;
    z-index: 2;
}

.section-help-panel.is-open {
    display: block;
}

.section-help-panel__inner {
    padding: 0.55rem 0.65rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(8, 145, 178, 0.22);
    background: linear-gradient(145deg, rgba(236, 254, 255, 0.92), rgba(240, 249, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-help-panel__head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.section-help-panel__label {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    color: #0e7490;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}

.section-help-panel__title {
    flex: 1;
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-help-panel__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.section-help-panel__body {
    font-size: 0.68rem;
    line-height: 1.65;
    color: #475569;
}

.admin-section-help-item__tag {
    font-size: 0.55rem;
    font-weight: 700;
    color: #0891b2;
    margin-right: 0.25rem;
}

.section-help-btn:hover,
.section-help-btn:focus-visible {
    transform: scale(1.06);
    background: rgba(186, 230, 253, 0.78);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    outline: none;
}

.section-help-tip {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0e7490;
    white-space: nowrap;
    max-width: min(11rem, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.28rem 0.5rem;
    border-radius: 0.55rem;
    background: rgba(236, 254, 255, 0.82);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(8, 145, 178, 0.28);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    z-index: 110;
    direction: rtl;
    text-align: right;
}

.section-corner-bar__start:hover .section-help-tip,
.section-help-anchor:hover .section-help-tip,
.section-help-btn:focus-visible + .section-help-tip {
    opacity: 1;
    transform: translateY(0);
}

/* سازگاری با ساختار قدیمی */
.section-help-anchor {
    position: absolute;
    top: 8px;
    left: 8px;
    bottom: auto;
    z-index: 100;
    width: 16px;
    height: 16px;
    pointer-events: none;
    overflow: visible;
}

.section-feedback-corner {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    pointer-events: none;
    max-width: calc(100% - 0.9rem);
}

.section-help-modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}
.section-help-modal-backdrop.hidden { display: none; }
.section-help-modal {
    width: 100%; max-width: 420px; padding: 1rem 1.1rem;
    border: 1px solid rgba(8, 145, 178, 0.22);
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.12);
}
.section-help-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.section-help-modal__head h3 { margin: 0; font-size: 0.92rem; font-weight: 800; color: #0e7490; }
.section-help-modal__close { border: none; background: transparent; font-size: 1.3rem; cursor: pointer; color: #94a3b8; }
.section-help-modal__sub { font-size: 0.62rem; color: #64748b; margin: 0 0 0.55rem; }
.section-help-modal__body {
    font-size: 0.74rem; color: #334155; line-height: 1.7;
    padding: 0.65rem 0.75rem; border-radius: 0.75rem;
    background: rgba(240, 249, 255, 0.65);
    border: 1px solid rgba(8, 145, 178, 0.15);
    max-height: 50vh; overflow-y: auto;
}
.section-help-modal__empty { margin: 0; color: #64748b; font-size: 0.72rem; }
.section-help-modal__actions { display: flex; justify-content: flex-end; margin-top: 0.65rem; }
.section-help-btn-ghost {
    border: 1px solid #e2e8f0; background: #fff; color: #475569;
    font-size: 0.68rem; font-weight: 700; padding: 0.4rem 0.75rem;
    border-radius: 0.65rem; cursor: pointer; font-family: inherit;
}

.admin-section-help-empty { font-size: 0.72rem; color: #64748b; text-align: center; padding: 0.75rem 0; margin: 0; }
.admin-section-help-item {
    border: 1px solid #bae6fd; border-radius: 0.65rem; padding: 0.55rem 0.65rem;
    background: #fff; margin-bottom: 0.45rem;
}
.admin-section-help-item__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem; margin-bottom: 0.25rem; }
.admin-section-help-item__head strong { font-size: 0.72rem; color: #0f172a; }
.admin-section-help-item__meta { font-size: 0.58rem; color: #64748b; }
.admin-section-help-item__preview { font-size: 0.65rem; color: #475569; margin: 0 0 0.4rem; line-height: 1.5; }
.admin-section-help-item__actions { display: flex; gap: 0.35rem; }
.admin-section-help-action {
    font-size: 0.6rem; font-weight: 700; padding: 0.22rem 0.48rem;
    border-radius: 0.45rem; border: 1px solid #bae6fd; background: #ecfeff;
    color: #0e7490; cursor: pointer; font-family: inherit;
}
.admin-section-help-action--del { border-color: #fecaca; background: #fff1f2; color: #dc2626; }

.section-feedback-corner--multi {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.3rem;
}
.section-feedback-corner--multi .section-feedback-btn-group {
    flex-direction: column;
}
.section-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    padding: 0;
    margin: 0;
    border-radius: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    background: rgba(254, 226, 226, 0.55);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #dc2626;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.section-feedback-btn:hover,
.section-feedback-btn:focus-visible {
    transform: scale(1.06);
    background: rgba(254, 202, 202, 0.72);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    outline: none;
}
.section-feedback-btn svg {
    width: 7px;
    height: 7px;
}
.section-feedback-tip {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.35;
    color: #991b1b;
    white-space: nowrap;
    max-width: min(11rem, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.28rem 0.5rem;
    border-radius: 0.55rem;
    background: rgba(254, 242, 242, 0.82);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(239, 68, 68, 0.32);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    z-index: 110;
    direction: rtl;
    text-align: right;
}
.section-feedback-corner:hover .section-feedback-tip,
.section-feedback-btn-group:hover .section-feedback-tip,
.section-corner-bar__end:hover .section-feedback-tip,
.section-feedback-btn:focus-visible + .section-feedback-tip {
    opacity: 1;
    transform: translateY(0);
}

.has-section-feedback-anchor > .section-accordion-header,
.has-section-feedback-anchor > .goals-box-section > .section-accordion-header,
.has-section-feedback-anchor > .team-cal-section__head {
    padding-inline-start: 0;
}

.has-section-feedback-anchor > .team-cal-section__head {
    position: relative;
    min-height: 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem 0 3rem;
}

.has-section-feedback-anchor > .team-cal-section__head .team-cal-section__title,
.has-section-feedback-anchor > .team-cal-section__head .team-cal-date-source {
    width: 100%;
    text-align: center;
    margin: 0;
}

.has-section-feedback-anchor.my-perf-stats-details > summary,
.has-section-feedback-anchor > .my-perf-stats-details > summary {
    min-height: 2.75rem;
    padding: 0.25rem 2.25rem 0.25rem 3rem;
}
.section-feedback-modal-backdrop {
    position: fixed; inset: 0; z-index: 140; background: rgba(15,23,42,0.45);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.section-feedback-modal-backdrop.hidden { display: none; }
.section-feedback-modal { width: 100%; max-width: 400px; padding: 1rem 1.1rem; }
.section-feedback-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.section-feedback-modal__head h3 { margin: 0; font-size: 0.9rem; font-weight: 800; color: #991b1b; }
.section-feedback-modal__close { border: none; background: transparent; font-size: 1.3rem; cursor: pointer; color: #94a3b8; }
.section-feedback-modal__user { font-size: 0.6rem; color: #64748b; margin: 0 0 0.35rem; }
.section-feedback-modal__context {
    font-size: 0.65rem; color: #64748b; margin: 0 0 0.75rem; line-height: 1.5;
    padding: 0.45rem 0.55rem; border-radius: 0.65rem;
    background: rgba(254, 242, 242, 0.5); border: 1px solid rgba(239, 68, 68, 0.2);
}
.section-feedback-context-grid {
    display: grid;
    gap: 0.2rem;
}
.section-feedback-context-grid strong { color: #991b1b; }
.section-feedback-field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.65rem; }
.section-feedback-field span { font-size: 0.65rem; font-weight: 700; color: #475569; }
.section-feedback-field select,
.section-feedback-field textarea {
    border: 1px solid rgba(239, 68, 68, 0.22); border-radius: 0.65rem;
    padding: 0.5rem 0.65rem; font-family: inherit; font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}
.section-feedback-form__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }
.section-feedback-btn-ghost {
    padding: 0.45rem 0.75rem; border-radius: 0.65rem; font-size: 0.72rem; font-weight: 700;
    font-family: inherit; cursor: pointer; border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.75); color: #475569;
}
.section-feedback-btn-submit {
    padding: 0.45rem 0.85rem; border-radius: 0.65rem; font-size: 0.72rem; font-weight: 800;
    font-family: inherit; cursor: pointer; border: 1px solid rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.85), rgba(220, 38, 38, 0.9));
    color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.admin-feedback-item {
    border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem; background: #fff;
}
.admin-feedback-item.is-new { border-color: #fca5a5; background: #fff7ed; }
.admin-feedback-item__head { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.35rem; }
.admin-feedback-badge { font-size: 0.58rem; font-weight: 700; padding: 0.12rem 0.4rem; border-radius: 999px; }
.admin-feedback-badge--section { background: #dbeafe; color: #1d4ed8; }
.admin-feedback-badge--tab { background: #f3e8ff; color: #7c3aed; }
.admin-feedback-badge--type { background: #ffedd5; color: #c2410c; }
.admin-feedback-badge--status { background: #ecfdf5; color: #15803d; }
.admin-feedback-location {
    margin: 0 0 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
}
.admin-feedback-location__title {
    font-size: 0.58rem;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 0.35rem;
}
.admin-feedback-location__grid { margin: 0; display: grid; gap: 0.25rem; }
.admin-feedback-location__row {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.35rem;
    align-items: start;
}
.admin-feedback-location__row dt {
    font-size: 0.58rem;
    font-weight: 700;
    color: #78716c;
    margin: 0;
}
.admin-feedback-location__row dd {
    font-size: 0.65rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.45;
}
.admin-feedback-item__user { font-size: 0.62rem; color: #64748b; margin: 0 0 0.35rem; }
.admin-feedback-item__msg { font-size: 0.72rem; color: #1e293b; margin: 0 0 0.5rem; line-height: 1.55; white-space: pre-wrap; }
.admin-feedback-item__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-feedback-action { font-size: 0.6rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 0.45rem; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-family: inherit; }
.admin-feedback-action--ok { border-color: #86efac; color: #15803d; }
.admin-feedback-action--del { border-color: #fecaca; color: #dc2626; }

.no-scrollbar::-ms-overflow-style {
    display: none;
}
.no-scrollbar {
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.task-item {
    touch-action: manipulation;
    transition: opacity 0.2s ease, background 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.task-item.sortable-ghost {
    opacity: 0.35;
    background: #e5e7eb;
}

.task-item.sortable-chosen .task-text {
    cursor: grabbing;
}

.task-item.sortable-chosen {
    background: rgba(241, 245, 249, 0.85);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.task-item.sortable-fallback {
    opacity: 0.92;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    border-radius: 0.5rem;
    background: #fff;
}

/* ── پاپ‌آپ اجباری اشتراک پس از دوره آزمایشی ── */
.subscription-paywall {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.subscription-paywall.hidden {
    display: none !important;
}

body.subscription-paywall-open {
    overflow: hidden;
}

.subscription-paywall__card {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 1.5rem 1.35rem 1.25rem;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.subscription-paywall__glow {
    position: absolute;
    inset: -30% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.18), transparent 70%);
    pointer-events: none;
}

.subscription-paywall__icon {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #15803d;
    background: rgba(220, 252, 231, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.subscription-paywall__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
}

.subscription-paywall__desc {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.65;
}

.subscription-paywall__plans {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.subscription-paywall__plan-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.7rem 0.45rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.95);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.subscription-paywall__plan-option-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.subscription-paywall__plan-option-meta {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
}

.subscription-paywall__plan-option-price {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #166534;
}

.subscription-paywall__plan-option.is-selected {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(240, 253, 244, 0.98);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.subscription-paywall__plan {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #166534;
    background: rgba(240, 253, 244, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.subscription-paywall__pay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.9rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.subscription-paywall__pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.34);
}

.subscription-paywall__support {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0369a1;
    text-decoration: none;
    background: rgba(224, 242, 254, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.subscription-paywall__support-hint {
    position: relative;
    z-index: 1;
    margin: 0.65rem 0 0;
    font-size: 0.62rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.5;
}

.subscription-trial-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.subscription-trial-banner__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.subscription-trial-banner__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4338ca;
    margin-bottom: 0.15rem;
}

.subscription-trial-banner__sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}


/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-theme.css --- */
/* NetPro 2026 — Theme utilities (light mode only) */

.auth-section-wrap {
    background-color: #b3d9f2;
}

.hidden { display: none !important; }

/* app-desktop-stack با display:flex!important گرید تب را حتی با .hidden نشان می‌دهد */
.tab-content.hidden,
.tab-grid-stats.hidden,
.tab-grid-account.hidden {
    display: none !important;
}

.section-accordion-card.is-open > .section-accordion-body [data-section-body] {
    display: block !important;
}

.lead-accordion-card.is-open > .lead-accordion-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lead-accordion-body .activity-slots-row,
.lead-accordion-body .prospect-stage-navigator {
    min-height: 2.5rem;
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-motion.css --- */
/* ── NetPro Motion — انیمیشن‌های نرم سراسری ── */

:root {
    --np-motion-duration: 0.42s;
    --np-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --np-motion-fast: 0.22s;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --np-motion-duration: 0.01ms;
        --np-motion-fast: 0.01ms;
    }
}

/* ── کشوها و آکاردئون‌ها ── */
.goals-item__drawer,
.goals-psyche-accordion__body,
.section-accordion-body,
.lead-accordion-body {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        visibility 0s linear var(--np-motion-duration);
}

.goals-item__drawer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear var(--np-motion-duration);
}

.goals-psyche-accordion__body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        visibility 0s linear var(--np-motion-duration);
}

.section-accordion-body,
.lead-accordion-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top-width: 0 !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        margin var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear var(--np-motion-duration);
}

.people-list-item__details {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top-width: 0 !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        margin var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear var(--np-motion-duration);
}

.people-list-item--incomplete .people-list-item__details {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.goals-item.is-open > .goals-item__drawer,
.goals-psyche-accordion.is-open > .goals-psyche-accordion__body,
.section-accordion-card.is-open > .section-accordion-body,
.goals-section.is-open > .section-accordion-body,
.lead-accordion-card.is-open > .lead-accordion-body,
.people-list-item--rated.is-expanded > .people-list-item__details {
    will-change: max-height, opacity;
}

.goals-item.is-open > .goals-item__drawer {
    max-height: 3200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.65rem 0.65rem 0.75rem !important;
    padding-inline-start: 2.8rem !important;
    border-top-width: 1px !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear 0s;
}

.goals-psyche-accordion.is-open > .goals-psyche-accordion__body {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0 0.65rem 0.6rem !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        visibility 0s linear 0s;
}

.section-accordion-card.is-open > .section-accordion-body,
.goals-section.is-open > .section-accordion-body {
    max-height: 4000px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 0.5rem !important;
    margin-top: 0.35rem !important;
    border-top-width: 1px !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        margin var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear 0s;
}

.goals-section.is-open > .section-accordion-body {
    padding: 0.85rem 1rem 1rem !important;
    margin-top: 0 !important;
}

.lead-accordion-card.is-open > .lead-accordion-body {
    max-height: 4000px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 0.5rem !important;
    margin-top: 0.35rem !important;
    border-top-width: 1px !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        margin var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear 0s;
}

.people-list-item--rated.is-expanded > .people-list-item__details {
    max-height: 2400px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 0.45rem !important;
    margin-top: 0.35rem !important;
    border-top-width: 1px !important;
    transition:
        max-height var(--np-motion-duration) var(--np-motion-ease),
        opacity calc(var(--np-motion-duration) * 0.82) ease,
        padding var(--np-motion-duration) var(--np-motion-ease),
        margin var(--np-motion-duration) var(--np-motion-ease),
        border-top-width calc(var(--np-motion-duration) * 0.7) ease,
        visibility 0s linear 0s;
}

/* ── details (گزارش اهداف، نمودار عملکرد) ── */
@keyframes np-drawer-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goals-report-drawer[open] .goals-report-drawer__body,
.my-perf-stats-details[open] .my-perf-stats-details__body {
    animation: np-drawer-in var(--np-motion-duration) var(--np-motion-ease);
}

/* ── جابجایی تب‌ها ── */
.tab-content.np-tab-enter {
    opacity: 0;
    transform: translateY(12px);
    will-change: opacity, transform;
}

.tab-content.np-tab-enter.np-tab-enter--active {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── فیلتر و لیست اهداف ── */
@keyframes np-list-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.np-enter {
    opacity: 0;
    transform: translateY(6px);
}

.np-enter.np-enter--active {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity calc(var(--np-motion-duration) * 0.9) ease,
        transform var(--np-motion-duration) var(--np-motion-ease);
}

.goals-royal-pill-filter,
.goals-filter-pill {
    transition:
        background var(--np-motion-fast) ease,
        border-color var(--np-motion-fast) ease,
        color var(--np-motion-fast) ease,
        transform var(--np-motion-fast) var(--np-motion-ease),
        box-shadow var(--np-motion-fast) ease !important;
}

.goals-royal-pill-filter.is-active,
.goals-filter-pill.is-active {
    transform: scale(1.02);
}

.goals-royal-pill-filter:active,
.goals-filter-pill:active {
    transform: scale(0.97);
}

.goals-royal-pill-filter.is-active:active,
.goals-filter-pill.is-active:active {
    transform: scale(1);
}

/* ── لینک‌ها، دکمه‌ها و ناوبری ── */
a,
button,
.nav-item,
.goals-btn,
.goals-item__summary,
.news-cat-pill,
.news-discover__icon-btn {
    transition:
        color var(--np-motion-fast) ease,
        background var(--np-motion-fast) ease,
        border-color var(--np-motion-fast) ease,
        box-shadow var(--np-motion-fast) ease,
        transform var(--np-motion-fast) var(--np-motion-ease),
        opacity var(--np-motion-fast) ease;
}

/* جابه‌جایی فعال بین آیتم‌های ناوبری — نرم‌تر از دکمه‌های عمومی */
#mobile-nav .nav-item {
    transition:
        color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

#mobile-nav .nav-item svg {
    transition:
        color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        stroke 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.32s ease;
}

button:active:not(:disabled),
.nav-item:active,
.goals-btn:active,
.goals-item__summary:active,
.news-cat-pill:active,
.news-discover__icon-btn:active {
    transform: scale(0.98);
}

.section-help-btn:active,
.section-feedback-btn:active {
    transform: scale(1.06);
}

.drawer-chev {
    transition:
        transform calc(var(--np-motion-duration) * 0.65) var(--np-motion-ease),
        background var(--np-motion-fast) ease,
        color var(--np-motion-fast) ease !important;
}

@media (prefers-reduced-motion: reduce) {
    .goals-item__drawer,
    .goals-psyche-accordion__body,
    .section-accordion-body,
    .lead-accordion-body,
    .people-list-item__details {
        transition: none !important;
    }

    .tab-content.np-tab-enter,
    .np-enter {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .goals-report-drawer[open] .goals-report-drawer__body,
    .my-perf-stats-details[open] .my-perf-stats-details__body {
        animation: none !important;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-font-responsive.css --- */
/* ── NetPro — رسپانسیو برای فونت بزرگ / خیلی بزرگ ── */

/* ایجاد آمار: بدون اسکرول داخلی؛ کشو و جزئیات کامل باز می‌مانند */
#daily-stats-section.section-accordion-card.is-open > .section-accordion-body,
#daily-stats-section .lead-accordion-card.is-open > .lead-accordion-body {
    max-height: none !important;
    overflow: visible !important;
}

#daily-stats-section .daily-activity-panel,
#daily-stats-section .daily-form-block,
#daily-stats-section .scheduled-presents-list,
#daily-stats-section .lead-tracker-card {
    overflow: visible;
}

.daily-prospect-scroll,
.daily-prospect-scroll--tracker {
    max-height: none !important;
    overflow: visible !important;
}

/* ─── فونت خیلی بزرگ (۱.۲۵×) ─── */
html.font-scale-xl {
    --np-text-wrap: balance;
    --mobile-nav-height: 5.5rem;
}

html.font-scale-xl body {
    overflow-x: clip;
}

html.font-scale-xl .app-shell,
html.font-scale-xl #app-root,
html.font-scale-xl main.app-main {
    max-width: 100%;
    min-width: 0;
}

html.font-scale-xl .glass-card,
html.font-scale-xl .section-accordion-card,
html.font-scale-xl .lead-accordion-card,
html.font-scale-xl .lead-tracker-card,
html.font-scale-xl .scheduled-present-card {
    min-width: 0;
    max-width: 100%;
}

html.font-scale-xl .followup-lead-name,
html.font-scale-xl .people-list-item__name-text,
html.font-scale-xl .daily-activity-cat__label,
html.font-scale-xl .section-accordion-header h3,
html.font-scale-xl .account-settings-item__title,
html.font-scale-xl .account-settings-item__desc,
html.font-scale-xl .lead-accordion-meta,
html.font-scale-xl .mystats-section-status,
html.font-scale-xl .team-cal-filter-pill,
html.font-scale-xl .filter-btn,
html.font-scale-xl .nav-item,
html.font-scale-xl .goals-item__title,
html.font-scale-xl .goals-filter-pill,
html.font-scale-xl .goals-kpi span,
html.font-scale-xl .team-cal-section__title,
html.font-scale-xl .team-cal-section__sub,
html.font-scale-xl .team-cal-metric__lbl,
html.font-scale-xl .brand-logo__title,
html.font-scale-xl .brand-tagline,
html.font-scale-xl .present-row-send-btn,
html.font-scale-xl .validation-row-send-btn,
html.font-scale-xl .daily-activity-panel__hint,
html.font-scale-xl .followup-check-item label {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: pretty;
}

html.font-scale-xl .present-date-btn {
    white-space: normal;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
    text-align: center;
}

html.font-scale-xl .present-name-row,
html.font-scale-xl .validation-name-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

html.font-scale-xl .present-name-row .present-name-input,
html.font-scale-xl .validation-name-row .validation-name-input,
html.font-scale-xl .present-name-row .present-date-btn,
html.font-scale-xl .present-name-row .present-row-send-btn,
html.font-scale-xl .present-name-row .present-row-remove-btn,
html.font-scale-xl .validation-name-row .validation-row-send-btn,
html.font-scale-xl .validation-name-row .present-row-remove-btn {
    grid-column: 1 / -1;
}

html.font-scale-xl .present-name-row .present-row-num,
html.font-scale-xl .validation-name-row .present-row-num {
    grid-column: 1;
    grid-row: 1;
}

html.font-scale-xl .lead-accordion-header__row {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 1.85rem 0 0;
    gap: 0.25rem;
}

html.font-scale-xl .lead-accordion-header__row .followup-lead-name {
    flex: 1 1 100%;
    width: 100%;
    text-align: right;
    padding-inline: 0;
}

html.font-scale-xl .lead-accordion-header__row .drawer-chev {
    top: 0.2rem;
    transform: none;
}

html.font-scale-xl .lead-accordion-header__row .lead-accordion-meta {
    position: static;
    transform: none;
    margin: 0;
    max-width: 100%;
}

html.font-scale-xl .section-accordion-header:not(.account-settings-item__trigger) {
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.35rem 2rem;
    gap: 0.25rem;
}

html.font-scale-xl .section-accordion-header:not(.account-settings-item__trigger) h3 {
    width: 100%;
    padding-inline: 0;
}

html.font-scale-xl .daily-activity-categories {
    grid-template-columns: 1fr;
}

html.font-scale-xl .mystats-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.font-scale-xl .team-cal-layout {
    max-width: 100%;
}

html.font-scale-xl .team-cal-filter,
html.font-scale-xl .team-cal-filter-panel {
    flex-wrap: wrap;
    height: auto;
    max-height: none;
    overflow: visible;
}

html.font-scale-xl .team-cal-filter-pill {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    line-height: 1.35;
    padding: 0.45rem 0.55rem;
}

html.font-scale-xl #mobile-nav .nav-item {
    flex: 0 0 auto;
    max-width: none;
    padding: 5px 3px;
    font-size: clamp(0.5rem, 2vw, 0.62rem);
    line-height: 1.25;
}

html.font-scale-xl #mobile-nav .nav-item svg {
    width: 1.35rem;
    height: 1.35rem;
}

html.font-scale-xl .subscription-paywall__card {
    max-width: min(22rem, calc(100vw - 1.5rem));
}

html.font-scale-xl .glass-card,
html.font-scale-xl .daily-form-block,
html.font-scale-xl .lead-tracker-card {
    overflow: visible;
}

html.font-scale-xl .app-header__row,
html.font-scale-xl .app-header__meta {
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

html.font-scale-xl .followup-checks-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
}

html.font-scale-xl .goals-toolbar {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 0.25rem;
}

html.font-scale-xl .goals-filter-pill {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    line-height: 1.3;
    padding: 0.28rem 0.45rem;
}

html.font-scale-xl .people-list-item__header,
html.font-scale-xl .people-list-item__header--compact {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem;
}

html.font-scale-xl .people-list-item__name-text {
    flex: 1 1 100%;
    min-width: 0;
}

html.font-scale-xl input,
html.font-scale-xl select,
html.font-scale-xl textarea,
html.font-scale-xl button {
    max-width: 100%;
}

/* آمار من — کشوهای باز بدون سقف ارتفاع */
html.font-scale-xl #tab-mystats .section-accordion-card.is-open > .section-accordion-body,
html.font-scale-xl #tab-mystats .lead-accordion-card.is-open > .lead-accordion-body {
    max-height: none !important;
    overflow: visible !important;
}

/* ─── فونت بزرگ (۱.۱۵×) — اصلاحات سبک‌تر ─── */
html.font-scale-lg {
    --mobile-nav-height: 4.75rem;
}

html.font-scale-lg .followup-lead-name,
html.font-scale-lg .daily-activity-cat__label,
html.font-scale-lg .nav-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

html.font-scale-lg .present-date-btn {
    white-space: normal;
    line-height: 1.35;
}

html.font-scale-lg .team-cal-calendar {
    font-size: 13px;
}

html.font-scale-lg #mobile-nav .nav-item {
    white-space: normal;
    line-height: 1.25;
}

/* ─── موبایل + فونت خیلی بزرگ ─── */
@media (max-width: 767px) {
    html.font-scale-xl {
        --mobile-nav-height: 5.85rem;
    }

    html.font-scale-xl .present-name-row,
    html.font-scale-xl .validation-name-row {
        grid-template-columns: 1fr;
    }

    html.font-scale-xl .present-name-row .present-row-send-btn,
    html.font-scale-xl .validation-name-row .validation-row-send-btn,
    html.font-scale-xl .present-name-row .present-date-btn {
        width: 100%;
        justify-content: center;
    }

    html.font-scale-xl .lead-accordion-header__row {
        padding-left: 0;
        padding-right: 1.75rem;
    }

    html.font-scale-xl .section-accordion-header:not(.account-settings-item__trigger) {
        padding: 0.4rem 1.85rem 0.4rem 1.85rem;
    }

    html.font-scale-xl .section-accordion-header:not(.account-settings-item__trigger) > .section-accordion-toolbar,
    html.font-scale-xl .section-accordion-header:not(.account-settings-item__trigger) > .mystats-section-status {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 0.15rem;
    }

    html.font-scale-xl .has-section-feedback-anchor > .section-accordion-header:not(.account-settings-item__trigger) {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    html.font-scale-xl .activity-slots-row {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    html.font-scale-xl .team-cal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.font-scale-xl .team-cal-section__head {
        padding-inline: 0.25rem;
    }

    html.font-scale-xl .team-cal-layout {
        padding: 0.65rem 0.5rem;
    }

    html.font-scale-xl .team-cal-calendar {
        font-size: 11px;
    }

    html.font-scale-xl .team-cal-days {
        gap: 0.2rem;
    }

    html.font-scale-xl .team-cal-calendar-header button {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1rem;
    }

    html.font-scale-xl .team-cal-calendar-legend {
        gap: 0.35rem 0.5rem;
    }

    html.font-scale-xl .team-cal-calendar-legend li {
        font-size: 0.58rem;
        white-space: normal;
        line-height: 1.3;
    }

    html.font-scale-xl .account-settings-item__desc {
        white-space: normal;
    }

    html.font-scale-xl .account-settings-item__badge {
        max-width: 100%;
        white-space: normal;
    }

    html.font-scale-xl .people-list-item__header--compact {
        flex-wrap: wrap;
    }

    html.font-scale-xl .mystats-kpi-card span,
    html.font-scale-xl .mystats-kpi-card small {
        white-space: normal;
        line-height: 1.35;
    }

    html.font-scale-xl .brand-logo__title,
    html.font-scale-xl .brand-tagline {
        white-space: normal;
        max-width: 100%;
    }

    html.font-scale-xl .app-header {
        padding-inline: 0.65rem;
    }

    html.font-scale-xl #mobile-nav {
        overflow-x: auto;
        overflow-y: hidden;
        align-items: stretch;
    }

    html.font-scale-xl #mobile-nav .nav-item {
        min-width: 3.55rem;
        width: 3.55rem;
    }

    html.font-scale-xl .goals-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.font-scale-xl .goals-hero__row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    html.font-scale-lg .daily-activity-categories {
        grid-template-columns: 1fr;
    }

    html.font-scale-lg .lead-accordion-header__row .followup-lead-name {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.font-scale-lg .team-cal-calendar {
        font-size: 12px;
    }

    html.font-scale-lg .team-cal-filter {
        flex-wrap: wrap;
        overflow: visible;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-mobile-nav.css --- */
/**
 * NetPro — نوار پایین: واکنش‌گرا (موبایل/دسکتاپ)، بدون جای خالی پس از حذف تب
 */
.mobile-bottom-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(0.08rem, 0.35vw, 0.22rem);
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

/* fit: تب‌های visible کل عرض را مساوی پر می‌کنند */
.mobile-bottom-nav--fit {
    justify-content: stretch;
    overflow-x: hidden;
}

.mobile-bottom-nav--fit .nav-item:not(.nav-item--hidden) {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
}

/* scroll: تب زیاد — اسکرول افقی */
.mobile-bottom-nav--scroll {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.35rem;
    scrollbar-width: none;
}

.mobile-bottom-nav--scroll .nav-item:not(.nav-item--hidden) {
    flex: 0 0 auto;
    min-width: clamp(3.15rem, 12vw, 4.1rem);
    max-width: 4.75rem;
    scroll-snap-align: center;
}

@media (max-width: 767px) {
    :root {
        --mobile-nav-height: 4.35rem;
    }

    .mobile-nav-shell {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(
            calc(100vw - (2 * var(--app-frame-gutter))),
            calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)))
        );
        margin: 0;
        max-width: calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)));
        padding: 0.28rem 0.3rem;
        border-radius: 1.15rem;
    }

    #mobile-nav .nav-item:not(.nav-item--hidden) {
        position: relative;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.12rem;
        transform: none !important;
        border-radius: 0.75rem;
        box-sizing: border-box;
        white-space: normal;
        overflow: visible;
        padding: 0.32rem 0.15rem;
    }

    #mobile-nav.mobile-bottom-nav--fit .nav-item:not(.nav-item--hidden) {
        padding: 0.32rem clamp(0.1rem, 0.8vw, 0.35rem);
    }

    #mobile-nav .nav-item svg,
    #mobile-nav .nav-item svg.w-6 {
        width: 1.3rem !important;
        height: 1.3rem !important;
        min-width: 1.3rem;
        min-height: 1.3rem;
        flex-shrink: 0;
    }

    #mobile-nav .nav-label {
        width: 100%;
        font-size: 0.56rem;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #mobile-nav .nav-item .nav-label--full {
        display: none !important;
    }

    #mobile-nav .nav-item .nav-label--short {
        display: block !important;
    }

    #mobile-nav .nav-item.active {
        transform: none !important;
    }

    #mobile-nav .msg-nav-badge {
        top: 0.05rem;
        margin-left: 0.45rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-nav-shell,
    .app-nav-shell {
        width: min(
            calc(100vw - (2 * var(--app-frame-gutter))),
            calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)))
        );
        max-width: calc(var(--app-frame-max) - (2 * var(--app-frame-gutter)));
    }

    #mobile-nav .nav-item:not(.nav-item--hidden) {
        padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.25rem, 0.8vw, 0.65rem);
        font-size: clamp(0.62rem, 1.4vw, 0.72rem);
    }

    #mobile-nav .nav-item .nav-label--short {
        display: none !important;
    }

    #mobile-nav .nav-item .nav-label--full {
        display: block !important;
    }
}

/* دسکتاپ: استایل سایدبار در app-desktop-stack.css */

@media (max-width: 767px) {
    html.font-scale-lg #mobile-nav,
    html.font-scale-xl #mobile-nav {
        align-items: stretch;
        overflow-y: hidden;
    }

    html.font-scale-xl {
        --mobile-nav-height: 4.65rem;
    }

    html.font-scale-lg {
        --mobile-nav-height: 4.5rem;
    }

    html.font-scale-xl #mobile-nav .nav-label {
        font-size: 0.54rem;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-pwa-install.css --- */
/* ═══ بنر نصب PWA — NetPro ═══ */

.pwa-install-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pwa-install-banner.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pwa-install-banner__card {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.pwa-install-banner__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pwa-install-banner__body {
    flex: 1;
    min-width: 0;
}

.pwa-install-banner__title {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
}

.pwa-install-banner__text {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #64748b;
}

.pwa-install-banner__ios {
    display: none;
    margin-top: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.62rem;
    line-height: 1.5;
}

.pwa-install-banner.is-ios .pwa-install-banner__ios {
    display: block;
}

.pwa-install-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.pwa-install-banner__btn {
    border: none;
    border-radius: 0.65rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwa-install-banner__btn:active {
    transform: scale(0.97);
}

.pwa-install-banner__btn--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.pwa-install-banner__btn--ghost {
    background: #f1f5f9;
    color: #475569;
}

.pwa-install-banner__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .pwa-install-banner {
        inset-inline: auto 1rem;
        bottom: 1rem;
        width: min(22rem, calc(100vw - 2rem));
        padding: 0;
    }
}

/* فضای پایین وقتی بنر باز است (موبایل) */
body.pwa-banner-open #mobile-nav {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.pwa-installed .pwa-install-banner {
    display: none !important;
}

/* ═══ کارت اپ اندروید — تب حساب من ═══ */

.account-android-app-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.15rem 1.15rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow:
        0 12px 36px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.account-android-app-card__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.account-android-app-card__head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.account-android-app-card__icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.account-android-app-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.account-android-app-card__platform {
    position: absolute;
    bottom: -0.2rem;
    left: -0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    border: 2px solid #fff;
}

.account-android-app-card__meta {
    flex: 1;
    min-width: 0;
}

.account-android-app-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.account-android-app-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.account-android-app-card__badge {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.account-android-app-card__badge--ready {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.25);
}

.account-android-app-card__badge--ok {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.3);
}

.account-android-app-card__sub {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #64748b;
}

.account-android-app-card__features {
    position: relative;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.account-android-app-card__features li {
    position: relative;
    padding-right: 1rem;
    font-size: 0.68rem;
    color: #475569;
    line-height: 1.45;
}

.account-android-app-card__features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.account-android-app-card__status {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #334155;
}

.account-android-app-card__hint {
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.64rem;
    line-height: 1.5;
    color: #1d4ed8;
}

.account-android-app-card__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 0.85rem;
    padding: 0.72rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 45%, #15803d 100%);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.account-android-app-card__btn:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.4);
}

.account-android-app-card__btn:active:not(:disabled) {
    transform: scale(0.98);
}

.account-android-app-card__btn:disabled,
.account-android-app-card__btn.is-done {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
    cursor: default;
}

.account-android-app-card__btn-icon {
    flex-shrink: 0;
}

.account-android-app-card.is-installed {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.78));
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-desktop-stack.css --- */
/**
 * NetPro — Desktop layout (≥1024px)
 * - Right sidebar navigation (physical right; RTL-friendly)
 * - Multi-column My Stats grid
 * - Wide content canvas (not a phone column)
 */
:root {
    --app-sidebar-width: 15.5rem;
}

/* ── Mobile-first defaults kept in app-base / app-mobile-nav ── */

@media (min-width: 1024px) {
    :root {
        --app-frame-max: 90rem;
        --app-frame-gutter: 1.5rem;
        --mobile-nav-height: 0px;
        --app-fab-bottom: 1.5rem;
        --app-fab-left: max(1.25rem, env(safe-area-inset-left, 0px));
    }

    html,
    body {
        overflow-x: hidden;
    }

    #main-container {
        max-width: 100% !important;
        width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }

    .app-shell {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 100vh;
        width: 100%;
    }

    .app-main-column {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        width: auto;
        margin-inline-end: var(--app-sidebar-width);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding-inline: var(--app-frame-gutter);
        box-sizing: border-box;
    }

    .header-shell {
        max-width: 72rem;
        width: 100%;
        margin-inline: auto;
        padding: 1rem 0 0;
    }

    .app-main,
    main.app-main {
        max-width: 72rem !important;
        width: 100% !important;
        margin-inline: auto !important;
        padding-inline: 0 !important;
        padding-bottom: 2rem !important;
    }

    /* ── Sidebar (reuse #mobile-nav shell) ── */
    .mobile-nav-shell,
    .app-nav-shell {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        transform: none !important;
        width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh;
        height: 100dvh;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: 1px solid rgba(203, 213, 225, 0.95);
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        box-shadow: -8px 0 28px -12px rgba(15, 23, 42, 0.14) !important;
        padding: 1.25rem 0.85rem !important;
        z-index: 70;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-nav-shell::before {
        content: 'NetPro';
        display: block;
        font-family: 'Plus Jakarta Sans', 'Vazirmatn', sans-serif;
        font-weight: 800;
        font-size: 1.05rem;
        color: #0f2449;
        letter-spacing: -0.02em;
        padding: 0.35rem 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.85rem;
    }

    #mobile-nav.mobile-bottom-nav,
    .app-nav-shell .mobile-bottom-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        min-height: 0;
        height: auto;
        overflow-x: hidden !important;
        overflow-y: auto;
        flex: 1 1 auto;
        padding: 0 !important;
    }

    #mobile-nav .nav-item:not(.nav-item--hidden) {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100%;
        min-width: 0;
        max-width: none !important;
        gap: 0.65rem;
        padding: 0.7rem 0.85rem !important;
        border-radius: 0.85rem;
        font-size: 0.82rem;
        font-weight: 600;
        text-align: right;
        transform: none !important;
    }

    #mobile-nav .nav-item .nav-label--short {
        display: none !important;
    }

    #mobile-nav .nav-item .nav-label--full {
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
        font-size: 0.82rem;
        line-height: 1.3;
    }

    #mobile-nav .nav-item svg,
    #mobile-nav .nav-item svg.w-6 {
        width: 1.35rem !important;
        height: 1.35rem !important;
        flex-shrink: 0;
    }

    #mobile-nav .nav-item.active {
        transform: none !important;
    }

    /* ── My Stats: 2-column top row + full-width daily ── */
    #tab-mystats.tab-content,
    #tab-mystats.mystats-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    #tab-mystats.space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0;
    }

    #tab-mystats > #mystats-kpi-section {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
    }

    #tab-mystats > #people-list-section {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
    }

    #tab-mystats > .tab-grid-stats {
        grid-column: 1 / -1;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem;
    }

    #tab-mystats .section-accordion-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #tab-mystats .section-accordion-card:not(.is-open),
    #tab-teamstats .section-accordion-card:not(.is-open),
    .tab-grid-stats .section-accordion-card:not(.is-open) {
        min-height: 5.15rem;
    }

    #tab-mystats .section-accordion-header:not(.account-settings-item__trigger),
    #tab-teamstats .section-accordion-header:not(.account-settings-item__trigger),
    .tab-grid-stats .section-accordion-header:not(.account-settings-item__trigger) {
        min-height: 4.15rem;
        height: 4.15rem;
    }

    /* Prefer panel look: keep accordion, but open body feels like a panel */
    #tab-mystats .section-accordion-card.is-open {
        box-shadow:
            0 14px 36px -12px rgba(15, 23, 42, 0.2),
            0 6px 16px -6px rgba(37, 99, 235, 0.12);
    }

    .tab-grid-account:not(.hidden) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: start;
    }

    .tab-grid-account:not(.hidden) > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Restore useful internal multi-cols on desktop */
    .mystats-kpi-strip,
    #mystats-kpi-strip,
    .goals-kpi-strip,
    .daily-activity-categories,
    .people-list-add-row,
    .account-profile-card__stats,
    .mystats-filter-row,
    .chart-filters-row {
        grid-template-columns: unset;
    }

    .daily-activity-categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .people-list-add-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --app-sidebar-width: 16.5rem;
        --app-frame-gutter: 2rem;
    }

    .app-main,
    main.app-main,
    .header-shell {
        max-width: 80rem;
    }
}

/* Tablet: still single column + bottom nav */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --app-frame-max: 48rem;
        --app-frame-gutter: 1.25rem;
    }

    #main-container {
        max-width: var(--app-frame-max);
        margin-inline: auto;
        padding-inline: var(--app-frame-gutter);
    }

    #tab-mystats.tab-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-form-controls.css --- */
/* Select / dropdown — ارتفاع یکسان و تراز عمودی متن (بعد از Tailwind) */

body select:not([multiple]):not([size]),
body select.custom-select:not([multiple]),
body .people-relationship-select,
body .people-form-picker,
body select.deploy-input,
body select.lib-input,
body .goals-field select:not([multiple]),
body .section-feedback-field select:not([multiple]),
body .clips-toolbar select:not([multiple]) {
    box-sizing: border-box;
    min-height: var(--field-control-min-height);
    height: var(--field-control-height);
    padding-block: 0;
    padding-inline: var(--field-control-padding-x) 2.25rem;
    line-height: var(--field-control-height);
    font-family: inherit;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1em;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body select:not([multiple]):not([size]):hover,
body .modern-select-trigger:hover {
    border-color: #93c5fd;
    background-color: #f8fafc;
}

body select:not([multiple]):not([size]):focus,
body select:not([multiple]):not([size]):focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background-color: #ffffff;
}

body select[multiple],
body select[size]:not([size="1"]) {
    box-sizing: border-box;
    min-height: 4.5rem;
    height: auto;
    line-height: var(--field-control-line-height);
    padding: 0.625rem var(--field-control-padding-x);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #1e293b;
    cursor: pointer;
    vertical-align: middle;
}

body .modern-select-trigger {
    box-sizing: border-box;
    min-height: var(--field-control-min-height);
    height: var(--field-control-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 var(--field-control-padding-x);
    line-height: normal;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body .modern-select-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    line-height: var(--field-control-line-height);
    text-align: right;
}

body .modern-select.open .modern-select-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background: #ffffff;
}

body .modern-select-option {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    line-height: var(--field-control-line-height);
    text-align: right;
}

/* نوار پایین — جلوگیری از نمایش هم‌زمان برچسب کامل و کوتاه */
#mobile-nav .nav-item .nav-label--full {
    display: block;
}

#mobile-nav .nav-item .nav-label--short {
    display: none;
}

@media (max-width: 767px) {
    #mobile-nav .nav-item .nav-label--full {
        display: none !important;
    }

    #mobile-nav .nav-item .nav-label--short {
        display: block !important;
    }
}

@media (min-width: 768px) {
    #mobile-nav .nav-item .nav-label--short {
        display: none !important;
    }

    #mobile-nav .nav-item .nav-label--full {
        display: block !important;
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-seo.css --- */
/**
 * NetPro — محتوای SEO عمومی (صفحه ورود + ایندکس)
 */
.seo-public-content {
    width: 100%;
    max-width: 42rem;
    margin: 1.25rem auto 0;
    padding: 0 0.5rem 1.5rem;
    box-sizing: border-box;
}

.seo-public-content__inner {
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.seo-public-content__lead {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.75;
    color: #334155;
    font-weight: 600;
}

.seo-public-content__lead strong {
    color: #1d4ed8;
    font-weight: 800;
}

.seo-public-content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
}

@media (min-width: 640px) {
    .seo-public-content__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seo-public-content__feature {
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(239, 246, 255, 0.85);
    border: 1px solid rgba(191, 219, 254, 0.85);
    font-size: 0.68rem;
    line-height: 1.55;
    color: #1e3a8a;
    font-weight: 700;
}

.seo-public-content__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
}

.seo-public-content__link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.seo-faq {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.seo-faq__item {
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
    overflow: hidden;
}

.seo-faq__q {
    margin: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
}

.seo-faq__q::-webkit-details-marker {
    display: none;
}

.seo-faq__a {
    margin: 0;
    padding: 0 0.7rem 0.65rem;
    font-size: 0.68rem;
    line-height: 1.65;
    color: #475569;
}

.seo-landing-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.seo-landing-page__hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.seo-landing-page__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.35;
}

.seo-landing-page__subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
    font-weight: 600;
}

.seo-landing-page section {
    margin-bottom: 1.15rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.seo-landing-page h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.seo-landing-page p,
.seo-landing-page li {
    font-size: 0.78rem;
    line-height: 1.75;
    color: #334155;
}

.seo-landing-page ul {
    margin: 0.35rem 0 0;
    padding-right: 1.1rem;
}

.seo-landing-page__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.85rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.seo-landing-page__cta:hover {
    background: #1d4ed8;
}

.auth-section-wrap .brand-tagline--hero {
    font-size: 1.05rem;
    font-weight: 800;
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-auth-autocomplete.css --- */
.company-autocomplete {
    position: relative;
    width: 100%;
}

.company-autocomplete.is-open #reg-company {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.company-suggest {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    z-index: 60;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.45rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 16px 48px rgba(99, 102, 241, 0.16),
        0 6px 18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    animation: companySuggestIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.company-suggest[hidden] {
    display: none !important;
}

.company-suggest__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.55rem 0.45rem;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4f46e5;
    border-bottom: 1px solid rgba(99, 102, 241, 0.14);
}

.company-suggest__head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.45rem;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.company-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.62rem 0.7rem;
    border: none;
    border-radius: 0.8rem;
    background: transparent;
    text-align: right;
    font-size: 0.84rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.company-suggest__item:hover,
.company-suggest__item.is-active {
    background: rgba(99, 102, 241, 0.11);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.22);
    transform: translateX(-1px);
}

.company-suggest__icon {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.6rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
}

.company-suggest__text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    word-break: break-word;
}

.company-suggest__text mark {
    background: rgba(99, 102, 241, 0.2);
    color: #4338ca;
    border-radius: 0.22rem;
    padding: 0 0.12em;
    font-weight: 700;
}

@keyframes companySuggestIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-auth.css --- */
/* NetPro — صفحه ورود / ثبت‌نام (critical — باید قبل از first paint لود شود) */

.auth-card {
    background: #fffef9;
    border-radius: 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: none;
    padding: 2rem;
    box-sizing: border-box;
}

#card-register.auth-card {
    padding: 1.5rem;
}

.auth-section-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.auth-card-inner {
    margin-inline: auto;
}

#auth-section .auth-card input[type="tel"],
#auth-section .auth-card input[type="password"],
#auth-section .auth-card input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease;
}

#auth-section .auth-card input[type="tel"]:focus,
#auth-section .auth-card input[type="password"]:focus,
#auth-section .auth-card input[type="text"]:focus {
    border-color: #3b82f6;
}

#auth-section #reg-mobile {
    text-align: right;
    direction: rtl;
}

#auth-section #reg-mobile::placeholder {
    text-align: right;
    direction: rtl;
}

#auth-section .auth-card #btn-login-submit,
#auth-section .auth-card button[data-auth-login-submit],
#auth-section .auth-card button[onclick*="handleLogin"] {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.45);
}

#auth-section .auth-card button[onclick*="handleRegister"] {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 10px 25px -8px rgba(22, 163, 74, 0.4);
}

#auth-section .auth-card button[onclick*="handleChangePassword"] {
    background: #9333ea;
    color: #fff;
}

#auth-section .auth-card button[onclick*="sendResetCode"] {
    background: #eab308;
    color: #fff;
}

#auth-section .auth-card #btn-login-submit,
#auth-section .auth-card button[data-auth-login-submit],
#auth-section .auth-card button[onclick*="handleLogin"],
#auth-section .auth-card button[onclick*="handleRegister"],
#auth-section .auth-card button[onclick*="handleChangePassword"],
#auth-section .auth-card button[onclick*="sendResetCode"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

#auth-section .auth-card button.text-xs,
#auth-section .auth-card button.text-sm,
#auth-section .auth-card button[onclick*="showCard"] {
    width: auto;
    padding: 0;
    background: transparent;
    color: #2563eb;
    border: none;
    box-shadow: none;
    font-weight: 600;
    cursor: pointer;
}

#auth-section .auth-card .text-center button {
    width: auto;
    display: inline;
}

.auth-globe {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0f2fe, #bae6fd);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-toggle-group {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.auth-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease;
}

.auth-toggle-row + .auth-toggle-row {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-toggle-row:active {
    background: rgba(241, 245, 249, 0.95);
}

.auth-toggle-row__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
}

.auth-toggle-row__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.auth-toggle-row__hint {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.auth-ios-switch {
    position: relative;
    flex-shrink: 0;
    width: 3.2rem;
    height: 1.95rem;
}

.auth-ios-switch__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.auth-ios-switch__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #e9e9ea;
    transition:
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.auth-ios-switch__track::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.18),
        0 0.5px 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-ios-switch__input:checked + .auth-ios-switch__track::after {
    transform: translateX(-1.25rem);
}

.auth-ios-switch__input:focus-visible + .auth-ios-switch__track {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.auth-ios-switch--blue .auth-ios-switch__input:checked + .auth-ios-switch__track {
    background: #34c759;
    box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.35);
}

.auth-ios-switch--indigo .auth-ios-switch__input:checked + .auth-ios-switch__track {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.28);
}

.auth-ios-switch__input:disabled + .auth-ios-switch__track {
    opacity: 0.45;
    cursor: not-allowed;
}

.auth-remember {
    padding: 0.15rem 0.1rem;
}

.auth-remember__input {
    flex-shrink: 0;
    cursor: pointer;
}

.auth-presenter {
    margin-top: -0.15rem;
}

.auth-password-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    padding-inline: 0.75rem;
    transition: border-color 0.2s;
}

.auth-password-field:focus-within {
    border-color: #3b82f6;
}

.auth-password-field__input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent;
    padding: 0.75rem 0 !important;
    box-shadow: none !important;
    outline: none;
}

.auth-password-field__toggle {
    position: relative;
    inset: auto;
    transform: none;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin-inline: -0.15rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s, background 0.2s;
    pointer-events: auto;
}

.auth-password-field__toggle:hover {
    color: #334155;
    background: rgba(148, 163, 184, 0.14);
}

.auth-password-field__toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.auth-password-field__icon {
    width: 1.15rem;
    height: 1.15rem;
    pointer-events: none;
}

.auth-password-field__icon--hide {
    display: none;
}

.auth-password-field__toggle.is-visible .auth-password-field__icon--show {
    display: none;
}

.auth-password-field__toggle.is-visible .auth-password-field__icon--hide {
    display: block;
}

.error-msg {
    display: none;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.75rem;
    margin-top: 4px;
    animation: fadeIn 0.2s ease-out;
}

.error-msg.show {
    display: block;
}

.invite-banner {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.invite-banner--ok {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.invite-banner--err {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.invite-banner__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.invite-banner__sub {
    font-size: 0.72rem;
    opacity: 0.9;
}

.invite-banner__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.invite-banner__confirm,
.invite-banner__decline {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.invite-banner__confirm {
    background: #2563eb;
    color: #fff;
    border: none;
}

.invite-banner__decline {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.invite-banner__levels {
    list-style: none;
    margin: 10px 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invite-banner__levels li {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
}

.invite-banner__level-badge {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 0.65rem;
}

.invite-banner__level-meta {
    color: #64748b;
    font-size: 0.68rem;
}

.invite-banner__note {
    font-size: 0.7rem;
    margin-top: 8px;
    opacity: 0.9;
}

.reg-qr-section {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.reg-qr-section__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.reg-qr-section__hint {
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 10px;
}

.reg-qr-section__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reg-qr-section__btn {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.reg-qr-section__btn--scan {
    background: #2563eb;
    color: #fff;
}

.reg-qr-section__btn--upload {
    background: #e2e8f0;
    color: #334155;
    display: inline-flex;
    align-items: center;
}

.reg-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100400;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.reg-qr-modal.hidden {
    display: none;
}

.reg-qr-modal__panel {
    background: #fff;
    border-radius: 16px;
    width: min(100%, 360px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.reg-qr-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.reg-qr-modal__close {
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

.reg-qr-modal__reader {
    min-height: 280px;
}

/* ===== NetPro bundle separator ===== */
/* --- css/partials/app-c2c-payment.css --- */
/* NetPro — مودال پرداخت کارت‌به‌کارت */
.c2c-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.c2c-payment-modal.hidden {
    display: none;
}

.c2c-payment-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 1.75rem 1.5rem 1.5rem;
    color: #0f172a;
    animation: c2cModalIn 0.35s ease forwards;
}

@keyframes c2cModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.c2c-payment-modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 50%;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.c2c-payment-modal__close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.c2c-payment-modal__title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    padding-top: 0.25rem;
}

.c2c-payment-modal__subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.c2c-payment-modal__amount {
    text-align: center;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 1rem;
}

.c2c-payment-modal__amount-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.c2c-payment-modal__amount-toman {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    font-weight: 800;
    color: #15803d;
    letter-spacing: -0.02em;
}

.c2c-payment-modal__amount-rial {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.c2c-payment-modal__card-label {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.65rem;
}

.c2c-payment-modal__card-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.c2c-payment-modal__card-holder {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 1.25rem;
}

.c2c-payment-modal__card-number {
    font-family: 'Courier New', Consolas, monospace;
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    direction: ltr;
    unicode-bidi: isolate;
    color: #0f172a;
    text-shadow: none;
    padding: 0.5rem 0;
}

.c2c-payment-modal__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a0f00;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #d97706 100%);
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.c2c-payment-modal__copy:hover { transform: scale(1.03); }
.c2c-payment-modal__copy.is-copied { opacity: 0.85; }

.c2c-payment-modal__tracking-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.c2c-payment-modal__tracking-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.c2c-payment-modal__tracking-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    direction: ltr;
    text-align: left;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.75rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c2c-payment-modal__tracking-input:focus {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.c2c-payment-modal__tracking-input::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

.c2c-payment-modal__confirm {
    padding: 0.85rem 1.1rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #8b5cf6 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, opacity 0.15s;
}

.c2c-payment-modal__confirm:hover { transform: scale(1.02); }
.c2c-payment-modal__confirm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.c2c-payment-modal__message {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.c2c-payment-modal__message.is-visible { display: block; }
.c2c-payment-modal__message--error {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.45);
}
.c2c-payment-modal__message--success {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
    border: 1px solid rgba(74, 222, 128, 0.45);
}

.c2c-payment-modal__banks-title {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}

.c2c-payment-modal__banks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.c2c-payment-modal__bank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.65rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.c2c-payment-modal__bank:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.c2c-payment-modal__bank-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.c2c-payment-modal__bank-icon--mellat  { background: #c0392b; }
.c2c-payment-modal__bank-icon--saderat { background: #2980b9; }
.c2c-payment-modal__bank-icon--parsian { background: #8e44ad; }
.c2c-payment-modal__bank-icon--melli   { background: #f39c12; color: #1a0f00; }

.c2c-payment-modal__hint {
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.6;
}

.c2c-payment-modal__alt {
    margin-top: 1.15rem;
    padding-top: 0.15rem;
}

.c2c-payment-modal__alt-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.c2c-payment-modal__alt-divider::before,
.c2c-payment-modal__alt-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(203, 213, 225, 0.95);
}

.c2c-payment-modal__alt-title {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.55;
}

.c2c-payment-modal__receipt-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.c2c-payment-modal__receipt-pick,
.c2c-payment-modal__receipt-submit {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

.c2c-payment-modal__receipt-pick {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.95);
}

.c2c-payment-modal__receipt-pick:hover {
    transform: translateY(-1px);
    background: #fff;
}

.c2c-payment-modal__receipt-submit {
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: none;
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.22);
}

.c2c-payment-modal__receipt-submit:hover:not(:disabled) {
    transform: scale(1.02);
}

.c2c-payment-modal__receipt-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.c2c-payment-modal__receipt-name {
    margin: 0 0 0.25rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    word-break: break-word;
}

.c2c-payment-modal__receipt-hint {
    margin: 0;
    text-align: center;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.5;
}

body.c2c-payment-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .c2c-payment-modal__tracking-row {
        flex-direction: column;
    }
    .c2c-payment-modal__receipt-row {
        flex-direction: column;
    }
    .c2c-payment-modal__banks {
        grid-template-columns: repeat(2, 1fr);
    }
}
