/* صفحات فوتر + رودمپ + فوتر عمومی — کاملاً آفلاین */

.ft-page-section {
    padding: 110px 0 72px;
    background: linear-gradient(180deg, #050810 0%, #060a15 100%);
    min-height: 60vh;
}
.ft-page-wrap { max-width: 860px; }
.ft-page-bc {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #94a3b8; margin-bottom: 20px;
}
.ft-page-bc a { color: var(--gold); text-decoration: none; }
.ft-page-bc a:hover { text-decoration: underline; }
.ft-page-head { margin-bottom: 28px; }
.ft-page-head h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900; color: #f8fafc; margin: 0 0 10px;
}
.ft-page-summary { color: #94a3b8; font-size: 15px; line-height: 1.8; margin: 0; }
.ft-page-body {
    background: rgba(8, 12, 22, 0.7);
    border: 1px solid rgba(212, 160, 23, 0.14);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 32px);
    line-height: 2;
    color: #cbd5e1;
    font-size: 15px;
}
.ft-page-body h2, .ft-page-body h3 {
    color: #f1f5f9; font-weight: 800; margin: 1.4em 0 0.6em;
}
.ft-page-body h2 { font-size: 1.25rem; }
.ft-page-body h3 { font-size: 1.08rem; }
.ft-page-body p { margin: 0 0 1em; }
.ft-page-body ul, .ft-page-body ol { padding-right: 1.25em; margin: 0 0 1em; }
.ft-page-body li { margin-bottom: 0.4em; }
.ft-page-body a { color: var(--gold); }
.ft-page-body strong { color: #f8fafc; }
.ft-page-back {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 28px; justify-content: center;
}

/* ── رودمپ / نقشهٔ راه Rail724 (مسیر پیموده‌شده روی ریل) ── */
.ft-roadmap {
    position: relative;
    margin: 20px -8px 4px;
    padding: 32px 8px 8px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18px 18px, rgba(212, 160, 23, 0.16) 1.4px, transparent 1.6px) 0 0 / 26px 26px,
        linear-gradient(180deg, rgba(212, 160, 23, 0.05) 0%, rgba(5, 8, 16, 0) 45%);
    overflow: hidden;
}
.ft-roadmap-head {
    text-align: center;
    margin-bottom: 34px;
    padding: 0 8px 4px;
    position: relative;
    z-index: 2;
}
.ft-roadmap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gold-light, #f5c518);
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 14px;
}
.ft-roadmap-title {
    margin: 0 0 8px !important;
    font-size: clamp(1.25rem, 2.9vw, 1.65rem) !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    letter-spacing: -0.02em;
}
.ft-roadmap-sub {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

/* ── ریل مرکزی: دو خط موازی + تراورس، شبیه خط راه‌آهن ── */
.ft-roadmap-track {
    position: relative;
    padding: 6px 0 10px;
    z-index: 2;
}
.ft-roadmap-rail,
.ft-roadmap-rail-fill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 16px;
    transform: translateX(-50%);
    border-radius: 6px;
    pointer-events: none;
}
.ft-roadmap-rail {
    background-image:
        repeating-linear-gradient(180deg, rgba(226, 232, 240, 0.4) 0 3px, transparent 3px 20px),
        linear-gradient(90deg,
            rgba(148, 163, 184, 0.5) 0 2.5px, transparent 2.5px calc(100% - 2.5px),
            rgba(148, 163, 184, 0.5) calc(100% - 2.5px) 100%);
    opacity: 0.55;
}
.ft-roadmap-rail-fill {
    background-image:
        repeating-linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0 3px, transparent 3px 20px),
        linear-gradient(180deg, #d4a017 0%, #f5c518 22%, #2dd4bf 55%, #34d399 82%, #10b981 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0 2.5px, #000 2.5px calc(100% - 2.5px), transparent calc(100% - 2.5px) 100%);
    mask-image: linear-gradient(90deg, transparent 0 2.5px, #000 2.5px calc(100% - 2.5px), transparent calc(100% - 2.5px) 100%);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.18);
}

/* ── نشانگرهای فاصله (کیلومتر‌شمار مسیر) ── */
.ft-rm-gap {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin: -6px auto 6px;
}
.ft-rm-gap span {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #0a0e18;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ── هر مرحله: کارت + پین روی ریل، به‌صورت زیگ‌زاگ ── */
.ft-rm-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: start;
    margin-bottom: 30px;
}
.ft-rm-card:last-child { margin-bottom: 0; }

.ft-rm-content {
    position: relative;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(5, 8, 16, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.ft-rm-card--r .ft-rm-content { grid-column: 1; text-align: right; }
.ft-rm-card--l .ft-rm-content { grid-column: 3; text-align: left; }

.ft-rm-card--r .ft-rm-content::after {
    content: '';
    position: absolute;
    top: 24px;
    left: -18px;
    width: 18px;
    height: 2px;
    background: rgba(212, 160, 23, 0.5);
}
.ft-rm-card--l .ft-rm-content::before {
    content: '';
    position: absolute;
    top: 24px;
    right: -18px;
    width: 18px;
    height: 2px;
    background: rgba(212, 160, 23, 0.5);
}

.ft-rm-card--accent .ft-rm-content {
    border-color: rgba(212, 160, 23, 0.24);
    background: linear-gradient(145deg, rgba(212, 160, 23, 0.07) 0%, rgba(5, 8, 16, 0.96) 55%);
}
.ft-rm-card--vip .ft-rm-content {
    border-color: rgba(45, 212, 191, 0.38);
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.1) 0%, rgba(5, 8, 16, 0.97) 55%);
}
.ft-rm-card--finale .ft-rm-content {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 8, 16, 0.97) 55%);
}

/* پین روی ریل — نقطهٔ ایستگاه روی نقشه */
.ft-rm-pin {
    grid-column: 2;
    justify-self: center;
    align-self: start;
    margin-top: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1220;
    border: 3px solid #d4a017;
    color: #f5c518;
    font-size: 14px;
    box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.12), 0 0 16px rgba(212, 160, 23, 0.22);
}
.ft-rm-pin--start {
    background: #1a1306;
    border-color: #f5c518;
    color: #f5c518;
}
.ft-rm-pin--gold {
    background: #1a1306;
    border-color: #f5c518;
    color: #f5c518;
    box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.14), 0 0 18px rgba(212, 160, 23, 0.28);
}
.ft-rm-pin--vip {
    background: #05201c;
    border-color: #2dd4bf;
    color: #5eead4;
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.16), 0 0 18px rgba(45, 212, 191, 0.32);
}
.ft-rm-pin--live {
    background: #052018;
    border-color: #10b981;
    color: #6ee7b7;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18), 0 0 22px rgba(16, 185, 129, 0.4);
    animation: ftPinPulse 2.4s ease-in-out infinite;
}
@keyframes ftPinPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18), 0 0 22px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0.1), 0 0 30px rgba(16, 185, 129, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .ft-rm-pin--live { animation: none; }
}

.ft-rm-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ft-rm-card--l .ft-rm-meta { justify-content: flex-start; }
.ft-rm-card--r .ft-rm-meta { justify-content: flex-end; }
.ft-rm-meta time {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light, #f5c518);
}
.ft-rm-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.ft-rm-tag--gold {
    color: #f5c518;
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.28);
}
.ft-rm-tag--vip {
    color: #5eead4;
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.3);
}
.ft-rm-tag--live {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}
.ft-rm-card h3 {
    margin: 0 0 6px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
}
.ft-rm-card p {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    line-height: 1.85 !important;
}

/* ── موبایل/تبلت: تک‌ستونه، ریل کنار، بدون زیگ‌زاگ ── */
@media (max-width: 720px) {
    .ft-roadmap { margin: 16px -6px 4px; padding: 26px 6px 6px; border-radius: 18px; }
    .ft-roadmap-rail, .ft-roadmap-rail-fill { left: 19px; width: 12px; transform: none; }
    .ft-rm-gap { justify-content: flex-start; padding-right: 44px; margin: -4px 0 4px; }
    .ft-rm-card {
        grid-template-columns: 44px 1fr;
        margin-bottom: 20px;
    }
    .ft-rm-card--r .ft-rm-content,
    .ft-rm-card--l .ft-rm-content {
        grid-column: 2;
        text-align: right;
    }
    .ft-rm-card--r .ft-rm-content::after,
    .ft-rm-card--l .ft-rm-content::before {
        content: none;
    }
    .ft-rm-pin {
        grid-column: 1;
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-top: 4px;
    }
    .ft-rm-card--l .ft-rm-meta, .ft-rm-card--r .ft-rm-meta { justify-content: flex-start; }
    .ft-rm-content { padding: 13px 16px; }
}

/* ── فوتر عمومی شبیه تکنولایف (تم Rail724) ── */
.site-footer {
    background: linear-gradient(180deg, #050810 0%, #03060d 100%);
    border-top: 1px solid rgba(212, 160, 23, 0.16);
    margin-top: 64px;
    color: #e2e8f0;
    font-family: var(--font-sans);
}
.sf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(28px, 5vw, 48px) 0 0;
    flex-wrap: wrap;
}
.sf-brand {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
}
.sf-brand-logo {
    width: clamp(52px, 8vw, 64px);
    height: clamp(52px, 8vw, 64px);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.2));
}
.sf-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sf-brand-mark {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 900;
    line-height: 1.1;
}
.sf-brand-mark span { color: var(--blue-light, #60a5fa); }
.sf-brand-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.01em;
}
.sf-scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.sf-scroll-top:hover {
    background: #f8fafc;
    border-color: rgba(212, 160, 23, 0.45);
}
.sf-scroll-top i { color: var(--gold-dark, #b8860b); font-size: 14px; }

.sf-cols {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    padding: clamp(28px, 4vw, 40px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 28px;
}
.sf-col-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.sf-col a, .sf-col span.sf-muted {
    display: block;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.5;
}
.sf-col a:hover { color: var(--gold); }

.sf-contact {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sf-contact-title {
    font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 14px;
}
.sf-contact-row {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: 14px; margin-bottom: 10px; color: #e2e8f0;
}
.sf-contact-row a {
    color: #e2e8f0; text-decoration: none; direction: ltr;
    unicode-bidi: plaintext;
}
.sf-contact-row a:hover { color: var(--gold); }
.sf-contact-ways {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.sf-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 600;
}
.sf-chip:hover { border-color: rgba(212,160,23,0.35); color: var(--gold); }
.sf-chip i { color: var(--gold); }

.sf-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.sf-licenses {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.sf-licenses-title {
    font-size: 15px;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}
.sf-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    width: 100%;
}
.sf-trust img { height: 112px; width: auto; border: 0; }
#zibal { display: inline-flex; align-items: center; line-height: 0; }
#zibal img { height: 112px !important; width: auto !important; border: 0; }
#zarinpal { display: inline-flex; align-items: center; line-height: 0; margin: 0; }
#zarinpal img { height: 112px !important; width: auto !important; border: 0; }
.sf-emalls {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}
.sf-emalls img {
    height: 112px;
    width: auto;
    margin: 0;
    border: 0;
    cursor: pointer;
}
.sf-permit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 112px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    line-height: 0;
}
.sf-permit img {
    height: 96px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
}
.sf-copy {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

@media (max-width: 1100px) {
    .sf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .sf-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
        align-items: center;
        gap: 12px 14px;
        max-width: 560px;
        margin-inline: auto;
    }
    .sf-trust > * { min-width: 0; max-width: 100%; }
    .sf-trust img { height: 88px; max-width: 100%; object-fit: contain; }
    #zibal img { height: 88px !important; max-width: 100% !important; }
    #zarinpal img { height: 88px !important; max-width: 100% !important; }
    .sf-emalls img { height: 88px; }
    .sf-permit {
        width: 100%;
        height: 88px;
        padding: 6px 8px;
    }
    .sf-permit img { height: 76px; max-width: 100%; }
}
@media (max-width: 720px) {
    .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
    .sf-contact { grid-template-columns: 1fr; }
    .sf-trust {
        max-width: 420px;
        gap: 10px 12px;
    }
    .sf-trust img { height: 72px; }
    #zibal img { height: 72px !important; }
    #zarinpal img { height: 72px !important; }
    .sf-emalls img { height: 72px; }
    .sf-permit { height: 72px; padding: 5px 6px; }
    .sf-permit img { height: 62px; }
    .sf-licenses-title { font-size: 14px; }
}
@media (max-width: 420px) {
    .sf-cols { grid-template-columns: 1fr 1fr; }
    .sf-scroll-top { width: 100%; }
    .sf-trust { max-width: 340px; gap: 8px 10px; }
}

/* ── دکمه شناور بازگشت به بالا (سمت چپ — بدون متن) ── */
.ft-float-top {
    position: fixed;
    left: 20px;
    bottom: 28px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(245, 197, 24, 0.45);
    background: linear-gradient(145deg, rgba(26, 19, 6, 0.96) 0%, rgba(10, 14, 24, 0.94) 100%);
    color: #f5c518;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 0 1px rgba(212, 160, 23, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ft-float-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.ft-float-top:hover {
    border-color: rgba(245, 197, 24, 0.75);
    color: #ffe066;
    box-shadow:
        0 0 0 1px rgba(212, 160, 23, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(212, 160, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ft-float-top:active {
    transform: translateY(0) scale(0.96);
}
.ft-float-top i {
    line-height: 1;
    margin-top: -1px;
}
@media (prefers-reduced-motion: reduce) {
    .ft-float-top { transition: opacity 0.15s linear; }
    .ft-float-top:active { transform: none; }
}
@media (max-width: 560px) {
    .ft-float-top {
        left: 14px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}
