@font-face {
    font-family: 'TdYekanBakh';
    src: url('/fonts/YekanBakh-Light.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdYekanBakh';
    src: url('/fonts/YekanBakhFaNum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdYekanBakh';
    src: url('/fonts/YekanBakhFaNum-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdVazirmatn';
    src: url('/fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdVazirmatn';
    src: url('/fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdVazirmatn';
    src: url('/fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TdVazirmatn';
    src: url('/fonts/Vazirmatn-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --td-font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --td-font-heading: var(--td-font-body);
    --td-font-ui: var(--td-font-body);
}

html, body {
    font-family: var(--td-font-body);
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0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S4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.td-site-main {
    min-height: 100vh;
}

html[lang^="fa"] {
    --td-font-body: 'TdVazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --td-font-heading: 'TdYekanBakh', 'TdVazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --td-font-ui: 'TdYekanBakh', 'TdVazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

html[lang^="fa"] body {
    font-size: 16px;
    line-height: 1.8;
}

html[lang^="fa"] p,
html[lang^="fa"] th,
html[lang^="fa"] td,
html[lang^="fa"] li,
html[lang^="fa"] input,
html[lang^="fa"] textarea,
html[lang^="fa"] select,
html[lang^="fa"] label,
html[lang^="fa"] blockquote,
html[lang^="fa"] .td-release-accordion__content p,
html[lang^="fa"] .copyright {
    font-family: var(--td-font-body);
    letter-spacing: normal;
    line-height: 1.8;
}

html[lang^="fa"] a,
html[lang^="fa"] button,
html[lang^="fa"] .btn_theme,
html[lang^="fa"] .main-menu .navbar-nav .nav-item .nav-link,
html[lang^="fa"] .main-menu .dropdown-menu .dropdown-item,
html[lang^="fa"] .custom-nevbar__nav .nav-link,
html[lang^="fa"] .section__header-sub-title,
html[lang^="fa"] .section__content-sub-title,
html[lang^="fa"] .headingFour,
html[lang^="fa"] .headingFive,
html[lang^="fa"] .headingSix,
html[lang^="fa"] .card__title,
html[lang^="fa"] .td-release-accordion__version,
html[lang^="fa"] .td-release-list-title,
html[lang^="fa"] .mud-typography,
html[lang^="fa"] .mud-button-label,
html[lang^="fa"] .mud-input-input,
html[lang^="fa"] .mud-input-slot,
html[lang^="fa"] .mud-select-item,
html[lang^="fa"] .mud-chip,
html[lang^="fa"] .mud-table,
html[lang^="fa"] .mud-list,
html[lang^="fa"] .mud-popover,
html[lang^="fa"] .cot-net-position-chart svg {
    font-family: var(--td-font-ui);
    letter-spacing: normal;
}

html[lang^="fa"] h1,
html[lang^="fa"] h2,
html[lang^="fa"] h3,
html[lang^="fa"] h4,
html[lang^="fa"] h5,
html[lang^="fa"] h6,
html[lang^="fa"] .cmn-display,
html[lang^="fa"] .headingTwo,
html[lang^="fa"] .headingThree,
html[lang^="fa"] .section__header-title,
html[lang^="fa"] .section__content-title,
html[lang^="fa"] .banner__content-title,
html[lang^="fa"] .td-release-accordion__content h3 {
    font-family: var(--td-font-heading);
    letter-spacing: normal;
}

html[lang^="fa"] h1,
html[lang^="fa"] .cmn-display,
html[lang^="fa"] .section__content-title,
html[lang^="fa"] .banner__content-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.55;
}

html[lang^="fa"] h2,
html[lang^="fa"] .headingTwo,
html[lang^="fa"] .section__header-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.65;
}

html[lang^="fa"] h3,
html[lang^="fa"] .headingThree,
html[lang^="fa"] .td-release-accordion__content h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.65;
}

html[lang^="fa"] h4,
html[lang^="fa"] .card__title,
html[lang^="fa"] .td-release-list-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
}

html[lang^="fa"] .headingFour,
html[lang^="fa"] .section__header-sub-title,
html[lang^="fa"] .section__content-sub-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

html[lang^="fa"] h5,
html[lang^="fa"] .headingFive,
html[lang^="fa"] .btn_theme,
html[lang^="fa"] .main-menu .navbar-nav .nav-item .nav-link,
html[lang^="fa"] .main-menu .dropdown-menu .dropdown-item,
html[lang^="fa"] .custom-nevbar__nav .nav-link,
html[lang^="fa"] .td-release-accordion__version,
html[lang^="fa"] .mud-button-label,
html[lang^="fa"] .mud-select-item {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
}

html[lang^="fa"] h6,
html[lang^="fa"] .headingSix,
html[lang^="fa"] .td-release-accordion__date,
html[lang^="fa"] .cot-net-position-axis-label {
    font-size: 14px;
    line-height: 1.8;
}

html[lang^="fa"] .cot-net-position-axis-label {
    font-family: var(--td-font-ui);
}

html[lang^="fa"] .td-release-accordion__date {
    font-family: var(--td-font-body);
}

html[lang^="fa"] .td-navbar-brand__eyebrow,
html[lang^="fa"] .td-navbar-brand__name {
    font-family: "Jost", sans-serif;
}

@media (max-width: 1199.98px) {
    html[lang^="fa"] h1,
    html[lang^="fa"] .cmn-display,
    html[lang^="fa"] .section__content-title,
    html[lang^="fa"] .banner__content-title {
        font-size: 36px;
    }

    html[lang^="fa"] h2,
    html[lang^="fa"] .headingTwo,
    html[lang^="fa"] .section__header-title {
        font-size: 28px;
    }

    html[lang^="fa"] h3,
    html[lang^="fa"] .headingThree,
    html[lang^="fa"] .td-release-accordion__content h3 {
        font-size: 24px;
    }

    html[lang^="fa"] h4,
    html[lang^="fa"] .card__title,
    html[lang^="fa"] .td-release-list-title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    html[lang^="fa"] h1,
    html[lang^="fa"] .cmn-display,
    html[lang^="fa"] .section__content-title,
    html[lang^="fa"] .banner__content-title {
        font-size: 30px;
    }

    html[lang^="fa"] h2,
    html[lang^="fa"] .headingTwo,
    html[lang^="fa"] .section__header-title {
        font-size: 24px;
    }

    html[lang^="fa"] h3,
    html[lang^="fa"] .headingThree,
    html[lang^="fa"] .td-release-accordion__content h3 {
        font-size: 20px;
    }

    html[lang^="fa"] h4,
    html[lang^="fa"] .card__title,
    html[lang^="fa"] .td-release-list-title {
        font-size: 18px;
    }

    html[lang^="fa"] .headingFour,
    html[lang^="fa"] .section__header-sub-title,
    html[lang^="fa"] .section__content-sub-title,
    html[lang^="fa"] h5,
    html[lang^="fa"] .headingFive,
    html[lang^="fa"] .btn_theme,
    html[lang^="fa"] .main-menu .navbar-nav .nav-item .nav-link,
    html[lang^="fa"] .main-menu .dropdown-menu .dropdown-item,
    html[lang^="fa"] .custom-nevbar__nav .nav-link {
        font-size: 15px;
    }
}

.td-site-header {
    position: relative;
    z-index: 20;
}

.td-language-box,
.td-language-box-mobile {
    z-index: 1;
    background-color: #fff;
    border: 1px solid #dfe0e4;
    border-radius: 999px;
}

.td-language-box {
    display: inline-flex;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    width: auto;
}

.td-language-box-mobile {
    gap: 10px;
    max-width: 180px;
    min-height: 48px;
    padding: 0 14px;
    width: 100%;
}

.td-language-box .icon,
.td-language-box-mobile .icon {
    position: static;
    color: #404a60;
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.td-language-select {
    color: #222e48;
    min-width: 0;
    width: auto;
}

.td-language-nav-item {
    margin-left: 8px;
}

.td-language-select ::deep .mud-input-input {
    color: #222e48;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0;
    width: auto;
}

.td-language-select ::deep .mud-select-input {
    color: #222e48;
    width: auto;
}

.td-language-select ::deep .mud-input-control,
.td-language-select ::deep .mud-input-control-root,
.td-language-select ::deep .mud-input,
.td-language-select ::deep .mud-select {
    margin: 0;
    width: auto;
}

.td-language-select ::deep .mud-input-slot {
    align-items: center;
    min-width: 0;
    width: auto;
}

.td-language-select ::deep .mud-icon-root {
    color: #222e48;
}

.td-language-select ::deep .mud-input-adornment-end {
    margin-inline-start: 4px;
}

.td-language-select ::deep .mud-input-underline:before,
.td-language-select ::deep .mud-input-underline:after {
    display: none;
}

.td-language-box-mobile .td-language-select-mobile {
    width: 100%;
}

.td-card-fill {
    height: 100%;
}

.td-inner-hero {
    padding: 40px 0 40px;
    background: linear-gradient(180deg, rgba(19, 47, 89, 0.08) 0%, rgba(19, 47, 89, 0.02) 100%);
}

.td-inner-hero .section__content {
    max-width: 860px;
    margin: 0 auto;
}

.td-inner-hero .section__content-sub-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.td-inner-hero .section__content-title {
    margin-bottom: 20px;
}

.td-cot-hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.td-cot-model-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(19, 47, 89, 0.08);
    box-shadow: inset 0 0 0 1px rgba(19, 47, 89, 0.08);
}

.td-cot-model-switch__button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #23315d;
    cursor: pointer;
    font: inherit;
    font-size: clamp(1.125rem, 1.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
    padding: 12px 20px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.td-cot-model-switch__button:hover {
    background: rgba(255, 255, 255, 0.72);
}

.td-cot-model-switch__button--active {
    background: #ffffff;
    color: #132f59;
    box-shadow: 0 10px 24px rgba(19, 47, 89, 0.12);
}

.td-cot-hero-instrument {
    display: inline-block;
}

.td-cot-section {
    padding-top: 0;
}

.td-cot-panel {
    position: relative;
    margin-top: 3px;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(19, 47, 89, 0.12);
}

.td-cot-panel .mud-paper {
    border-radius: 18px;
}

.td-cot-panel .mud-table-container,
.td-cot-panel table {
    width: 100%;
}

.td-cot-panel .mud-chip {
    font-weight: 600;
}

.td-cot-panel .mud-link {
    font-weight: 600;
}

.download-app .btn-group .btn_theme {
    justify-content: center;
    min-width: 180px;
}

.td-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.td-auth-action {
    min-width: 132px;
    justify-content: center;
}

.td-auth-action--secondary {
    background: #fff;
    color: #15305a;
    box-shadow: inset 0 0 0 1px rgba(21, 48, 90, 0.14);
}

.td-auth-action--secondary span {
    background-color: #eef4ff;
}

.td-auth-action--secondary:hover,
.td-auth-action--secondary:focus {
    border-color: #2660b5;
    color: #15305a;
    box-shadow: inset 0 0 0 1px rgba(38, 96, 181, 0.22);
}

.td-auth-action.btn_theme_active,
.td-auth-action.btn_theme_active:hover,
.td-auth-action.btn_theme_active:focus {
    color: #fff;
}

.td-auth-action.btn_theme_active span {
    background-color: #1d4f97;
}

.td-user-menu {
    display: inline-flex;
}

.td-user-menu__trigger {
    display: inline-flex;
    align-items: center;
    min-width: 220px;
    min-height: 56px;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    border: 1px solid #3c72c4;
    border-radius: 28px;
    color: #15305a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.td-user-menu__trigger:hover,
.td-user-menu__trigger:focus {
    color: #15305a;
    background: #fff;
    border-color: #2660b5;
    box-shadow: 0 0 0 3px rgba(38, 96, 181, 0.08);
}

.td-user-menu__trigger .td-user-menu__welcome,
.td-user-menu__trigger .td-user-menu__chevron {
    color: #15305a;
    font-weight: 600;
}

.td-user-menu__welcome {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.td-user-menu__chevron {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.td-user-menu .mud-menu-item {
    font-weight: 600;
}

.td-login-overview {
    border-radius: 28px;
    background: linear-gradient(145deg, #0f2642 0%, #1c416e 100%);
    color: #f4f8ff;
}

.td-login-panel {
    border-radius: 28px;
}

.td-login-panel__summary {
    border-radius: 22px;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.td-login-panel__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.td-login-role-grid {
    display: grid;
    gap: 16px;
}

.td-login-role-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #f4f8ff;
}

.td-portal-dashboard {
    display: grid;
    gap: 24px;
}

.td-portal-dashboard__hero {
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 20px 48px rgba(17, 39, 67, 0.08);
}

.td-portal-dashboard__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.td-portal-dashboard__card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 39, 67, 0.08);
}

.td-portal-dashboard__card--trading {
    background: linear-gradient(180deg, #fffdf9 0%, #fff4e7 100%);
}

.td-portal-dashboard__queue {
    display: grid;
    gap: 16px;
}

.td-portal-dashboard__queue-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(14, 92, 201, 0.06);
}

.td-portal-dashboard__card--trading .td-portal-dashboard__queue-item,
.td-portal-dashboard__card.td-portal-dashboard__card--trading .td-portal-dashboard__queue-item {
    background: rgba(217, 106, 31, 0.08);
}

.testimonials .card--custom {
    background-position: top right;
}

@media (max-width: 991.98px) {
    .td-inner-hero {
        padding: 150px 0 80px;
    }

    .td-auth-actions {
        display: none;
    }

    .td-user-menu {
        display: none;
    }

    .td-login-panel__actions > * {
        width: 100%;
    }

    .td-cot-panel {
        margin-top: -28px;
        padding: 20px;
        border-radius: 20px;
    }
}

@media (max-width: 1399.98px) {
    .td-language-nav-item {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .td-inner-hero {
        padding: 135px 0 72px;
    }

    .td-cot-model-switch {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .td-cot-model-switch__button {
        width: 100%;
    }

    .td-cot-panel {
        padding: 16px;
    }

    .download-app .btn-group {
        display: grid;
        gap: 16px;
    }
}
