/* static/css/home.css */

.title-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    /* یا هر عرض دلخواه دیگه */
}


/* ---------- Header ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap);
    gap: var(--gap-lg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.icon-btn .dot-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #fff;
}


.logo-shape {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary);
    transform: rotate(20deg);
}

.brand-text .title {
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--ink-900);
}

.brand-text .sub {
    font-size: var(--text-lg);
    color: var(--ink-400);
}

.search {
    flex: 1;
    max-width: 550px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 6px 16px;
    color: var(--ink-400);
    font-size: var(--text-xl);
    box-shadow: var(--shadow-sm);
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-family: inherit;
    font-size: var(--text-xl);
    color: var(--ink-900);
    padding: 8px 0;
}

.search input::placeholder {
    color: var(--ink-400);
}

.search button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    font-size: var(--text-2xl);
    padding: 4px;
}

.search span.k {
    background: var(--card-soft);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: var(--text-base);
    color: var(--ink-600);
    white-space: nowrap;
}

.right-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3352, #171b2e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.user-meta .name {
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--ink-900);
}

.user-meta .loc {
    font-size: var(--text-base);
    color: var(--ink-400);
}

.user-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Greeting ---------- */
.greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-lg);
    flex-wrap: wrap;
    gap: var(--gap);
}

.greeting h1 {
    font-size: var(--text-7xl);
    margin: 0 0 4px;
    color: var(--ink-900);
}

.greeting p {
    margin: 0;
    color: var(--ink-600);
    font-size: var(--text-2xl);
    letter-spacing: -0.5px;
    line-height: 1.3;

}

.greeting p span {
    margin: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 600;
    font-size: var(--text-3xl);
    letter-spacing: -4px;
}

.greet-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mic-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: var(--text-4xl);
}

.date-cluster {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.date-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.date-badge .num {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-900);
}

.date-text {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.3;
}

.date-text b {
    color: var(--ink-900);
    display: block;
    font-size: var(--text-xl);
}

.range-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: var(--text-xl);
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
}

/* ---------- کارت پایه ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--gap-smm);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.card-small {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--gap-smmm);
    box-shadow: var(--shadow-sm);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-title-row h4 {
    margin: 0;
    font-size: var(--text-2xl);
    color: var(--ink-900);
    font-weight: 700;
}

.info-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    flex-shrink: 0;
    cursor: pointer;
    transition: 0.2s ease;
}



.info-wrapper {
    display: inline-block;
    position: relative;
}


.info-dot:hover {
    background: #1d4ed8;
    transform: scale(1.06);
}

.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    padding: 12px 12px 10px;
    z-index: 9999;
    display: none;
    direction: rtl;
    text-align: right;
}

.info-popup.active {
    display: block;
    animation: fadeInInfo 0.18s ease;
}

@keyframes fadeInInfo {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-popup-close {
    position: absolute;
    top: 0px;
    left: 2px;
    width: 28px;
    height: 28px;
    border: none;
    background: #ffffff00;
    color: #828282;
    font-size: 18px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.info-popup-close:hover {
    color: #2c2c2c;
}

.info-popup-content {
    padding-left: 8px;
    line-height: 1.9;
    font-size: var(--text-xl);
    color: var(--ink-600);
    max-height: 220px;
    overflow-y: auto;
}


.info-popup::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 100%;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
    filter: drop-shadow(-1px 0 0 #e5e7eb);
}




.list-empty {
    font-size: var(--text-lg);
    color: var(--ink-400);
    text-align: center;
    padding: 22px 4px;
}

/* ---------- ساختار بخش‌ها (دسته‌بندی) ---------- */
.section {
    margin-bottom: var(--gap-lg);
}

#roadmaps-section {
    scroll-margin-top: 25px;
}


.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--gap);
    padding: 0 2px;
    flex-wrap: wrap;
    gap: 6px;
}


.section-head .s-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--ink-900);
}

.section-head .s-icon {
    font-size: var(--text-2xl);
}

.s-note {
    font-size: var(--text-lg);
    color: var(--ink-400);
}

.grid {
    display: grid;
    gap: var(--gap);
}

.grid-1-2 {
    grid-template-columns: 1fr 2fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-2-1 {
    grid-template-columns: 2fr 1fr;
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5-7 {
    grid-template-columns: 0.42fr 0.58fr;
}

.flex-row {
    display: flex;
    gap: var(--gap);
}

/* ---------- KPI ring row ---------- */
.kpi-card {
    display: flex;
    align-items: center;
    gap: var(--gap-smmm);
}

.kpi-meta .kpi-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-900);
}

.kpi-meta .kpi-label {
    font-size: var(--text-lg);
    color: var(--ink-400);
    margin-top: 2px;
}

.ring-text {
    font-size: var(--text-lg);
    font-weight: 700;
    fill: var(--ink-900);
}

.ring-text-rm {
    font-size: var(--text-base);
    font-weight: 700;
    fill: var(--ink-900);
}

/* ---------- هشدار نقطه ضعف ---------- */
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-right: 5px solid var(--red);
}

.alert-card.level-critical {
    border-color: var(--red);
}

.alert-card.level-high {
    border-color: var(--amber);
}

.alert-card.level-medium {
    border-color: var(--primary);
}

.alert-card.level-low {
    border-color: var(--ink-400);
}

.alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    flex-shrink: 0;
}

.level-high .alert-icon {
    background: var(--amber-soft);
    color: var(--amber);
}

.level-medium .alert-icon {
    background: var(--primary-softer);
    color: var(--primary);
}

.level-low .alert-icon {
    background: var(--card-soft);
    color: var(--ink-600);
}

.alert-body .alert-tag {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.level-high .alert-body .alert-tag {
    color: var(--amber);
}

.level-medium .alert-body .alert-tag {
    color: var(--primary);
}

.level-low .alert-body .alert-tag {
    color: var(--ink-600);
}

.alert-body h4 {
    margin: 4px 0;
    font-size: var(--text-2xl);
    color: var(--ink-900);
}

.alert-body p {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--ink-600);
    line-height: 1.6;
}

/* ---------- سوییچر رودمپ‌ها (چند رودمپ) ---------- */
.roadmap-switcher {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    padding: 2px 2px 4px;
    margin-bottom: var(--gap);
}

.roadmap-switcher::-webkit-scrollbar {
    height: 6px;
}

.roadmap-switcher::-webkit-scrollbar-thumb {
    background: #d7dae3;
    border-radius: 6px;
}

.rm-chip {
    flex: 0 0 232px;
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: .15s ease;
}

.rm-chip:hover {
    box-shadow: var(--shadow-md);
}

.rm-chip.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.rm-chip .rm-meta {
    min-width: 0;
    flex: 1;
}

.rm-chip .rm-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-chip .rm-goal {
    font-size: var(--text-lg);
    color: var(--ink-400);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-chip .rm-status {
    display: inline-block;
    margin-top: 6px;
    font-size: var(--text-base);
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.rm-add {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px dashed #d3d7e2;
    border-radius: var(--radius-md);
    color: var(--ink-400);
    font-size: var(--text-lg);
    text-decoration: none;
}

/* ---------- کارت رودمپ انتخاب‌شده ---------- */
.rm-detail {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.rm-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap);
}

.rm-detail-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--ink-900);
}

.rm-detail-goal {
    font-size: var(--text-lg);
    color: var(--ink-400);
    margin-top: 4px;
}

.status-pill {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: var(--text-lg);
    font-weight: 700;
    white-space: nowrap;
}

.compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-base);
    color: var(--ink-400);
    margin-bottom: 6px;
}

.compare-track {
    position: relative;
    height: 14px;
    border-radius: 12px;
    background: var(--card-soft);
    margin-bottom: 14px;
    overflow: hidden;
}

.compare-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 10px;
}

.rm-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.rm-dates .fee-label {
    font-size: var(--text-base);
    color: var(--ink-400);
}

.rm-dates .fee-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ink-900);
    margin-top: 2px;
}

.rm-actions {
    display: flex;
    gap: 10px;
}

.btn-dark {
    background: var(--ink-900);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: var(--text-xl);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-light {
    background: var(--card-soft);
    color: var(--ink-900);
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: var(--text-xl);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* ============== تایم‌لاین عمودی مراحل/فعالیت‌ها (بازطراحی‌شده) ============== */
.rm-vertical-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rm-vtl-scroll {
    max-height: 640px;
    overflow-y: auto;
    overflow-x: clip;
    padding-inline-end: 6px;
}

.rm-vtl-scroll::-webkit-scrollbar {
    width: 5px;
}

.rm-vtl-scroll::-webkit-scrollbar-thumb {
    background: #d7dae3;
    border-radius: 6px;
}

.rm-vtl-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 20px;
    padding-inline-start: 2px;
}

.rm-vtl-line-col {
    position: relative;
    padding-inline-start: 22px;
    margin-right: 13px;
}

/* هر مرحله خودش مسئول رسم قطعه‌خطِ زیر گره خودش است؛
   رنگ این قطعه از وضعیت همان مرحله می‌آید، نه مرحله بعدی.
   این باعث می‌شود مسیرِ طی‌شده و مسیرِ باقیمانده در نگاه اول قابل تشخیص باشند. */
.rm-vtl-stage {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.rm-vtl-stage.is-last {
    margin-bottom: 0;
}

.rm-vtl-stage:not(.is-last)::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50px;
    bottom: -20px;
    width: 2px;
    background: var(--line);
}

.rm-vtl-stage.is-done:not(.is-last)::after {
    background: var(--green);
}

.rm-vtl-stage.is-active:not(.is-last)::after {
    background-image: repeating-linear-gradient(to bottom,
            var(--line) 0 4px,
            transparent 4px 9px);
}

.rm-vtl-stage-node {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.rm-vtl-dot {
    position: absolute;
    right: -22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--card);
    border: 2px solid var(--ink-400);
    box-shadow: 0 0 0 4px var(--card);
}

.rm-vtl-dot.upcoming {
    border-color: #cfd4e0;
}

.rm-vtl-dot.active {
    width: 20px;
    height: 20px;
    right: -23px;
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.rm-vtl-dot-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.rm-vtl-dot.done {
    border-color: var(--green);
    background: var(--green);
}

.rm-vtl-dot.done .icon {
    width: 10px;
    height: 10px;
    stroke: #fff;
    stroke-width: 3;
}

.rm-vtl-stage-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.rm-vtl-stage-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-vtl-stage-pct {
    margin-inline-start: auto;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink-400);
    background: var(--card-soft);
    padding: 2px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.rm-vtl-stage-pct.is-done {
    color: var(--green);
    background: var(--green-soft);
}

.rm-vtl-badge {
    margin-inline-start: auto;
    background: var(--primary-softer);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-vtl-stage.is-active .rm-vtl-stage-title {
    color: var(--primary-ink);
    margin-right: 4px;
}

.rm-vtl-activities {
    margin-top: 10px;
    margin-inline-end: -10px;
    padding-inline-start: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-vtl-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-soft);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    text-decoration: none;
    transition: .15s ease;
    border: 1px solid transparent;
    margin-left: 13px;
}

.rm-vtl-activity:hover {
    border-color: var(--primary-soft);
    background: var(--primary-softer);
}

.rm-vtl-activity.is-progress {
    background: var(--primary-softer);
    border-color: var(--primary-soft);
}

.rm-vtl-adot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-400);
    flex-shrink: 0;
}

.rm-vtl-activity.is-progress .rm-vtl-adot {
    background: var(--primary);
}

.rm-vtl-activity.is-done .rm-vtl-adot {
    background: var(--green);
}

.rm-vtl-atitle {
    font-size: var(--text-lg);
    color: var(--ink-600);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-vtl-activity.is-done .rm-vtl-atitle {
    color: var(--ink-900);
    font-weight: 600;
}

/* حلقهٔ درصد فعالیت — جایگزین فشرده‌تر و بصری‌تر برای نمایش عدد خام،
   که در عرض کم بهتر از یک نوار پیشرفت افقی جا می‌شود */
.rm-vtl-aring {
    --p: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.rm-vtl-aring-hole {
    display: none;
}

.rm-vtl-activity.is-progress {
    background: var(--primary-softer);
    color: var(--primary-ink);
}

.rm-vtl-aring.is-done {
    background: var(--green);
}

.rm-vtl-aring.is-done .icon {
    width: 11px;
    height: 11px;
    stroke: #fff;
    stroke-width: 3;
}

.inter-longitudinal-card {
    display: grid;
    gap: var(--gap);
}

/* ---------- تایم‌لاین SVG مراحل ---------- */
/* ---------- تایم‌لاین SVG مراحل ---------- */
.timeline-svg-wrap {
    width: 100%;
    overflow-x: auto;
}

.timeline-svg {
    width: 100%;
    height: 240px;
    display: block;
}

.tl-grid-line {
    stroke: var(--line);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.tl-area {
    fill: url(#tlAreaGradient);
}

.tl-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
}

.tl-node {
    stroke: #fff;
    stroke-width: 0;
    transition: r 0.2s ease;
}

.tl-node.active {
    fill: var(--primary);
    stroke-width: 0;
}

.tl-node.done {
    fill: var(--primary);
}

.tl-node.upcoming {
    fill: var(--primary-soft);
}

.tl-node-pulse {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.6;
    transform-origin: center;
    animation: tlPulse 1.8s ease-out infinite;
}

@keyframes tlPulse {
    0% {
        r: 7;
        opacity: 0.6;
    }

    100% {
        r: 15;
        opacity: 0;
    }
}

.tl-arrow-line {
    stroke: var(--primary);
    stroke-width: 0;
}

.tl-arrow-head {
    fill: none;
    stroke: var(--primary);
    stroke-width: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-active-tag {
    font-size: var(--text-sm);
    font-weight: 700;
    fill: var(--primary);
}

.tl-label {
    font-size: var(--text-lg);
    font-weight: 500;
    fill: var(--ink-600);
}

.tl-pct {
    font-size: var(--text-lg);
    fill: var(--ink-900);
    font-weight: 700;
}


.margin-top {
    margin-top: var(--gap);
}

.home-card-0nline-activity {
    margin-top: 37px;
    margin-right: 10px;
}

/* ---------- نمودار پنج ضلعی ---------- */

.radar-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.radar-svg {
    width: 100%;
    height: 100%;
}

.radar-grid {
    fill: none;
    stroke: var(--line);
    stroke-width: 1;
}

.radar-axis {
    stroke: var(--line);
    stroke-width: 1;
}

.radar-data {
    fill: var(--primary-soft);
    stroke: var(--primary);
    stroke-width: 2;
}

.radar-labels {
    position: absolute;
    inset: 0;
}

.radar-label {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: var(--text-base);
    color: var(--ink-600);
    white-space: nowrap;
}

.radar-label b {
    display: block;
    font-size: var(--text-lg);
    color: var(--ink-900);
}


/* ---------- نمودار فعالیت ها ---------- */

.card-stage-activities {
    margin-bottom: var(--gap);
}

.chart-legend {
    display: flex;
    gap: var(--gap-smmm);
    margin-bottom: 14px;
    font-size: var(--text-lg);
    color: var(--ink-600);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-duration {
    background: var(--primary);
}

.legend-impact {
    background: var(--purple);
}

.activities-chart-wrap {
    position: relative;
}

.chart-grid-lines {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.chart-grid-lines span {
    display: block;
    height: 1px;
    background: var(--line);
}

.activities-chart-list {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: var(--gap-smmm);
    overflow-x: auto;
    padding: 10px 4px 4px;
}

.activities-chart-list::-webkit-scrollbar {
    height: 6px;
}

.activities-chart-list::-webkit-scrollbar-thumb {
    background: #d7dae3;
    border-radius: 6px;
}

.activity-chart-item {
    flex: 0 0 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.bar-track {
    width: 14px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    border-radius: 8px;
    transition: height .3s ease;
}

.bar-duration {
    background: var(--primary);
}

.bar-impact {
    background: var(--purple);
}

.bar-value {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink-900);
}

.chart-item-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-900);
    text-decoration: none;
    text-align: center;
    max-width: 84px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-item-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.difficulty-badge {
    font-size: var(--text-base);
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}


.heatmap-nav {
    align-items: center;
    margin: 0 15px 5px;
}

.heatmap-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.heatmap-nav-btns .btn-ghost {
    font-size: var(--text-lg);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
    background: transparent;
    color: var(--ink-500);
    cursor: pointer;
}

.heatmap-nav-btns .btn-ghost:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.heatmap-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.heatmap-wrap {
    display: flex;
    align-items: flex-start;
    width: max-content;
    overflow: unset;
    min-width: 100%;
}

/* ستون روزهای هفته — همیشه سمت راست ثابت می‌ماند */
.heatmap-weekdays {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    right: 0;
    background: var(--card, #fff);
    padding-inline-start: 6px;
    z-index: 2;
}

.heatmap-weekdays span {
    font-size: var(--text-lg);
    color: var(--ink-400);
    height: 12px;
    line-height: 12px;
}

.heatmap-months-scroll {
    direction: ltr;
    /* قدیمی‌ترین ماه سمت چپ، جدیدترین نزدیک ستون روزها */
    overflow: visible;
}

.heatmap-months-container {
    display: flex;
    gap: 22px;
    /* فاصله‌ی بین هر ماه */
    padding-right: 20px;
}

.month-block {
    display: flex;
    flex-direction: column;
}

.month-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 4px;
    white-space: nowrap;
    text-align: center;
}

.month-grid {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    gap: 10px;
}

.heat {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: var(--card-soft, #ebedf0);
}

.heat.empty-cell {
    background: transparent !important;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    font-size: var(--text-sm);
    color: var(--ink-400);
    direction: ltr;
    margin-right: 10px;
}

.heatmap-legend .heat {
    width: 18px;
    height: 18px;
}

.heatmap-tooltip {
    position: fixed;
    background: #1f2937;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: var(--text-lg);
    line-height: 1.6;
    pointer-events: none;
    z-index: 1000;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ---------- میله‌های افقی ---------- */
.hbar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hbar-name {
    flex-shrink: 0;
    font-size: var(--text-lg);
    color: var(--ink-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hbar-track {
    flex: 1;
    height: 9px;
    border-radius: 6px;
    background: var(--card-soft);
    position: relative;
    overflow: hidden;
}

.hbar-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 6px;
    background: var(--primary);
}

.hbar-count {
    width: 26px;
    flex-shrink: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink-900);
    text-align: left;
}

/* ---------- پروژه‌های من ---------- */
.sales-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sales-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-900);
}

.sales-amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-700);
    margin-top: 6px;
}

.daily-pill {
    background: var(--card-soft);
    border-radius: 14px;
    padding: 8px 12px;
    text-align: center;
    font-size: var(--text-base);
    color: var(--ink-400);
}

.daily-pill b {
    display: block;
    color: var(--ink-900);
    font-size: var(--text-xl);
}

.project-row {
    margin-bottom: 16px;
}

.project-row:last-child {
    margin-bottom: 0;
}

.project-row .p-name {
    font-size: var(--text-lg);
    color: var(--ink-900);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.p-legend {
    display: flex;
    gap: 14px;
    font-size: var(--text-sm);
    color: var(--ink-400);
    margin-top: 10px;
}

.p-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

/* ---------- تکمیل پروفایل (plan) ---------- */
.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.plan-item:last-child {
    padding-bottom: 0;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 26px;
    right: 13px;
    width: 1.5px;
    height: 18px;
    background: var(--line);
}

.plan-item:last-child::before {
    display: none;
}

.plan-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
    z-index: 1;
    font-weight: 700;
}

.plan-pill {
    background: var(--card-soft);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: var(--text-lg);
    color: var(--ink-900);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.plan-pill .ppl-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.plan-pill .ppl-track {
    height: 5px;
    border-radius: 4px;
    background: #e5e8f0;
    overflow: hidden;
}

.plan-pill .ppl-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
}

/* ---------- دونات وضعیت فعالیت‌ها ---------- */
.donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    margin-top: 16px;
}

.donut-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-base);
    color: var(--ink-600);
}

.donut-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
}

/* ---------- آمار جامعه ---------- */
.ti-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ti-row .wtag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--card-soft);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: var(--text-base);
    color: var(--ink-600);
}

.wallet-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--card-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--ink-600);
    flex-shrink: 0;
}

.ti-label {
    font-size: var(--text-lg);
    color: var(--ink-400);
    margin: 14px 0 2px;
}

.ti-amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-900);
}

.ti-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.view-chart {
    font-size: var(--text-base);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    text-align: left;
}

/* ---------- empty state ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 10px;
}

.empty-state .es-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--card-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    color: var(--ink-400);
}

.empty-state p {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--ink-400);
    line-height: 1.6;
}

/* ---------- لیست‌های عمومی ---------- */
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.list-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-row:first-child {
    padding-top: 0;
}

.list-row .lr-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    width: 100%;
}

.list-row .lr-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row .lr-sub {
    font-size: var(--text-lg);
    color: var(--ink-400);
}

.list-row .lr-badge {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-softer);
    border-radius: 20px;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- رگولیشن ---------- */
.reg-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.reg-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.reg-breakdown .rb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--ink-600);
}

.reg-breakdown .rb-track {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: var(--card-soft);
    overflow: hidden;
}

.reg-breakdown .rb-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
}




svg {
    display: block;
}

@media (max-width:1000px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-5-7 {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .search {
        display: none;
    }
}






/* آیکون‌های SVG آفلاین جایگزین ایموجی — بدون نیاز به فونت/CDN */
.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
}

.icon-lg {
    width: 26px;
    height: 26px;
}

.page-stage {
    margin-top: -100px;
}

.eyebrow {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--purple-deep);
    background: linear-gradient(90deg, rgba(62, 99, 221, .1), rgba(124, 77, 255, .14));
    padding: 6px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-self: center;
    gap: 6px;
    align-items: center;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: inline-block;
}

h1 {
    font-size: var(--text-7xl);
    font-weight: 800;
    margin: 2px 0 0 0;
    background: linear-gradient(90deg, var(--blue), var(--purple-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub {
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    max-width: 520px;
    margin: 0 auto;
}

.stage {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ground {
    position: absolute;
    bottom: 10px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(124, 77, 255, .20), rgba(62, 99, 221, .08) 55%, transparent 75%);
    filter: blur(2px);
    border-radius: 50%;
}

.perspective {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.wheel {
    position: relative;
    width: 1px;
    height: 1px;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.65, .05, .25, 1);
}

.item {
    position: absolute;
    top: 50%;
    right: 50%;
    border-radius: var(--radius-card);
    background: linear-gradient(160deg, #ffffff, #f3f4ff);
    border: 1px solid rgba(124, 77, 255, .14);
    box-shadow: 0 10px 26px rgba(43, 45, 90, .10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    padding-bottom: 4px;
    text-align: center;
    backface-visibility: hidden;
    transition: transform .9s cubic-bezier(.65, .05, .25, 1), opacity .9s ease, box-shadow .35s ease, border-color .35s ease;
}

.item .num {
    display: none;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
}

.item .label {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
}

.item .desc {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 6px;
}

.item.is-active {
    box-shadow: 0 18px 40px rgba(62, 99, 221, .22), 0 0 0 1px rgba(124, 77, 255, .05);
    border-color: rgba(124, 77, 255, .3);
}

.item.is-done .label {
    color: #585c7c;
}

.item.is-done {
    background: linear-gradient(160deg, #ffffff, #f6f6fb);
}

.status-circle {
    width: 36px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3.5px solid rgba(124, 77, 255, .15);
    border-right-color: var(--blue);
    opacity: 0;
    animation: spin .8s linear infinite;
    position: absolute;
}

.item.is-waiting .loader {
    opacity: 1;
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    opacity: 0;
    transform: scale(0) rotate(-40deg);
}

.result-icon svg {
    width: 24px;
    height: 24px;
}

.result-icon.success {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 6px 16px rgba(91, 33, 182, .35);
}

.result-icon.fail {
    background: linear-gradient(135deg, #f87171, var(--red-deep));
    box-shadow: 0 6px 16px rgba(185, 28, 28, .35);
}

.result-icon.show {
    animation: stamp .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes stamp {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-40deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.2) rotate(6deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.status {
    width: 100%;
    max-width: 460px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.status-normal,
.status-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: opacity .4s ease, transform .4s ease;
}

.status-complete {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

.status-complete.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.status-normal.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.complete-msg {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    padding: 14px 26px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(91, 33, 182, .28);
    text-align: center;
}

.complete-sub {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--muted);
}

.counter {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--purple-deep);
    background: var(--card);
    border: 1px solid rgba(124, 77, 255, .15);
    padding: 7px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(62, 99, 221, .08);
    min-width: 170px;
    text-align: center;
}

.dots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.step-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #dfe2f7;
    transition: all .35s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 0 0 5px rgba(124, 77, 255, .16);
    transform: scale(1.15);
}

.step-dot.done-success {
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.step-dot.done-fail {
    background: linear-gradient(135deg, #f87171, var(--red-deep));
}

@media (prefers-reduced-motion: reduce) {

    .wheel,
    .item {
        transition-duration: .2s;
    }

    .loader {
        animation: none;
    }
}

@media (max-width:520px) {
    .stage {
        height: 320px;
    }
}


.vbar-chart {
    display: flex;
    /* justify-content: space-around; */
    align-items: flex-end;
    gap: 5px;
    height: 160px;
    max-width: 550px;
    overflow: auto;
}

.vbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 140%;
    max-width: 160px;
    min-width: 100px;
}

.vbar-track {
    width: 22px;
    height: 100px;
    background: var(--bg-soft, #f2f2f2);
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: auto;
}

.vbar-fill {
    width: 100%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.vbar-value {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-primary, #333);
}

.vbar-label {
    font-size: var(--text-base);
    color: var(--text-secondary, #777);
    margin-top: 2px;
    text-align: center;
}

.vbar-applications {
    font-size: var(--text-sm);
    color: var(--purple);
    margin-top: 2px;
}














.section-head-img {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
        margin-bottom: 16px;
    padding: 0 2px;
    flex-wrap: wrap;
    gap: 6px;
}

.section-head-text {

}

.section-head-text p{
    font-size: var(--text-xl);
    color: var(--ink-400);
        font-weight: 500;
}

.section-head-text .btn{
margin-top: 10px;
}

.img-section {
    height: 140px;
}

.img-section img {
    width: 220px;
    mix-blend-mode: multiply;
    display: block;
    position: relative;
    bottom: 50px;
    margin-left: var(--gap-lg);
}

.img-section .roadmap-img {
    width: 180px;
}


.section-head-tag {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-card {
margin-bottom: var(--gap);
}

.section-head-tag h2 {
letter-spacing: -2px;
}

.section-head-tag span {
    margin: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
}