/* فیلترهای نمودار — کادر شیشه‌ای + اسکرول افقی */
.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;
}

html.dark .present-date-btn {
    background: rgba(30, 58, 138, 0.35);
    border-color: #1d4ed8;
    color: #93c5fd;
}

html.dark .present-date-btn.is-missing {
    background: rgba(127, 29, 29, 0.25);
    border-color: #991b1b;
    color: #fca5a5;
}

.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;
}

html.dark .daily-activity-cat {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(59, 130, 246, 0.28);
}
html.dark .daily-activity-cat.is-active {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.45), rgba(30, 41, 59, 0.72));
    border-color: rgba(96, 165, 250, 0.55);
}
html.dark .daily-activity-cat__label { color: #bfdbfe; }
html.dark .daily-activity-panel__hint {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}
html.dark .daily-activity-panel__tracker { border-top-color: rgba(148, 163, 184, 0.22); }
html.dark .daily-activity-panel__tracker-title { color: #94a3b8; }

.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;
}

html.dark .daily-form-block {
    background: rgba(30, 41, 59, 0.45);
    border-color: #475569;
}

html.dark .daily-form-block__title {
    color: #e2e8f0;
}

.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-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);
}

html.dark .present-add-btn {
    border-color: rgba(59, 130, 246, 0.55);
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.55), rgba(29, 78, 216, 0.35));
    color: #93c5fd;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.45);
}

html.dark .present-row-remove-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: #475569;
    color: #94a3b8;
}

html.dark .present-row-send-btn {
    border-color: #065f46;
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.55), rgba(4, 120, 87, 0.35));
    color: #6ee7b7;
}

html.dark .present-row-send-btn:hover {
    background: rgba(6, 95, 70, 0.65);
    border-color: #10b981;
}

.present-schedule-dialog .followup-form-label { margin-top: 0.65rem; }
.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; }
html.dark .present-schedule-time-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html.dark .present-schedule-location-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.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;
}

html.dark .followup-analysis--good {
    background: rgba(22, 101, 52, 0.2);
    border-color: #166534;
    color: #86efac;
}

html.dark .followup-analysis--weak {
    background: rgba(127, 29, 29, 0.25);
    border-color: #991b1b;
    color: #fca5a5;
}

html.dark .followup-analysis--pending {
    background: rgba(30, 41, 59, 0.5);
    border-color: #475569;
    color: #94a3b8;
}

.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;
}

html.dark .followup-metric--good {
    background: rgba(22, 101, 52, 0.15);
    border-color: #166534;
}

html.dark .followup-metric--good .followup-metric__badge {
    background: rgba(22, 101, 52, 0.45);
    color: #86efac;
}

html.dark .followup-metric--weak {
    background: rgba(127, 29, 29, 0.2);
    border-color: #991b1b;
}

html.dark .followup-metric--weak .followup-metric__badge {
    background: rgba(127, 29, 29, 0.45);
    color: #fca5a5;
}

html.dark .followup-metric--pending {
    background: rgba(30, 41, 59, 0.4);
    border-color: #475569;
}

html.dark .present-name-input {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

html.dark .followup-lead-card {
    background: rgba(30, 41, 59, 0.65);
    border-color: #475569;
}

html.dark .followup-lead-name {
    color: #f1f5f9;
}

.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 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.lead-accordion-header__row .followup-lead-name {
    flex: 1;
    min-width: 0;
}

.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;
}

html.dark .lead-accordion-body {
    border-top-color: #475569;
}

html.dark .lead-accordion-header:hover .followup-lead-name {
    color: #93c5fd;
}

.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 {
    flex: 1;
    padding: 0.45rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-family: inherit;
}

.team-training-remove-btn {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    font-family: inherit;
}

.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;
}

html.dark .people-form-picker {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

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

.section-accordion-card {
    padding: 0.65rem 1.25rem;
}

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

.section-accordion-header h3 {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
}

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

.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-card.is-open > .lead-accordion-header-wrap .drawer-chev,
.lead-accordion-card.is-open > .lead-accordion-header .drawer-chev,
.lead-accordion-header[aria-expanded="true"] .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,
.my-perf-stats-details[open] > summary .drawer-chev,
.goals-report-drawer[open] > .goals-report-drawer__summary .drawer-chev,
.drawer-chev--open {
    transform: rotate(180deg); background: rgba(8, 145, 178, 0.16);
}
html.dark .drawer-chev { color: #67e8f9; background: rgba(8, 145, 178, 0.22); }
html.dark .section-accordion-header:hover .drawer-chev,
html.dark .lead-accordion-header:hover .drawer-chev,
html.dark .people-list-item__name-toggle:hover .drawer-chev,
html.dark .goals-item__summary:hover .drawer-chev,
html.dark .goals-report-drawer__summary:hover .drawer-chev,
html.dark .my-perf-stats-details > summary:hover .drawer-chev {
    background: rgba(8, 145, 178, 0.32);
}

html.dark .section-accordion-header h3 {
    color: #e2e8f0;
}

html.dark .section-accordion-header:hover h3 {
    color: #93c5fd;
}

html.dark .section-accordion-body {
    border-top-color: #475569;
}

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

.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;
}

html.dark .mystats-section-status--locked {
    color: #fcd34d;
    background: rgba(120, 53, 15, 0.45);
}

html.dark .mystats-section-status--empty {
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.55);
}

html.dark .mystats-section-empty-hint {
    color: #64748b;
}

html.dark .mystats-inner-paywall {
    background: rgba(30, 41, 59, 0.4);
    border-color: #475569;
}

html.dark .people-list-item {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

html.dark .people-list-item__name {
    color: #e2e8f0;
}

html.dark .people-list-item__name:focus {
    background: #1e293b;
}

html.dark .people-list-item--incomplete {
    background: linear-gradient(165deg, rgba(127, 29, 29, 0.35), rgba(69, 10, 10, 0.45));
    border-color: #b91c1c;
}

html.dark .people-unrated-alert {
    background: rgba(127, 29, 29, 0.55);
    border-color: #dc2626;
    color: #fecaca;
}

html.dark .people-relationship-glass {
    background: rgba(30, 41, 59, 0.55);
    border-color: #475569;
}

html.dark .people-rel-chip {
    background: rgba(15, 23, 42, 0.6);
    border-color: #475569;
    color: #cbd5e1;
}

.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;
}

html.dark .lead-training-checklist {
    background: rgba(88, 28, 135, 0.2);
    border-color: #6b21a8;
}

html.dark .lead-purchase-panel {
    background: rgba(22, 101, 52, 0.15);
    border-color: #166534;
}

#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);
}

html.dark .contacts-pick-dialog {
    background: rgba(30, 41, 59, 0.92);
    border-color: #475569;
}

.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);
}

html.dark .contacts-import-dialog {
    background: rgba(30, 41, 59, 0.94);
    border-color: #475569;
}

.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;
}

html.dark .contacts-import-hint { color: #94a3b8; }
html.dark .contacts-import-paste { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html.dark .contacts-import-option { background: rgba(30, 58, 138, 0.35); border-color: #3b82f6; color: #bfdbfe; }
html.dark .contacts-import-option--native { background: rgba(20, 83, 45, 0.35); border-color: #22c55e; color: #86efac; }

#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);
}

html.dark .lead-tracker-card {
    background: rgba(30, 41, 59, 0.65);
    border-color: #475569;
}

html.dark .activity-slot-btn {
    background: #1e293b;
    border-color: #475569;
}

html.dark .prospect-stage-btn {
    background: #1e293b;
    border-color: #475569;
}

html.dark .contact-mode-dialog {
    background: #1e293b;
    color: #f1f5f9;
}

.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;
}

html.dark .followup-log-dialog {
    background: #1e293b;
    color: #f1f5f9;
}

html.dark .result-percent-btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.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%;
}

html.dark .my-stats-summary-item,
html.dark .overview-chart-cell {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

html.dark .my-stats-summary-item strong {
    color: #e2e8f0;
}

.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-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (min-width: 640px) {
    .mystats-kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .mystats-kpi-strip {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.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: 700;
    color: #64748b;
}

.mystats-kpi-card small {
    display: block;
    font-size: 0.5rem;
    color: #94a3b8;
    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;
}

html.dark .mystats-kpi-card,
html.dark .perf-funnel-cell,
html.dark .perf-pipeline-row,
html.dark .growth-stat-card,
html.dark .growth-ranked-list__item {
    background: rgba(30, 41, 59, 0.55);
    border-color: #334155;
}

html.dark .growth-stat-card__val { color: #93c5fd; }
html.dark .growth-ranked-list__name { color: #e2e8f0; }
html.dark .team-growth-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
    border-color: #334155;
}
html.dark .team-growth-panel h4 { color: #e2e8f0; }

html.dark .upline-report {
    background: rgba(49, 46, 129, 0.25);
    border-color: #4338ca;
}

html.dark .team-insights-panel {
    background: rgba(20, 83, 45, 0.2);
    border-color: #166534;
}

.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 {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    list-style: none;
}

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

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

html.dark .perf-hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(88, 28, 135, 0.25));
    border-color: #334155;
}

html.dark .perf-hero__ring {
    background: #1e293b;
    border-color: #3b82f6;
}

html.dark .perf-hero__title,
html.dark .perf-task__text,
html.dark .perf-insight-card__title,
html.dark .perf-pulse-row__label {
    color: #e2e8f0;
}

html.dark .perf-task,
html.dark .perf-insight-card,
html.dark .perf-pulse-row,
html.dark .my-perf-stats-details {
    background: rgba(30, 41, 59, 0.55);
    border-color: #334155;
}

@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;
}

@media (min-width: 1024px) {
    .tab-grid-stats {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 1.5rem;
        align-items: start;
    }
}

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

@media (min-width: 768px) {
    .tab-grid-account {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .account-settings-card {
        grid-column: 1 / -1;
    }
}

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

/* ── حساب من — کارت پروفایل ── */
.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);
}

html.dark .account-profile-card__header {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 50%, #4f46e5 100%);
}

html.dark .account-profile-card__avatar {
    color: #c7d2fe;
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .account-profile-card__tier {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

html.dark .account-profile-card__tier--premium {
    color: #6ee7b7;
}

html.dark .account-profile-card__field {
    background: rgba(15, 23, 42, 0.55);
    border-color: #334155;
}

html.dark .account-profile-card__field-label { color: #94a3b8; }
html.dark .account-profile-card__field-value { color: #f1f5f9; }

html.dark .account-profile-card__code-display {
    color: #a5b4fc;
    background: rgba(49, 46, 129, 0.35);
    border-color: rgba(129, 140, 248, 0.45);
}

html.dark .account-profile-card__code-display.is-empty {
    color: #64748b;
    background: rgba(15, 23, 42, 0.45);
    border-color: #334155;
}

html.dark .account-profile-card__code-edit {
    color: #a5b4fc;
}

html.dark .account-profile-card__code-edit:hover {
    background: rgba(49, 46, 129, 0.35);
    color: #c7d2fe;
}

html.dark .account-profile-card__edit {
    background: rgba(30, 41, 59, 0.65);
    border-color: #475569;
    color: #e2e8f0;
}

html.dark .account-profile-card__edit:hover {
    border-color: #6366f1;
    background: rgba(30, 41, 59, 0.85);
}

/* ── حساب من — کارت تنظیمات گلس ── */
.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);
}

html.dark .account-glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.55));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.dark .account-glass-card__title { color: #f8fafc; }
html.dark .account-glass-card__sub { color: #94a3b8; }
html.dark .account-font-glass {
    background: linear-gradient(160deg, rgba(30, 58, 138, 0.28), rgba(15, 23, 42, 0.45));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html.dark .account-font-glass__icon {
    color: #93c5fd;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(30, 58, 138, 0.45));
    border-color: rgba(59, 130, 246, 0.35);
}
html.dark .account-font-glass__label { color: #94a3b8; }
html.dark .account-font-glass__value,
html.dark #font-scale-label.account-font-glass__value { color: #bfdbfe; }
html.dark .account-font-glass__hint { color: #64748b; }
html.dark .font-scale-glass {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.18);
}
html.dark .font-scale-glass__btn {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(30, 58, 138, 0.55));
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}
html.dark .font-scale-dot {
    background: rgba(71, 85, 105, 0.65);
    border-color: rgba(148, 163, 184, 0.15);
}
html.dark .font-scale-dot.is-active {
    background: linear-gradient(90deg, #3b82f6, #818cf8);
}
html.dark .font-scale-glass__sample-live { color: #93c5fd; }
html.dark .account-role-option {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.28);
}
html.dark .account-role-option.is-selected {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.45), rgba(30, 41, 59, 0.72));
    border-color: rgba(96, 165, 250, 0.45);
}
html.dark .account-role-option__label { color: #e2e8f0; }
html.dark .account-role-option.is-selected .account-role-option__label { color: #bfdbfe; }
html.dark .account-roles-count {
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.45);
    border-color: rgba(59, 130, 246, 0.35);
}
html.dark .account-role-chip {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}
html.dark .account-role-chip.is-selected {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.82), rgba(29, 78, 216, 0.75));
    border-color: rgba(96, 165, 250, 0.45);
    color: #fff;
}
html.dark .account-roles-summary {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}
html.dark .account-logout-glass {
    background: linear-gradient(160deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.55));
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* ── حساب من — مودال‌های شیشه‌ای ── */
.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); }

html.dark .account-modal {
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.9), rgba(30, 58, 138, 0.35));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.dark .account-modal__title { color: #bfdbfe; }
html.dark .account-modal__sub { color: #94a3b8; }
html.dark .account-modal__close {
    background: rgba(30, 41, 59, 0.75);
    color: #94a3b8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html.dark .account-modal__close:hover { color: #e2e8f0; background: rgba(51, 65, 85, 0.85); }
html.dark .account-modal-field > span { color: #94a3b8; }
html.dark .account-modal-field input {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html.dark .account-modal-field input:focus {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
html.dark .account-modal-field input:disabled {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(71, 85, 105, 0.55);
    color: #64748b;
}
html.dark .account-modal-btn--ghost {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
}
html.dark .account-modal-btn--ghost:hover { background: rgba(51, 65, 85, 0.85); }

.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;
}

html.dark .followup-date-group__title {
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.35);
    border-color: #1d4ed8;
}

.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;
}

html.dark .followup-hidden-toggle-btn {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

html.dark .followup-hidden-panel {
    border-color: #475569;
    background: rgba(30, 41, 59, 0.55);
}

html.dark .followup-visibility-btn {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

.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 #library-catalog,
.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);
}

html.dark .messenger-tab-viewport .nc-app {
    border-bottom-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.32);
}

.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,
#desktop-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;
}

html.dark #mobile-nav .nav-item--admin-locked.active {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #94a3b8 !important;
}

.desktop-sidebar .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: 200;
    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;
}

html.dark .app-toast {
    background: linear-gradient(165deg, rgba(49, 46, 129, 0.9), rgba(30, 27, 75, 0.95));
    border-color: #4338ca;
}

html.dark .app-toast__title {
    color: #e0e7ff;
}

html.dark .app-toast__text {
    color: #c7d2fe;
}

.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;
}
html.dark .subscription-countdown__expire-note { color: #64748b; }

.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__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); }
}
html.dark #admin-panel .admin-panel-tabs {
    background: rgba(15, 23, 42, 0.92);
    border-color: #334155;
}
html.dark .admin-panel-tab { color: #94a3b8; }
html.dark .admin-panel-tab:hover {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.12);
}
html.dark .admin-panel-tab.is-active {
    color: #67e8f9;
    background: #1e293b;
    border-color: rgba(8, 145, 178, 0.35);
}

.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-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;
}
html.dark .admin-logo-crop-modal__dialog {
    background: #1e293b;
    border-color: #334155;
}
html.dark .admin-logo-crop-modal__title { color: #f8fafc; }
html.dark .admin-logo-crop-modal__hint { color: #94a3b8; }
html.dark .admin-logo-crop-modal__viewport { background: #0f172a; border-color: #475569; }
html.dark .admin-logo-crop-modal__zoom { color: #cbd5e1; }
html.dark .admin-logo-crop-modal__btn--ghost { background: #334155; color: #e2e8f0; }
.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;
}
html.dark .site-maintenance-overlay__card h2 { color: #e2e8f0; }
html.dark .site-maintenance-overlay__card p { color: #94a3b8; }

.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: 215;
    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;
}

