.menu .app-brand.demo {
    height: 64px;
    margin-top: 12px;
}

.app-brand-logo.demo svg {
    width: 22px;
    height: 38px;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.w-100px {
    width: 100px !important;
}

.mw-100px {
    max-width: 100px !important;
}

.w-150px {
    width: 150px !important;
}

.mw-150px {
    max-width: 150px !important;
}

.w-180px {
    width: 180px !important;
}

.w-120px {
    width: 120px !important;
}

.w-200px {
    width: 200px !important;
}

.w-220px {
    width: 220px !important;
}

.mw-220px {
    max-width: 220px !important;
}

.w-250px {
    width: 250px !important;
}

.w-300px {
    width: 300px !important;
}

.w-400px {
    width: 400px !important;
}

.w-500px {
    width: 500px !important;
}

.h-100px {
    height: 100px !important;
}

.h-150px {
    height: 100px !important;
}

.h-120px {
    height: 120px !important;
}

.h-200px {
    height: 200px !important;
}

.h-250px {
    height: 250px !important;
}

.h-300px {
    height: 300px !important;
}

.h-400px {
    height: 400px !important;
}

.h-500px {
    height: 500px !important;
}


.tab-pane:not(.active) {
    display: none;
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}

.bi.rotate-90::before {
    transform: rotate(90deg);
}

.bi.rotate-180::before {
    transform: rotate(180deg);
}

.bi.rotate-270::before {
    transform: rotate(270deg);
}

.d-inline {
    display: inline !important;
}

.btn-facebook {
    color: #fff;
    background-color: #4267b2;
    border-color: rgba(0,0,0,0.2);
}

.btn-twitter {
    color: #fff;
    background-color: #1da1f2;
    border-color: rgba(0,0,0,0.2);
}

.btn-google {
    color: #333333;
    background-color: #eeeeee;
    border-color: rgba(1,1,1,0.2);
}

.btn-social {
    position: relative;
    padding-left: 44px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .btn-social:hover {
        color: #eee;
    }

    .btn-social :first-child {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        padding: 7px;
        font-size: 1.4em;
        text-align: center;
        border-right: 1px solid rgba(0,0,0,0.2);
    }

.direction-rtl {
    direction: rtl !important;
}

.direction-ltr {
    direction: ltr !important;
}

.dir-rtl {
    direction: rtl !important;
}

.dir-ltr {
    direction: ltr !important;
}

.mt--2 {
    margin-top: -0.75rem !important;
}

.mt--3 {
    margin-top: -1rem !important;
}

/*div.dataTables_wrapper div.dataTables_filter {
    text-align: end !important;
}

@media (min-width: 576px) {
    div.dataTables_wrapper div.dataTables_filter {
        text-align: inherit !important;
    }
}

table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: start !important;
}*/

.h-90 {
    height: 90% !important;
}

.h-80 {
    height: 80% !important;
}

.h-70 {
    height: 70% !important;
}

dl.dl-horizontal dt, dd {
    display: inline;
}

dl.dl-horizontal dd:after {
    content: "\a";
    white-space: pre;
}

.bg-menu-theme.menu-horizontal {
    box-shadow: none !important;
}

.layout-menu-horizontal {
    z-index: 0 !important;
}

/* ——— Top navigation ——— */
.site-top-menu .menu-inner {
    flex-wrap: wrap;
    gap: 0.15rem;
}

.site-top-menu .menu-inner > .menu-item > .menu-link {
    border-radius: 0.5rem;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    padding-inline: 0.85rem !important;
    white-space: nowrap;
}

.site-top-menu .menu-inner > .menu-item > .menu-link > div {
    line-height: 1.35;
}

.site-top-menu .menu-icon {
    font-size: 1.25rem;
}

.site-top-menu .menu-inner > .menu-item.active > .menu-link,
.site-top-menu .menu-inner > .menu-item.open > .menu-link {
    background: rgba(105, 108, 255, 0.12);
}

.site-top-menu .menu-sub-enhanced {
    min-width: 16.5rem;
    padding: 0.45rem 0;
    border-radius: 0.65rem;
    box-shadow: 0 12px 32px rgba(67, 89, 113, 0.18);
}

.site-top-menu .menu-sub-enhanced > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    margin: 0.12rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-top-menu .menu-sub-icon {
    font-size: 1.15rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.site-top-menu .menu-sub-admin {
    min-width: 18rem;
}

.site-top-menu .menu-sub-enhanced .menu-header,
.site-top-menu .menu-sub-admin .menu-header {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    opacity: 0.65;
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.site-top-menu .menu-sub-enhanced .menu-divider {
    height: 1px;
    margin: 0.35rem 0.85rem;
    background: rgba(67, 89, 113, 0.14);
}

.theme-dark .site-top-menu .menu-sub-enhanced .menu-divider {
    background: rgba(255, 255, 255, 0.1);
}

.site-top-menu .menu-item-invest > .menu-link {
    font-weight: 600;
}

.site-top-menu .menu-item-invest.active > .menu-link,
.site-top-menu .menu-item-invest.open > .menu-link {
    background: rgba(40, 199, 111, 0.12);
    color: inherit;
}

.site-top-menu .menu-item-utility {
    margin-inline-start: 0.25rem;
}

.site-top-menu .menu-item.highlighted > .menu-link {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.14), rgba(105, 108, 255, 0.06));
    border: 1px solid rgba(105, 108, 255, 0.25);
}

.theme-dark .site-top-menu .menu-sub-enhanced {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1399.98px) {
    .site-top-menu .menu-inner > .menu-item > .menu-link {
        font-size: 0.875rem;
        padding-inline: 0.65rem !important;
    }
}

/* ——— Page toolbars (symbols / filters) ——— */
.page-toolbar {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.06) 0%, rgba(105, 108, 255, 0.02) 100%);
    border: 1px solid rgba(105, 108, 255, 0.14);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem 1.15rem;
    box-shadow: 0 4px 18px rgba(67, 89, 113, 0.06);
}

.page-toolbar-compact {
    padding: 0.65rem 1rem;
}

.page-toolbar-body-inline {
    margin: 0;
}

.page-toolbar-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #566a7f;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(105, 108, 255, 0.12);
}

.page-toolbar-title > .bx:first-child {
    font-size: 1.35rem;
    color: #696cff;
    align-self: center;
}

.page-toolbar-hint {
    font-size: 0.875rem;
    font-weight: 400;
    color: #697a8d;
    width: 100%;
    margin-top: 0.1rem;
}

.page-toolbar-title .page-toolbar-hint {
    width: auto;
    flex: 1 1 100%;
    margin-top: 0.15rem;
    padding-inline-start: 1.85rem;
}

.page-toolbar-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
}

.page-toolbar-actions .page-toolbar-body {
    align-items: flex-end;
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.toolbar-field-inline {
    flex-direction: column;
}

.toolbar-field-grow {
    flex: 1 1 280px;
    min-width: 240px;
}

.toolbar-field-symbol {
    flex: 1 1 360px;
    min-width: 260px;
    max-width: 100%;
}

.tech-scan-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.tech-scan-summary-card {
    appearance: none;
    border: 1px solid rgba(67, 89, 113, 0.16);
    background: #fff;
    border-radius: 0.65rem;
    padding: 0.55rem 0.9rem;
    min-width: 7.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tech-scan-summary-card:hover,
.tech-scan-summary-card.is-active {
    box-shadow: 0 4px 14px rgba(67, 89, 113, 0.1);
}

.tech-scan-summary-early {
    border-inline-start: 4px solid #71dd37;
}

.tech-scan-summary-confirmed {
    border-inline-start: 4px solid #28c76f;
}

.tech-scan-summary-conflict {
    border-inline-start: 4px solid #ff9f43;
}

.tech-scan-summary-label {
    font-size: 0.8125rem;
    color: #697a8d;
    font-weight: 600;
}

.tech-scan-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #566a7f;
    line-height: 1.2;
}

.tech-scan-summary-hint {
    font-size: 0.8125rem;
    margin-inline-start: auto;
}

.tech-scan-opportunity-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.tech-scan-opportunity-early {
    color: #28c76f;
    background: rgba(40, 199, 111, 0.1);
    border-color: rgba(40, 199, 111, 0.25);
}

.tech-scan-opportunity-confirmed {
    color: #198754;
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.28);
}

.tech-scan-opportunity-conflict {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.12);
    border-color: rgba(255, 159, 67, 0.28);
}

.tech-scan-opportunity-awaitalignment {
    color: #697a8d;
    background: rgba(105, 122, 141, 0.1);
    border-color: rgba(105, 122, 141, 0.22);
}

.tech-scan-opportunity-neutral {
    color: #a1acb8;
    background: rgba(161, 172, 184, 0.12);
    border-color: rgba(161, 172, 184, 0.2);
}

.tech-scan-align {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.tech-scan-align-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #d9dee3;
    border: 1px solid rgba(67, 89, 113, 0.2);
}

.tech-scan-align-bullish {
    background: #28c76f;
    border-color: #28c76f;
}

.tech-scan-align-bearish {
    background: #ea5455;
    border-color: #ea5455;
}

.tech-scan-align-dot.is-focus {
    width: 0.72rem;
    height: 0.72rem;
    box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.25);
}

.tech-scan-why-text {
    white-space: normal;
    max-width: 16rem;
    display: inline-block;
    font-size: 0.8125rem;
    color: #697a8d;
}

.theme-dark .tech-scan-summary-card {
    background: #2b2c40;
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .tech-scan-summary-value,
.theme-dark .tech-scan-summary-label {
    color: #d7d8ed;
}

.toolbar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #566a7f;
    margin: 0;
    white-space: nowrap;
}

.page-toolbar .bootstrap-select > .dropdown-toggle {
    min-height: 2.5rem;
    font-size: 0.9375rem;
}

.page-toolbar .bootstrap-select > .dropdown-toggle {
    border-radius: 0.5rem !important;
}

.toolbar-field-filter .bootstrap-select,
#page-toolbar-data-table-filters .bootstrap-select {
    min-width: 260px;
}

.toolbar-field-column-filter .bootstrap-select,
.toolbar-field-column-filter .form-control {
    min-width: 200px;
}

.toolbar-field-column-filter .form-control-sm {
    min-height: 2.5rem;
}

table.table-ajax thead tr.filters .data-filter-range {
    display: flex;
    gap: 0.25rem;
}

table.table-ajax thead tr.filters .data-filter-range .form-control {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

#page-toolbar-data-table-filters .btn-save-data-filter,
#page-toolbar-data-table-filters .btn-delete-data-filter {
    margin-inline-start: 0 !important;
}

.finance-selection-badge:not(:empty) {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    background: rgba(105, 108, 255, 0.1);
    color: #696cff;
    font-weight: 600;
}

.theme-dark .page-toolbar {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.12) 0%, rgba(24, 24, 36, 0.95) 100%);
    border-color: rgba(105, 108, 255, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.theme-dark .page-toolbar-title {
    color: #c8cdd8;
}

.theme-dark .page-toolbar-hint,
.theme-dark .toolbar-label {
    color: #a8b0c1;
}

/* ——— Chart page maximize mode ——— */
body.chart-page-maximized #news-ticker-band,
body.chart-page-maximized #price-ticker-band,
body.chart-page-maximized #market-news-ticker-band {
    display: none !important;
}

body.chart-page-maximized #chart-page-sidebar {
    display: none !important;
}

body.chart-page-maximized #chart-page-main {
    flex: 0 0 100%;
    max-width: 100%;
}

body.chart-page-maximized .page-toolbar-chart {
    padding: 0.5rem 0.85rem 0.65rem;
    margin-bottom: 0.65rem !important;
}

body.chart-page-maximized .page-toolbar-chart .page-toolbar-body {
    align-items: center;
    gap: 0.65rem 1rem;
}

body.chart-page-maximized .page-toolbar-chart .toolbar-field {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

body.chart-page-maximized .page-toolbar-chart .toolbar-field .toolbar-label.d-block {
    display: none !important;
}

body.chart-page-maximized #chart-container {
    margin-bottom: 0 !important;
}

/* ——— AnyChart drawing toolbar ——— */
.anychart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(105, 108, 255, 0.14);
    border-radius: 0.65rem;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 2px 10px rgba(67, 89, 113, 0.06);
}

.anychart-toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.anychart-tool-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.anychart-tool-btn.active {
    color: #fff;
    background: #696cff;
    border-color: #696cff;
}

.anychart-tool-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(105, 108, 255, 0.25);
}

.anychart-tool-btn.active i,
.anychart-tool-btn i {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
}

.anychart-annotation-settings {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    z-index: 1080;
    min-width: 14rem;
    padding: 0.75rem;
    border: 1px solid rgba(105, 108, 255, 0.18);
    border-radius: 0.65rem;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 8px 24px rgba(67, 89, 113, 0.18);
}

.anychart-annotation-settings-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.anychart-annotation-settings .anychart-indicator-param {
    margin-bottom: 0.5rem;
}

.anychart-annotation-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.anychart-indicators-menu {
    min-width: 15rem;
    max-height: 22rem;
    overflow-y: auto;
}

.anychart-indicator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    cursor: default;
    margin-bottom: 0;
    padding: 0.4rem 0.85rem;
}

.anychart-indicator-row + .anychart-indicator-row {
    border-top: 1px solid rgba(67, 89, 113, 0.06);
}

.anychart-indicator-check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.anychart-indicator-settings-btn {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    line-height: 1;
    color: #697a8d;
    position: relative;
    z-index: 2;
}

.anychart-indicator-settings-btn:hover {
    color: #696cff;
}

.anychart-indicator-settings-panel {
    padding: 0.55rem 0.75rem 0.7rem;
    border-top: 1px solid rgba(67, 89, 113, 0.08);
    background: rgba(105, 108, 255, 0.04);
}

.anychart-indicator-param {
    display: grid;
    grid-template-columns: 1fr 5.5rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.anychart-indicator-param .form-label {
    font-size: 0.8125rem;
    color: #697a8d;
}

.anychart-indicator-settings-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.anychart-indicator-item:active,
.anychart-indicator-item:hover {
    background-color: rgba(105, 108, 255, 0.08);
}

.theme-dark .anychart-indicator-settings-panel {
    border-top-color: rgba(105, 108, 255, 0.18);
    background: rgba(105, 108, 255, 0.08);
}

.theme-dark .anychart-indicator-settings-btn {
    color: #a8b0c1;
}

.theme-dark .anychart-toolbar {
    border-color: rgba(105, 108, 255, 0.22);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.chart-page-maximized .anychart-toolbar {
    margin-bottom: 0.5rem !important;
}

.anychart-chart-type-menu {
    min-width: 12rem;
}

.anychart-chart-type-item.active {
    background: rgba(105, 108, 255, 0.12);
    color: var(--bs-primary, #696cff);
    font-weight: 600;
}

/* ——— Finance section nav ——— */
.finance-nav {
    background: var(--bs-card-bg, #fff);
    border: 1px solid rgba(105, 108, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(67, 89, 113, 0.06);
}

.finance-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.finance-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #697a8d;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.finance-nav-link .bx {
    font-size: 1.1rem;
}

.finance-nav-link:hover {
    color: #696cff;
    background: rgba(105, 108, 255, 0.08);
}

.finance-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #696cff, #5a5de8);
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.35);
}

.theme-dark .finance-nav {
    background: #181824;
    border-color: rgba(105, 108, 255, 0.2);
}

.theme-dark .finance-nav-link {
    color: #b0b8c1;
}

.theme-dark .finance-nav-link.is-active {
    color: #fff;
}

@media (max-width: 767.98px) {
    .page-toolbar-body {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-nav-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .finance-nav-link {
        flex-shrink: 0;
    }
}

.language-select {
    min-width: 100px !important;
}

.live-data {
    transition: color 0.5s;
    transition: font-weight 0.5s;
}

.live-data.text-normal {
    color: inherit !important;
}

    .live-data.text-green-flash {
        color: #149110 !important;
        font-weight: bold;
    }

    .live-data.text-red-flash {
        color: #ff002b !important;
        font-weight: bold;
    }

   .theme-dark .live-data.text-red-flash {
        color: #f23645 !important;
        font-weight: bold;
    }

    .live-data > img {
        margin-top: -4px !important;
    }

.support-control {
    display: none !important;
}

.sidebar-box {
    max-height: 320px;
    position: relative;
    overflow: hidden;
}

    .sidebar-box .read-more {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 10px 0;
        background-image: linear-gradient(to bottom, transparent, white);
    }

.theme-dark .sidebar-box .read-more {
    background-image: linear-gradient(to bottom, transparent, #101018) !important;
}

.error {
    color: crimson;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.transparent {
    opacity: 0 !important;
}

select#culture {
    text-align: center !important;
}

.tooltip-inner {
    max-width: 500px !important;
}

.icon-button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    border: 0;
    background: transparent;
}

.text-gold {
    color: #ffd700 !important;
}

thead input {
    width: 100% !important;
}

.form-selection-sm {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-clip: padding-box !important;
    background-color: #fff !important;
    border: 1px solid #d9dee3 !important;
    color: #495461 !important;
    display: block !important;
    font-weight: 400 !important;
    line-height: 1.53 !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out !important;
    border-radius: 0.25rem !important;
    font-size: .75rem !important;
    min-height: calc(1.53em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.625rem !important;
}

[dir='rtl'] .bootstrap-select .dropdown-toggle .filter-option{
    text-align: right !important;
}

.strategy-active-select {
    min-width: min(100%, 28rem);
    max-width: 40rem;
    flex: 1 1 22rem;
}

.strategy-active-select .bootstrap-select,
.strategy-active-select .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    max-width: 100%;
}

.strategy-active-select .dropdown-menu {
    max-height: 26rem !important;
    min-width: 100% !important;
}

.strategy-active-select .dropdown-menu li a span.text {
    white-space: normal;
}

[dir='rtl'] .bootstrap-select.show-tick .dropdown-menu li a span.text {
    margin-right: 0 !important;
    margin-left: 34px !important;
}

[dir='rtl'] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    left: 15px !important; 
    top: 11px;
    right: inherit !important;
}

.blurred {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

.blurred-locked {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.today-symbols-lock {
    overflow: hidden;
    min-height: 200px;
}

.menu-inner .menu-sub > li.menu-item:not(:has(a)):not(:has(.menu-header)) {
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   /* fill same height as .row */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: #333;
}

.overlay .overlay-content {
    background: #ffffffde;
    padding: 25px;
    border-radius: 10px;
}

.opacity-90 {
    opacity: 0.9 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-70 {
    opacity: 0.7 !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-20 {
    opacity: 0.2 !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-0 {
    opacity: 0 !important;
}

.menu-item.highlighted a {
    color: #696cff !important;
}

.menu-item.highlighted.active a {
    color: white !important;
}


/* Premium portfolios page */
.premium-card { border-radius: 12px; overflow: hidden; }
.premium-price-circle {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
    background: linear-gradient(135deg,#eef6ff 0,#dff4ff 60%);
    box-shadow: 0 8px 24px rgba(13,110,253,0.12);
    display:flex; align-items:center; justify-content:center;
}

.premium-stats .bg-light { background-color: rgba(248,249,250,0.9) !important; }
.premium-stats .flex-fill { min-width: 0; }
.premium-stats .fw-bold { font-size: 1rem; }

.fund-unit-price-circle { width: 148px; height: 148px; }
.fund-unit-price-circle .fs-4 { font-size: 1.35rem !important; }
.fund-access-fee { border-color: rgba(13,110,253,0.15) !important; background: rgba(248,249,252,0.95) !important; }

.card.premium-elevate { transition: transform .18s ease, box-shadow .18s ease; }
.card.premium-elevate:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,110,253,0.12); }

/* Make sure info doesn't overflow on small screens */
@media (max-width: 576px) {
    .premium-price-circle { width: 96px; height: 96px; }
    .fund-unit-price-circle { width: 120px; height: 120px; }
    .fund-unit-price-circle .fs-4 { font-size: 1.1rem !important; }
    .premium-stats .text-muted.small { font-size: .68rem; }
}

.theme-dark .premium-card { border-radius: 12px; overflow: hidden; background-color: #181824; }
.theme-dark .premium-price-circle {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
    background: linear-gradient(135deg,#232a3a 0,#1a2233 60%);
    box-shadow: 0 8px 24px rgba(13,110,253,0.22);
    display:flex; align-items:center; justify-content:center;
}
.theme-dark .premium-stats .bg-light { background-color: rgba(40,44,52,0.95) !important; }
.theme-dark .premium-stats .flex-fill { min-width: 0; }
.theme-dark .premium-stats .fw-bold { font-size: 1rem; color: #bcbdea; }

.theme-dark .fund-unit-price-circle { width: 148px; height: 148px; }
.theme-dark .fund-access-fee { border-color: rgba(188,189,234,0.2) !important; background: rgba(40,44,52,0.95) !important; }

.theme-dark .card.premium-elevate { transition: transform .18s ease, box-shadow .18s ease; background-color: #181824; }
.theme-dark .card.premium-elevate:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,110,253,0.22); }

@media (max-width: 576px) {
    .theme-dark .premium-price-circle { width: 96px; height: 96px; }
    .theme-dark .fund-unit-price-circle { width: 120px; height: 120px; }
    .theme-dark .premium-stats .text-muted.small { font-size: .68rem; color: #b0b8c1; }
}

.menu-link.chat-launch {
    background: linear-gradient(135deg, #5f61e6, #2c2fde);
    color: white !important;
    overflow: hidden;
    align-items: flex-start;
    min-height: 48px;
}

.menu-link.chat-launch .top-chat-label {
    line-height: 1.15;
    white-space: normal;
    max-width: 11.5rem;
}

.menu-link.chat-launch .ai-menu-role,
.menu-inner .ai-menu-role {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.88;
    margin-top: 0.12rem;
    line-height: 1.2;
}

.menu-link.chat-launch-help {
    background: linear-gradient(135deg, #0f766e, #115e59);
}

.menu-link.chat-launch-help:hover {
    box-shadow: 0 0 12px rgba(15, 118, 110, 0.4);
}

.menu-inner .ai-menu-role {
    opacity: 0.75;
}

/* Base shine layer (invisible until hover) */
.menu-link.chat-launch::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    opacity: 0;
    pointer-events: none;
}

/* Trigger a temporary sweep animation on hover */
.menu-link.chat-launch:hover::before {
    animation: shine-sweep 1.2s ease forwards;
}

.menu-link.chat-launch:hover {
    box-shadow: 0 0 12px rgba(95, 97, 230, 0.4);
}

/* The animation — moves across and fades out automatically */
@keyframes shine-sweep {
    0% {
        left: -75%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 125%;
        opacity: 0;
    }
}

/* Ticker News */
.news-ticker-band {
    font-size: 0.9rem;
    /* border-bottom: 2px solid darkred; */
    box-shadow: 0 2px 6px rgb(0 0 0 / 61%);
    min-height: 38px;
    background-color: #4e0000f0 !important;
    overflow: hidden !important;
    position: sticky !important;
    z-index: 20 !important;
    top: 63px !important;
    height: 42px !important;
}

.price-ticker-band {
    top: 63px !important;
    z-index: 21 !important;
    margin-bottom: 0 !important;
}

.market-news-ticker-band {
    top: 105px !important;
    z-index: 20 !important;
    background-color: #3a0a14f0 !important;
}

/* When only the news band is present (or price band is empty/hidden), stick it under the navbar */
.market-news-ticker-band:first-child,
.price-ticker-band.d-none + .market-news-ticker-band,
html.user-hide-price-ticker .market-news-ticker-band {
    top: 63px !important;
}

html.user-hide-price-ticker #price-ticker-band {
    display: none !important;
}

html.user-hide-market-news-ticker #market-news-ticker-band {
    display: none !important;
}

.ticker-restore-bar {
    position: sticky;
    top: 63px;
    z-index: 19;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    background: #2b0a0af0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 36px;
}

.ticker-restore-bar.d-none {
    display: none !important;
}

.ticker-restore-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 600;
}

.ticker-restore-switch .form-check-input {
    cursor: pointer;
}

.ticker-restore-switch .form-check-label {
    cursor: pointer;
    font-size: 0.85rem;
}

html.user-hide-price-ticker.user-hide-market-news-ticker .ticker-restore-bar,
html.user-hide-price-ticker:not(:has(#market-news-ticker-band)) .ticker-restore-bar,
html.user-hide-market-news-ticker:not(:has(#price-ticker-band)) .ticker-restore-bar {
    top: 63px;
}

@media (max-width: 1192px) {
    .ticker-restore-bar {
        display: none !important;
    }
}

.ticker-band-hide-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    opacity: 0.75;
}

.ticker-band-hide-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
}

.news-ticker-band .news-ticker-content {
    padding-inline-end: 36px;
}

@media (max-width: 1192px) {
    .news-ticker-band {
        display: none;
    }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2.5rem;
    font-weight: 500;
    height: 40px !important;
}

.news-ticker-symbol {
    color: #ffd452;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-symbol {
    margin-right: 0;
    margin-left: 0.5rem;
}

.news-ticker-article {
    color: #fff;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-article {
    margin-right: 0;
    margin-left: 0.5rem;
}

.news-ticker-message {
    color: #fff;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-message {
    margin-right: 0;
    margin-left: 0.5rem;
}

/*@keyframes ticker-scroll {*/
/*     0% { transform: translateX(100%); }*/
/*     100% { transform: translateX(-100%); }*/
/* }*/

/*@keyframes ticker-scroll-ar {*/
/*    0% { transform: translateX(-100%); }*/
/*    100% { transform: translateX(100%); }*/
/*}*/

.animation-paused {
    animation-play-state: paused !important;
}

/* Keep the DataTables “Processing...” overlay in the viewport (table-relative
   absolute centering lands mid-table and scrolls off-screen on tall lists). */
div.dataTables_processing {
    position: fixed !important;
    top: 35% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 200px;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1100 !important;
}

div.dataTables_processing>div:last-child>div {
    background: #696cff !important;
}

.portfolio-summary {
    border: 1px solid rgba(67, 89, 113, 0.12);
    border-radius: 0.5rem;
    background: linear-gradient(180deg, rgba(105, 108, 255, 0.04) 0%, rgba(67, 89, 113, 0.02) 100%);
    padding: 1rem 1.125rem;
}

.portfolio-summary-header,
.portfolio-summary-subheader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #566a7f;
}

.portfolio-summary-header {
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
}

.portfolio-summary-subheader {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding-top: 0.875rem;
    border-top: 1px dashed rgba(67, 89, 113, 0.16);
    font-size: 0.85rem;
}

.portfolio-summary-header__icon,
.portfolio-summary-subheader__icon {
    color: #696cff;
    font-size: 1rem;
}

.portfolio-summary-metric {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0.9rem;
    border: 1px solid rgba(67, 89, 113, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
    border-inline-start-width: 3px;
    border-inline-start-style: solid;
    min-height: 100%;
}

.portfolio-summary-metric__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    background: rgba(67, 89, 113, 0.06);
    color: #697a8d;
    flex-shrink: 0;
    font-size: 1rem;
}

.portfolio-summary-metric__body {
    min-width: 0;
    flex: 1;
}

.portfolio-summary-metric__label {
    font-size: 0.75rem;
    color: #a1acb8;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.portfolio-summary-metric__value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #566a7f;
    word-break: break-word;
}

.portfolio-summary-metric--primary {
    border-inline-start-color: #696cff;
}

.portfolio-summary-metric--primary .portfolio-summary-metric__icon {
    background: rgba(105, 108, 255, 0.12);
    color: #696cff;
}

.portfolio-summary-metric--success {
    border-inline-start-color: #71dd37;
}

.portfolio-summary-metric--success .portfolio-summary-metric__icon {
    background: rgba(113, 221, 55, 0.12);
    color: #71dd37;
}

.portfolio-summary-metric--danger {
    border-inline-start-color: #ff3e1d;
}

.portfolio-summary-metric--danger .portfolio-summary-metric__icon {
    background: rgba(255, 62, 29, 0.12);
    color: #ff3e1d;
}

.portfolio-summary-metric--warning {
    border-inline-start-color: #ffab00;
}

.portfolio-summary-metric--warning .portfolio-summary-metric__icon {
    background: rgba(255, 171, 0, 0.12);
    color: #ffab00;
}

.portfolio-summary-metric--info {
    border-inline-start-color: #03c3ec;
}

.portfolio-summary-metric--info .portfolio-summary-metric__icon {
    background: rgba(3, 195, 236, 0.12);
    color: #03c3ec;
}

.portfolio-summary-metric--neutral {
    border-inline-start-color: #8592a3;
}

@media (max-width: 575.98px) {
    .portfolio-summary {
        padding: 0.875rem;
    }

    .portfolio-summary-metric {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .portfolio-summary-metric__value {
        font-size: 0.95rem;
    }
}

.site-footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.site-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 1.25rem;
    width: 100%;
}

.site-footer-copyright {
    font-size: 0.9375rem;
}

.site-footer-legal .site-footer-sep {
    color: inherit;
    opacity: 0.7;
}

.site-footer-links .footer-link {
    white-space: nowrap;
}

.legal-html-input {
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre;
    tab-size: 2;
}

.pricing-plan .btn-select-plan,
.subscribe-modal .btn,
.trial-onboarding-step {
    min-height: 44px;
}

.pricing-plan-featured {
    border-width: 2px !important;
    box-shadow: 0 0.85rem 1.75rem rgba(105, 108, 255, 0.22) !important;
    z-index: 1;
}

@media (min-width: 992px) {
    .pricing-plan-featured {
        transform: scale(1.03);
    }
}

.pricing-upgrade-callout {
    background: rgba(105, 108, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0;
    font-size: 0.9375rem;
}

.pricing-upgrade-callout-featured {
    background: rgba(105, 108, 255, 0.14);
}

.pricing-feature-unlock {
    font-weight: 600;
}

.pricing-trust-strip {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.pricing-trust-chip {
    display: inline-flex;
    align-items: center;
    background: #f5f5f9;
    border-radius: 2rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.duration-option-card {
    min-height: 220px;
}

.trial-onboarding {
    border: 1px solid rgba(105, 108, 255, 0.35);
    box-shadow: 0 0.5rem 1.25rem rgba(105, 108, 255, 0.12);
}

.trial-onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 0.85rem 0.75rem;
}

@media (max-width: 575.98px) {
    .duration-option-card {
        min-height: 0;
    }

    .subscribe-modal .modal-body {
        overflow-y: auto;
    }
}
