﻿/* فونت اصلی برنامه: B Koodak
   هر دو وزن از فایل Bold ساخته می‌شوند، چون فایل معمولی در اندازه‌ی کوچک تار نمایش داده می‌شود */
@font-face {
    font-family: 'BKoodak';
    src: url('/fonts/BKOODKBD.woff2') format('woff2'), url('/fonts/BKOODKBD.TTF') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font: 'BKoodak', Tahoma, sans-serif;
}

html, body, button, input, select, option, textarea, dialog {
    font-family: var(--font);
}

body {
    font-size: 16px;
}

input, select, textarea {
    font-size: 16px;
}

label,
button,
a {
    font-weight: 700;
}

/* پنجره‌ی تغییر رمز در مدیریت کاربران */
dialog.dlg {
    font-family: var(--font) !important;
}

/* ================= هدر و دکمه‌های داشبورد طرح‌ها ================= */
.fac-head {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    overflow: hidden;
}

    .fac-head .bar-top {
        height: 6px;
        background: #0b2a8a;
    }

    .fac-head .bar-bottom {
        height: 5px;
        background: #d6006e;
    }

    .fac-head .inner {
        position: relative;
        padding: 62px 14px 18px;
        text-align: center;
    }

.home-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, #6ec1ff, #1a5fd0 70%);
    border: 2px solid #cfe6ff;
    box-shadow: 0 2px 8px rgba(26,95,208,.45);
}

    .home-btn svg {
        width: 26px;
        height: 26px;
    }

.back-btn {
    position: absolute;
    top: 16px;
    left: 12px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #eef2f7;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
}

    .back-btn:hover {
        background: #e1e7ef;
    }

.bank-name {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #b0125e;
}

.fac-title {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.7;
    font-weight: bold;
    color: #0b2a8a;
}

/* بنر مشترک صفحات تسهیلاتی */
.fac-banner {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    background: #0b2a8a;
}

.fac-banner-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: fill;
    background: #fff;
}

.fac-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 58px 80px 20px;
    background: linear-gradient(180deg, rgba(7,25,82,.18), rgba(7,25,82,.78));
    text-align: center;
}

.fac-banner-overlay .bank-name,
.fac-banner-overlay .fac-title {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.fac-banner-overlay .fac-title {
    font-size: 20px;
}

.fac-banner-overlay .home-btn {
    background: rgba(11,42,138,.82);
    border-color: rgba(255,255,255,.7);
}

.fac-banner-overlay .back-btn {
    background: rgba(255,255,255,.9);
    color: #0b2a8a;
}

@media (max-width: 520px) {
    .fac-banner,
    .fac-banner-image {
        min-height: 145px;
        height: 145px;
    }

    .fac-banner-overlay {
        padding: 48px 65px 14px;
    }

    .fac-banner-overlay .fac-title {
        font-size: 16px;
    }
}

.section-title {
    margin: 18px auto 16px;
    max-width: 300px;
    padding: 12px 10px;
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    font-weight: bold;
    background: #ffc000;
    border: 1px solid #8a6a00;
    border-radius: 14px;
    color: #1f2937;
}

.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.plan {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 8px 14px;
    border: 0;
    border-radius: 50%;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    color: #111;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 3px 6px rgba(255,255,255,.55), 0 2px 5px rgba(0,0,0,.18);
    transition: transform .12s;
}

    .plan:active {
        transform: scale(.96);
    }

    .plan.last {
        grid-column: 1 / -1;
        justify-self: center;
        width: 70%;
    }

/* ================= ردیف آیتم + آیکون بخشنامه ================= */
.items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .item-row .plan {
        flex: 1;
        min-height: 60px;
        padding: 8px 26px;
        font-size: 14px;
    }

.pdf-btn {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: transform .12s, box-shadow .12s;
}

    .pdf-btn:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }

    .pdf-btn:active {
        transform: scale(.97);
    }

    .pdf-btn .pdf-ico {
        width: 44px;
        height: 52px;
        margin: 8px 0 6px;
    }

    .pdf-btn .cap {
        width: 100%;
        padding: 5px 4px;
        background: #ffc000;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
        color: #1f2937;
    }

.panel {
    margin-top: 16px;
    padding: 28px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    text-align: center;
    color: var(--muted, #6b7280);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    z-index: 50;
    max-width: 90%;
    text-align: center;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
/* ================= اسپلش، فوتر، زنگ اعلان ================= */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity .45s;
}

    .splash.hide {
        opacity: 0;
    }

    .splash .splash-logo {
        width: 130px;
        height: auto;
    }

    .splash .splash-title {
        font-size: 19px;
        font-weight: 700;
        color: #b0125e;
        text-align: center;
        padding: 0 26px;
        line-height: 1.9;
    }

    .splash .splash-bar {
        width: 140px;
        height: 5px;
        border-radius: 4px;
        background: #eef2f7;
        overflow: hidden;
    }

        .splash .splash-bar span {
            display: block;
            width: 40%;
            height: 100%;
            border-radius: 4px;
            background: #0b2a8a;
            animation: splashSlide 1.1s ease-in-out infinite;
        }

@keyframes splashSlide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(310%);
    }
}

.credit {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 16px 26px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.credit-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8px;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    pointer-events: none;
}

.bell {
    position: relative;
    border: 0;
    background: #eef2f7;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

    .bell .bell-badge {
        position: absolute;
        top: -4px;
        left: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 10px;
        background: #c62828;
        color: #fff;
        font-size: 11px;
        line-height: 18px;
        text-align: center;
    }