@import url("/assets/css/fonts.css");

:root {
    --tg-portal-font-family: "DanaFaNum", "Dana", "IRANYekanFaNum", "IRANYekan", "IRANSansFaNum", "IRANSans", Tahoma, Arial, sans-serif;

    --ti-font-family: var(--tg-portal-font-family);
    --tod-font-family: var(--tg-portal-font-family);
    --tc-font: var(--tg-portal-font-family);
    --taban-profile-font: var(--tg-portal-font-family);
    --ts-font: var(--tg-portal-font-family);
    --tp-font: var(--tg-portal-font-family);
    --tpr-font: var(--tg-portal-font-family);
    --to-font: var(--tg-portal-font-family);
    --to-font-primary: var(--tg-portal-font-family);
    --to-font-heading: var(--tg-portal-font-family);
    --to-font-number: var(--tg-portal-font-family);
    --to-font-standard: var(--tg-portal-font-family);
    --to-font-classic: var(--tg-portal-font-family);
    --to-font-display: var(--tg-portal-font-family);

    --tg-footer-primary: #ff6600;
    --tg-footer-primary-hover: #e85d00;
    --tg-footer-primary-soft: #fff1e8;
    --tg-footer-accent: #f97316;
    --tg-footer-bg: #ffffff;
    --tg-footer-bg-soft: #f7f7f7;
    --tg-footer-text: #2f2f2f;
    --tg-footer-text-soft: #555555;
    --tg-footer-muted: #797979;
    --tg-footer-border: #d9d9d9;
    --tg-footer-border-soft: rgba(217, 217, 217, 0.72);
    --tg-footer-success: #16845f;
    --tg-footer-danger: #c7352e;
    --tg-footer-shadow: 0 18px 44px rgba(47, 47, 47, 0.08);
    --tg-footer-radius-sm: 12px;
    --tg-footer-radius-md: 18px;
    --tg-footer-radius-lg: 26px;
    --tg-footer-transition: 180ms ease;
}

body.taban-dashboard-page,
body.ti-page,
body.to-orders-page,
body.taban-projects-page,
body.taban-payments-page,
body.taban-settings-page,
body.taban-contracts-page,
body.taban-payment-redirect-page,
body[data-profile-appearance],
.taban-dashboard-page,
.ti-page,
.to-orders-page,
.taban-projects-page,
.taban-payments-page,
.taban-settings-page,
.taban-contracts-page,
.taban-profile-page,
.taban-payment-redirect-page {
    font-family: var(--tg-portal-font-family) !important;
}

body.taban-dashboard-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.ti-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.to-orders-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.taban-projects-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.taban-payments-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.taban-settings-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.taban-contracts-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body[data-profile-appearance] :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]),
body.taban-payment-redirect-page :where(*):not(svg):not(path):not(pre):not(code):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]) {
    font-family: var(--tg-portal-font-family) !important;
}

body.taban-dashboard-page :where(button, input, select, textarea),
body.ti-page :where(button, input, select, textarea),
body.to-orders-page :where(button, input, select, textarea),
body.taban-projects-page :where(button, input, select, textarea),
body.taban-payments-page :where(button, input, select, textarea),
body.taban-settings-page :where(button, input, select, textarea),
body.taban-contracts-page :where(button, input, select, textarea),
body[data-profile-appearance] :where(button, input, select, textarea),
body.taban-payment-redirect-page :where(button, input, select, textarea) {
    font-family: inherit !important;
}

.tg-portal-footer {
    direction: rtl;
    width: min(100% - 32px, 1260px);
    margin: 34px auto 22px;
    color: var(--tg-footer-text);
    font-family: var(--tg-portal-font-family);
}

.tg-portal-footer,
.tg-portal-footer *,
.tg-portal-footer *::before,
.tg-portal-footer *::after,
.tg-enamad-modal,
.tg-enamad-modal *,
.tg-enamad-modal *::before,
.tg-enamad-modal *::after {
    box-sizing: border-box;
}

.tg-portal-footer__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(420px, 1.55fr) minmax(230px, 0.72fr);
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--tg-footer-border-soft);
    border-radius: var(--tg-footer-radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.94)),
        radial-gradient(circle at left top, rgba(255, 102, 0, 0.09), transparent 26rem);
    box-shadow: var(--tg-footer-shadow);
}

.tg-portal-footer__panel::before {
    content: "";
    position: absolute;
    inset: auto -90px -140px auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1), transparent 70%);
    pointer-events: none;
}

.tg-portal-footer__brand,
.tg-portal-footer__nav,
.tg-portal-footer__trust {
    position: relative;
    z-index: 1;
}

.tg-portal-footer__brand {
    display: grid;
    gap: 8px;
    min-width: 0;
    max-width: 360px;
}

.tg-portal-footer__eyebrow {
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid rgba(255, 102, 0, 0.16);
    border-radius: 999px;
    background: var(--tg-footer-primary-soft);
    color: var(--tg-footer-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.tg-portal-footer__title {
    margin: 0;
    color: var(--tg-footer-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.7;
}

.tg-portal-footer__text {
    margin: 0;
    max-width: 560px;
    color: var(--tg-footer-text-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 2;
}

.tg-portal-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.tg-portal-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--tg-footer-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--tg-footer-text-soft);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition:
        background var(--tg-footer-transition),
        border-color var(--tg-footer-transition),
        color var(--tg-footer-transition),
        transform var(--tg-footer-transition),
        box-shadow var(--tg-footer-transition);
}

.tg-portal-footer__link:hover,
.tg-portal-footer__link:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(255, 102, 0, 0.26);
    background: var(--tg-footer-primary-soft);
    color: var(--tg-footer-primary);
    box-shadow: 0 10px 22px rgba(255, 102, 0, 0.08);
}

.tg-portal-footer__link[href^="https://t.me/"] {
    grid-column: 1 / -1;
    justify-content: center;
    border-color: rgba(255, 102, 0, 0.24);
    background: var(--tg-footer-primary-soft);
    color: var(--tg-footer-primary);
    font-weight: 950;
    direction: ltr;
    unicode-bidi: plaintext;
}

.tg-portal-footer__link[href^="https://t.me/"]:hover,
.tg-portal-footer__link[href^="https://t.me/"]:focus-visible {
    border-color: rgba(255, 102, 0, 0.34);
    background: #fff7ed;
    color: var(--tg-footer-primary-hover);
}

.tg-portal-footer__trust {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.tg-portal-footer__trust-text {
    display: grid;
    gap: 3px;
    min-width: 0;
    text-align: left;
}

.tg-portal-footer__trust-text strong {
    color: var(--tg-footer-text);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.7;
}

.tg-portal-footer__trust-text span {
    color: var(--tg-footer-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
}

.tg-portal-footer__enamad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    min-width: 74px;
    height: 74px;
    padding: 8px;
    border: 1px solid rgba(255, 102, 0, 0.18);
    border-radius: var(--tg-footer-radius-md);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(47, 47, 47, 0.07);
    cursor: pointer;
    transition:
        transform var(--tg-footer-transition),
        border-color var(--tg-footer-transition),
        box-shadow var(--tg-footer-transition);
}

.tg-portal-footer__enamad-button:hover,
.tg-portal-footer__enamad-button:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(255, 102, 0, 0.32);
    box-shadow: 0 16px 34px rgba(255, 102, 0, 0.13);
}

.tg-portal-footer__enamad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tg-portal-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 6px 0;
    color: var(--tg-footer-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
}

.tg-portal-footer__bottom span {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.tg-portal-footer__bottom span:last-child {
    justify-self: end;
    text-align: left;
}

.tg-portal-footer__bottom span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tg-footer-primary);
}

.tg-enamad-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    direction: rtl;
    font-family: var(--tg-portal-font-family);
}

.tg-enamad-modal.is-active {
    display: block;
}

.tg-enamad-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tg-enamad-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(360px, 72vh);
    width: min(100% - 32px, 760px);
    max-height: calc(100vh - 38px);
    margin: 19px auto;
    overflow: hidden;
    border: 1px solid rgba(217, 217, 217, 0.72);
    border-radius: var(--tg-footer-radius-lg);
    background: var(--tg-footer-bg);
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.28);
}

.tg-enamad-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--tg-footer-border);
    background:
        linear-gradient(135deg, #ffffff, #fff7ed),
        radial-gradient(circle at left top, rgba(255, 102, 0, 0.1), transparent 22rem);
}

.tg-enamad-modal__title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tg-enamad-modal__title strong {
    color: var(--tg-footer-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.7;
}

.tg-enamad-modal__title span {
    color: var(--tg-footer-text-soft);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.7;
}

.tg-enamad-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 1px solid rgba(199, 53, 46, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tg-footer-danger);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--tg-footer-transition),
        color var(--tg-footer-transition),
        transform var(--tg-footer-transition),
        border-color var(--tg-footer-transition);
}

.tg-enamad-modal__close:hover,
.tg-enamad-modal__close:focus-visible {
    outline: none;
    transform: rotate(90deg);
    border-color: rgba(199, 53, 46, 0.26);
    background: #fdebea;
    color: var(--tg-footer-danger);
}

.tg-enamad-modal__body {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.tg-enamad-modal__loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 102, 0, 0.08), transparent 24rem),
        #ffffff;
    color: var(--tg-footer-text-soft);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.9;
}

.tg-enamad-modal__loader::before {
    content: "";
    width: 34px;
    height: 34px;
    border: 3px solid var(--tg-footer-primary-soft);
    border-top-color: var(--tg-footer-primary);
    border-radius: 50%;
    animation: tgFooterSpin 780ms linear infinite;
}

.tg-enamad-modal__frame {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.tg-enamad-modal.is-loaded .tg-enamad-modal__loader {
    display: none;
}

body.tg-enamad-modal-open {
    overflow: hidden;
}

@keyframes tgFooterSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1180px) {
    .tg-portal-footer__panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tg-portal-footer__brand {
        max-width: none;
    }

    .tg-portal-footer__nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .tg-portal-footer__trust {
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid var(--tg-footer-border);
    }

    .tg-portal-footer__trust-text {
        text-align: right;
    }
}

@media (max-width: 760px) {
    .tg-portal-footer {
        width: min(100% - 22px, 100%);
        margin: 24px auto 16px;
    }

    .tg-portal-footer__panel {
        gap: 18px;
        padding: 18px;
        border-radius: var(--tg-footer-radius-md);
    }

    .tg-portal-footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tg-portal-footer__link[href^="https://t.me/"] {
        grid-column: 1 / -1;
    }

    .tg-portal-footer__link {
        width: 100%;
    }

    .tg-portal-footer__bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .tg-portal-footer__bottom span:last-child {
        justify-self: stretch;
        text-align: right;
    }

    .tg-enamad-modal__dialog {
        grid-template-rows: auto minmax(320px, 76vh);
        width: min(100% - 18px, 100%);
        margin: 9px auto;
        border-radius: var(--tg-footer-radius-md);
    }
}

@media (max-width: 520px) {
    .tg-portal-footer__panel {
        padding: 16px;
    }

    .tg-portal-footer__nav {
        grid-template-columns: 1fr;
    }

    .tg-portal-footer__trust {
        align-items: flex-start;
        flex-direction: column;
    }

    .tg-portal-footer__enamad-button {
        width: 88px;
        min-width: 88px;
        height: 88px;
    }

    .tg-enamad-modal__header {
        align-items: flex-start;
    }

    .tg-enamad-modal__dialog {
        grid-template-rows: auto minmax(320px, 78vh);
    }
}

@media (hover: none) {
    .tg-portal-footer__link:hover,
    .tg-portal-footer__enamad-button:hover,
    .tg-enamad-modal__close:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-portal-footer__link,
    .tg-portal-footer__enamad-button,
    .tg-enamad-modal__close {
        transition: none;
    }

    .tg-enamad-modal__loader::before {
        animation: none;
    }
}

@media print {
    .tg-portal-footer,
    .tg-enamad-modal {
        display: none !important;
    }
}