@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');

/* Ensure font is applied immediately */
* {
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

:root {
    --sidebar-bg: #1C1F2D;
    --icon-color: #FFFFFF;
    --hover-bg: #026FD3;
    --hover-menu-tiles: #333542;
    --border-color: #2a3042;
    --menu-bg-item: #2a3042;
    --color-black: #FFFFFF;
    --header-bg: #1C1F2D;
    --header-section-bg: #2B3040;
    --upside-green: #0faf59;
    --upside-green-hover: #05C65E;
    --downside-red: #db4635;
    --downside-red-hover: #FF402B;
    --help-color-text: #026fd3;
    --sentiment-green: #0FAF59;
    --sentiment-red: #FF6251;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font: 400 14px/18px Roboto, Arial, Helvetica, sans-serif;
    background: #1C1F2D;
    overflow: visible;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Left Sidebar */
.left-sidebar {
    width: 80px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transition: transform 0.3s ease;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    width: 60px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    color: var(--icon-color);
    text-decoration: none;
    transition: background-color 0.2s;
    position: relative;
}

.nav-link:hover {
    background-color: var(--hover-bg);
}

.nav-link.active {
    background-color: var(--hover-bg);
    color: var(--icon-color);
}

.nav-link.active:hover {
    background-color: var(--hover-bg);
    color: var(--icon-color);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    margin-bottom: 9px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-link span {
    font-size: 9px;
    font-weight: 600;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* 'Montserrat', sans-serif; */
    text-align: center;
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
}

.tournament-badge,
.market-badge {
    position: absolute;
    top: 0px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #026FD3;
    /* background: #388EDC; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

/* BUYER/SELLER INDICATOR */
.indicator-icon {
    position: absolute;
    left: 0;
    top: -28px;
    width: 40px;
    height: 40px;
    background: #026FD3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 26;
}

.icon-plus {
    width: 12px;
    height: 12px;
}

.buyer-seller-indicator {
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 25;
}

.indicator-icon i {
    color: white;
    font-size: 18px;
}

.indicator-percentage {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    margin: 8px 5px -2px 5px;
    left: 15px;
}

.indicator-percentage.top {
    color: white;
    top: 15px;
}

.indicator-percentage.bottom {
    color: white;
    bottom: 5px;
}

.seller-section {
    width: 4px;
    background: var(--sentiment-red);
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(50% - 15px);
    /* Create gap */
}

.buyer-section {
    width: 4px;
    background: var(--sentiment-green);
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(50% - 15px);
    /* Create gap */
}









.menu-icon {
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 18px 0 20px -5px;
    padding: 0;
}

.menu-icon svg {
    display: block;
    margin-right: auto;
    transition: all 0.3s ease;
}

.menu-icon:hover svg {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.settings-block {
    display: flex;
    flex-direction: row;
    /* margin:  -5px 0; */
}

.settings-block:nth-child(1) {
    display: flex;
    flex-direction: row;
    margin: -3px 0;
}

.settings-button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 -1px;
}

.settings-button svg,
.settings-button use {
    width: 20px;
    height: 20px;
    fill: #60626C !important;
    color: #60626C !important;
}

.icon-settings-full-screen {
    fill: #8D8F96 !important;
}

.social-media {
    width: 50px;
    height: 52px;
    background: none;
    border: 1px solid #333542;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: background-color 0.2s;
}

.social-media:hover {
    background-color: #333542;
}

.social-media svg {
    width: 20px;
    height: 20px;
}

.join-text {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: 7.5px;
    font-weight: 900;
    /* line-height: 10px; */
    text-transform: uppercase;
    cursor: pointer;
}

.livechat {
    text-align: center;
    margin-bottom: -10px;
}

.livechat-status {
    width: 50px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: #fff;
    background-color: #0faf59;
    border-radius: 4px;
    border: none;
    font-size: 10px;
    line-height: 12px;
    text-decoration: none;
    user-select: none;
    transition: all 200ms linear;
    box-shadow: 0 4px 10px hsla(147.75, 55.2105263158%, 46.2549019608%, .25);
    padding: 8px 0 6px 0;
}

.livechat-status::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .2);
    position: relative;
    z-index: 1;
    transform: translateY(2px);
    margin-bottom: 4px;
}

.livechat-status::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 13px;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    z-index: 2;
}

.livechat-status:hover {
    background-color: #0faf59;
    box-shadow: 0 4px 10px hsla(147.75, 55.2105263158%, 46.2549019608%, .25);
}

.new-tournament {
    width: 48px;
    height: 62px;
    border-radius: 8px;
    border: 2px solid hsla(0, 0%, 100%, .1);
    background: #353a4d;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-tournament picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-tournament img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.new-tournament:hover {
    border: 2px solid #AEB0B7;
}

/* Settings Panel - Unique styles */
.setting-panel {
    position: fixed;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--sidebar-bg);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 6;
    overflow: hidden;
}

.setting-panel.active {
    transform: translateX(0);
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.setting-header h2 {
    color: var(--icon-color);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-setting {
    color: var(--icon-color);
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.setting-content {
    margin-top: 20px;
}

/* Side Panels */
.side-panel {
    position: fixed;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--sidebar-bg);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 6;
    overflow: hidden;
}

.side-panel.active {
    transform: translateX(0);
}

.side-panel.active~.page-header,
.setting-panel.active~.page-header {
    left: calc(119px + 240px);
    transition: left 0.3s ease;
}

.side-panel.active~.page-header~.main-content,
.setting-panel.active~.page-header~.main-content {
    left: calc(80px + 240px);
    transition: left 0.3s ease;
}

.side-panel.active~.left-sidebar,
.setting-panel.active~.left-sidebar {
    transform: translateX(240px);
}



.app-container.shifted .page-header {
    left: calc(119px + 240px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 30px; */
    padding-top: 10px;
}

.panel-header h2 {
    color: var(--icon-color);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-panel {
    color: var(--icon-color);
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* Help Panel Styles */
.help {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.help__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-top: 10px;
}

.help__header h2 {
    color: var(--icon-color);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.help__content {
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help__content--support {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.help__items {
    flex: 1;
    overflow: auto;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.help__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    flex-shrink: 0;
    justify-content: center;
    position: relative;
    padding: 15px 0;
}

.help__item-icon {
    width: 27.5px;
    height: 27.5px;
    fill: var(--hover-bg);
    margin-bottom: 10px;
}

.help__item-name {
    color: var(--icon-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.help__item-text {
    color: #a0a4b8;
    font-size: 14px;
}

.help__item-divider {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--border-color);
}

.help__item:last-child .help__item-divider {
    display: none;
}

.help__support {
    background-color: rgba(53, 58, 77, .05);
    border-radius: 4px;
    margin: 0 20px 80px 20px;
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.help__support-icon {
    height: 34px;
    margin: 0 auto 12px;
    width: 34px;
}

.help__support svg {
    display: block;
}

.help__support div {
    color: var(--icon-color);
    font-size: 14px;
    font-weight: 500;
}

.help__support-text {
    color: var(--help-color-text);
    font-weight: 700;
    margin-top: 5px;
    text-decoration: none;
}





/* More Panel Styles */
.menu-more {
    display: flex;
    flex-direction: column;
}

.menu-more__item {
    align-items: center;
    background: var(--menu-bg-item);
    border-radius: 4px;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 15px 10px 15px 15px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.menu-more__item:hover {
    background-color: var(--hover-menu-tiles);
}

.menu-more__item-top {
    display: flex;
    align-items: center;
    color: white;
}

.menu-more__item-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: white;
}

.menu-more__item-caret,
.icon-caret {
    width: 12px;
    height: 12px;
    fill: white;
    color: white;
    font-size: 12px;
    transition: transform 0.2s;
}

.icon-caret.flipped {
    transform: rotate(180deg);
}

/* Page Header - Full width */
.page-header {
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 11px 0 13px;
    background: var(--header-bg);
    position: fixed;
    top: 0;
    left: 80px;
    right: 0;
    z-index: 10000;
    transition: left 0.3s ease;

}

.logo-section {
    display: flex;
    align-items: center;
}
.logo {
    width: 105px;
    height: 26px;
    margin-right: 10px;
    /*-class="logo-section" For Normal logo */
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* FOR  Normal logo */
.logo .icon-logo-dark {
    width: 100%;
    height: 100%;
    fill: white;
    margin-left: -3px;
}

/* For Winter Logo */
/* .logo .icon-logo-dark {
  width: 100%;
  height: 122%;
  fill: white;
  margin-left: -9px;
  margin-top: -18px;
} */

.logo-divider {
    width: 4px;
    height: 4px;
    background: #2E313E;
    border-radius: 50%;
    margin: -2px 15px 0 1px;
}

.slogan {
    color: #60626C;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    line-height: 18px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    position: relative;
    z-index: 25;
}

.header-btn {
    width: 94px;
    height: 35px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* 'Montserrat', sans-serif; */
}

.withdraw-btn {
    background: #575d75;
    /* background: #353a4d; */
    color: white;
    font-size: 14px;
    line-height: 18px;
    padding: 19px 7px;
    margin-left: -4px;
}

.withdraw-btn:hover {
    background: #61677E !important;
}

.deposit-btn {
    background: #0FAF59;
    color: white;
    font-size: 14px;
    line-height: 18px;
    padding: 19px 7px;
    box-shadow: 0 4px 10px rgba(53, 183, 113, .25)
}

.deposit-btn:hover {
    background: #05C65E;
}

.deposit-btn .fa-plus {
    margin-right: 5px;
}

.account-section {
    background: var(--header-section-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 150px;
    height: 38px;
    margin-right: 1px;
}

.account-section:hover {
    background: #000000;
}

.account-info {
    display: flex;
    flex-direction: column;
    margin: 0 17px;
}

.account-type {
    /* display: flex;
    align-items: center; */
    color: #0faf59;
    font-size: 10px;
    font-weight: 900;
    line-height: 12px;
    text-transform: uppercase;
}

.account-demo {
    color: #ff8a00;
    font-weight: 900;
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
}

.icon-academic {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 10px;
}

.account-level-icon {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 10px;
}

.account-balance {
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.account-arrow {
    width: 11px;
    height: 11px;
    color: white;
    transition: transform 0.2s;
    font-size: 12px;
    position: absolute;
    right: 11px;
}

.account-arrow.flipped {
    transform: rotate(180deg);
}

.account-modal {
    position: absolute;
    top: 45px;
    right: 0;
    width: 417px;
    height: 354px;
    background: #242633;
    border: 3px solid black;
    border-radius: 4px;
    display: none;
    z-index: 20;
}

.account-modal.active {
    display: block;
}

.notification-section {
    width: 64px;
    height: 38px;
    border-radius: 5px;
    background: var(--header-section-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin-right: 2px;
    gap: 7px;
}

.notification-section:hover {
    background: #000000;
}

/* Header Notification Bell Styling */
.notification-section .header-notification-bell,
.notification-section .header-notification-bell svg {
    width: 18px !important;
    height: 21px !important;
    fill: #2b3040 !important;
    stroke: white !important;
    stroke-width: 5px !important;
    filter: none !important;
    color: #2b3040 !important;
    cursor: pointer;
}

.notification-section .header-notification-bell *,
.notification-section .header-notification-bell svg *,
.notification-section .header-notification-bell path,
.notification-section .header-notification-bell use,
.notification-section .header-notification-bell g {
    fill: #2b3040 !important;
    stroke: white !important;
    stroke-width: 5px !important;
    color: #2b3040 !important;
}


.notification-modal {
    position: absolute;
    top: 45px;
    right: 0;
    width: 300px;
    background: #242633;
    border: 3px solid black;
    border-radius: 4px;
    display: none;
    z-index: 20;
}

.notification-modal.active {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
}

.notification-title {
    color: white;
    font-weight: 600;
}

.mark-all-read {
    color: #a0a4b8;
    font-size: 12px;
    cursor: pointer;
}

.notification-body {
    padding: 20px;
    text-align: center;
    color: #a0a4b8;
}

.notification-badge {
    width: 16px;
    height: 16px;
    background: #E75B4D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    margin-left: 3px;
}

/* Left Edge Section */
.left-edge-section {
    position: fixed;
    top: 68px;
    left: 80px;
    width: 40px;
    bottom: 5px;
    background: var(--sidebar-bg);
    z-index: 1;
    transition: left 0.3s ease;
}

.app-container.panel-active .left-edge-section {
    left: calc(80px + 240px);
}

/* Main Content - Chart Integration */
.main-content {
    position: fixed;
    top: 63px;
    left: 90px;
    right: 230px;
    bottom: 10px;
    background: #1C1F2D;
    overflow: visible;
    border-radius: 10px;
    /* padding: 10px; */
    z-index: 10;
    transition: left 0.3s ease, right 0.3s ease;
}

.app-container.panel-active .main-content {
    left: 50px;
    right: 10px;
}

/* Left Price Section */
.left-price-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    /* background: #1C1F2D; */
    z-index: 20;
    border-radius: 10px 0 0 10px;
    transition: background 0.3s ease;
}

/* Left price section shows background with inverted opacity */
.main-content.chart-has-background .left-price-section {
    /* background-color: rgba(28, 31, 45, calc(1 - var(--bg-opacity, 0.3))) !important; */
    overflow: hidden !important;
}

/* Hide chart elements in left area when background image is active */
.main-content.chart-has-background #chartCanvas,
.chart-has-background #chartCanvas {
    clip-path: inset(0 0 0 40px) !important;
}

/* Set background image on main-content - constrained to chart area only */
.main-content.chart-has-background {
    background: none !important;
    overflow: hidden !important;
}

/* Background image only visible within chart container */
.main-content.chart-has-background #chartContainer {
    position: relative;
    overflow: hidden !important;
}

.main-content.chart-has-background #chartContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
    z-index: -1;
    pointer-events: none;
}

/* Make chart container transparent */
.main-content.chart-has-background #chartContainer {
    background: transparent !important;
}

/* Chart Container */
#chartContainer {
    position: relative;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1C1F2D;
    border-radius: 10px;
    overflow: hidden !important;
}

#chartCanvas {
    display: block;
    cursor: default;
    width: 100%;
    height: 100%;
    z-index: 10;
    position: relative;
}

/* Not Available Content Section */
.not-available {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: #1C1F2D;
}

.not-available__content {
    text-align: center;
    padding: 40px;
    max-width: 300px;
}

.not-available__icons {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    fill: #535661;
}

.not-available__title {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.not-available__color-red {
    color: #E75B4D;
}

.not-available__subtitle {
    font-size: 14px;
    color: #a0a4b8;
    line-height: 1.5;
}

/* Trading Chart Settings */
.trading-chart-settings {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    transition: left 0.3s ease;
    left: 50px;
}

.side-panel.active~.page-header~.main-content .trading-chart-settings,
.setting-panel.active~.page-header~.main-content .trading-chart-settings {
    left: 72px !important;
}

.side-panel.active~.page-header~.main-content .chart-candle-info,
.setting-panel.active~.page-header~.main-content .chart-candle-info {
    left: 112px !important;
}

/* Ensure OHLC doesn't overlap with timeframe controls */
.chart-candle-info {
    margin-left: 10px;
}

/* Responsive positioning for OHLC */
@media (max-width: 1200px) {
    .chart-candle-info {
        left: 20px;
        bottom: 90px;
    }
}

.trading-chart-settings__toggle {
    display: none;
}

.trading-chart-settings__item {
    width: 35px;
    height: 35px;
    background: rgba(43, 48, 64, 0.7);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    transition: all 0.2s;
    font-weight: 600;
    margin-bottom: 5px;
}

.trading-chart-settings__toggle:hover,
.trading-chart-settings__item:hover {
    background: #ffffff;
    color: #000000;
}

.trading-chart-settings__item.active {
    background: rgba(43, 48, 64, 0.3);
    color: #ffffff;
}

.trading-chart-settings__item.active:hover,
.trading-chart-settings__item.clicked:hover {
    background: #ffffff;
    color: #000000;
}

.trading-chart-settings__item-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.timeframe-button::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 37%;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 4px solid #ffffff;
    opacity: 0;
    transition: opacity 0.2s;
}

.timeframe-button.popover-active::after {
    opacity: 1;
}

.timeframe-button.popover-active {
    background: #ffffff !important;
    color: #000000 !important;
}

.timeframe-button.popover-active:hover,
.timeframe-button.no-hover:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.trading-chart-settings__item.clicked {
    background: #ffffff !important;
    color: #000000 !important;
}

.popover-select__settings {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(43, 48, 64, 0.95);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    display: none;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popover-select__settings.show {
    display: block;
}

.popover-select__settings-type-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    color: #a0a4b8;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s;
    gap: 8px;
}

.popover-select__settings-type-item:hover {
    background: rgba(2, 111, 211, 0.3);
    color: white;
}

.popover-select__settings-type-item.active {
    background: rgba(2, 111, 211, 0.5);
    color: white;
}

.popover-select__settings-type-item__icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Timeframe Popover Styles */
.popover-select__settings-timeframe {
    position: absolute;
    bottom: 9%;
    left: 43px;
    background: rgba(43, 48, 64, 0.95);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    display: none;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popover-select__settings-timeframe.show {
    display: block;
}

.timeframe-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.timeframe-row:last-child {
    margin-bottom: 0;
}

.timeframe-item {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.timeframe-item:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.timeframe-item.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}



.chart-candle-info {
    position: absolute;
    bottom: 15px;
    left: 85px;
    color: #ffffff;
    /* background: rgba(15, 20, 25, 0.95); */
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    min-width: 180px;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chart-candle-info.visible {
    opacity: 1;
    display: flex;
}

.chart-candle-info:not(.visible) {
    opacity: 0;
    display: none;
}

.chart-candle-info .label {
    color: #ffffff;
    display: inline-block;
    width: 35px;
    font-size: 11px;
    font-weight: 400;
}

.chart-candle-info .value {
    color: #ffffff;
    font-weight: 400;
    font-size: 11px;
}

.chart-candle-info>div {
    margin: 0;
    line-height: 1.1;
    padding: 0;
}

.chart-candle-info .value.bullish {
    color: #ffffff;
}

.chart-candle-info .value.bearish {
    color: #ffffff;
}

/* Panel content sliding */
.panel-content {
    overflow: hidden;
    height: 100vh;
}

/* Position relative only for main menu and verification sections */
.panel-content:not(.show-analytics) {
    position: relative;
}



.main-menu,
.verification-menu,
.analytics-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease;
    padding: 20px 0;
}

.verification-menu,
.signals-menu {
    transform: translateX(100%);
}

.panel-content.show-verification .main-menu {
    transform: translateX(-100%);
}

.panel-content.show-verification .verification-menu {
    transform: translateX(0);
}

.panel-content.show-signals .main-menu {
    transform: translateX(-100%);
}

.panel-content.show-signals .verification-menu {
    transform: translateX(-100%);
}

.panel-content.show-signals .signals-menu {
    transform: translateX(0);
}

/* Verification Section Styles */
.verification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    gap: 20px;
    transition: transform 0.4s ease;
}

.verification-content.slide-up {
    transform: translateY(-30px);
}

.target-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.target-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.target-icon i {
    font-size: 32px;
    color: #026FD3;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.target-icon.password-mode {
    animation: futuristicPulse 0.8s ease-out;
}

@keyframes futuristicPulse {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(2, 111, 211, 0.7);
    }

    25% {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 0 0 10px rgba(2, 111, 211, 0.3);
    }

    50% {
        transform: scale(0.9) rotate(180deg);
        box-shadow: 0 0 0 20px rgba(2, 111, 211, 0.1);
    }

    75% {
        transform: scale(1.05) rotate(270deg);
        box-shadow: 0 0 0 10px rgba(2, 111, 211, 0.2);
    }

    100% {
        transform: scale(1) rotate(360deg);
        box-shadow: 0 0 0 0 rgba(2, 111, 211, 0);
    }
}



.verification-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.verification-text.token-mode {
    animation: fadeTransition 0.8s ease-in-out;
}

@keyframes fadeTransition {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



/* OTP Section */
.otp-section {
    opacity: 0;
    transform: translateY(20px);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    margin-top: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.otp-section.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.otp-inputs {
    display: flex;
    gap: 4px;
}

.otp-input {
    width: 24px;
    height: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: #026FD3;
}

.otp-input.success {
    border-color: #0FA054;
}

.verify-btn {
    padding: 6px 16px;
    background: #026FD3;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.verify-btn:hover {
    background: #0056b3;
}

.verify-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.timer {
    color: #ffffff;
    font-size: 12px;
    font-weight: normal;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* monospace; */
    text-align: center;
    margin-top: 15px;
}

.timer.warning {
    animation: colorBlink 1s infinite;
}

@keyframes colorBlink {

    0%,
    50% {
        color: #ffffff;
    }

    51%,
    100% {
        color: #ff6b6b;
    }
}



.signals-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.signals-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}



.panel-content.show-signals .signals-footer {
    opacity: 1;
    visibility: visible;
}

.session-timer {
    text-align: center;
    color: #a0a4b8;
    font-size: 12px;
    margin-bottom: 10px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* monospace; */
}

.session-timer .timer-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-timer .timer-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: #E75B4D;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #d14a3c;
}

.logout-btn i {
    font-size: 16px;
}

/* Accordion Styles */
.accordion-container {
    padding: 20px 0;
}

.accordion-item {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #26364F;
    cursor: pointer;
    transition: background 0.2s;
    color: #ffffff;
    font-weight: 600;
}

.accordion-header:hover {
    background: #2a3a50;
}

.accordion-header i:first-child {
    margin-right: 10px;
    color: #026FD3;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2B3040;
}

.accordion-content.active {
    max-height: 800px;
}

.upload-section {
    padding: 20px;
    color: #a0a4b8;
}

.controls-section {
    padding: 20px 5px;
    color: #a0a4b8;
}

.upload-section h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.market-select {
    width: 100%;
    padding: 10px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.market-select:focus {
    border-color: #026FD3;
}

.market-select option {
    background: #2B3040;
    color: #ffffff;
}

.file-upload-group {
    margin-top: 20px;
}

.file-upload-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-upload-input {
    display: none;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #026FD3;
    color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s;
    margin-right: 8px;
}

.file-upload-button:hover {
    background: #0056b3;
}

.file-upload-name {
    color: #a0a4b8;
    font-size: 12px;
    font-style: italic;
}

.asset-management-section {
    margin-top: 15px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.radio-container input {
    display: none;
}

.radio-mark {
    width: 16px;
    height: 16px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.radio-container input:checked+.radio-mark {
    background: #026FD3;
    border-color: #026FD3;
}

.radio-container input:checked+.radio-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.add-asset-section {
    margin-top: 10px;
}

.asset-input {
    width: 100%;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.asset-input:focus {
    border-color: #026FD3;
}

.add-asset-btn {
    width: 100%;
    padding: 8px 12px;
    background: #0FA054;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-asset-btn:hover {
    background: #0d8a47;
}

.remove-asset-section {
    margin-top: 10px;
}

.remove-asset-dropdown {
    position: relative;
    margin-bottom: 10px;
}

.remove-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.remove-dropdown-header:hover {
    background: #333542;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.remove-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 10;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    border-bottom: 1px solid #3D4354;
}

.asset-item:last-child {
    border-bottom: none;
}

.asset-item.marked-for-removal {
    background: rgba(231, 91, 77, 0.1);
    text-decoration: line-through;
    opacity: 0.7;
}

.remove-asset-cross {
    color: #E75B4D;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 4px;
    transition: color 0.2s;
}

.remove-asset-cross:hover {
    color: #ff402b;
}

.update-asset-btn {
    width: 100%;
    padding: 8px 12px;
    background: #FF8A00;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.update-asset-btn:hover {
    background: #e67a00;
}

.upload-data-btn {
    width: 100%;
    padding: 12px 16px;
    background: #0FAF59;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.upload-data-btn:hover {
    background: #05C65E;
}

/* Bootstrap-style Alert */
.alert {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-message {
    flex: 1;
    font-weight: 500;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-error .alert-icon {
    color: #dc3545;
}

/* Right Sidebar - Starts below header */
.right-sidebar {
    width: 230px;
    /* preserved: 220px */
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 72px;
    bottom: 0;
    z-index: 10;
}

.right-section {
    background: #2B3040;
    margin: 10px;
    border-radius: 5px;
    padding: 0;
    position: relative;
}

.right-section:not(.asset-section) {
    padding: 4px;
    /* border-radius: 25px; */
}

.asset-content-container {
    padding: 15px 17px 15px 15px;
}

.right-section.asset-section {
    margin-top: 0 !important;
}

/* Tabs Container */
.tabs-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
    margin: 0 10px 10px 10px;
    /* background: #242633; */
    border-radius: 4px;
    padding-bottom: 12px; /* Reserves space for absolute .shutter-control at bottom */
}

.tabs-container.collapsed {
    flex: none;
    min-height: 45px; /* Expands to hold tabs-header (approx 38px) + padding-bottom (12px) */
    height: auto;
}

.tab-content {
    flex: 1;
    display: none;
    padding: 10px 0;
    text-align: center;
    color: #a0a4b8;
    font-size: 13px;
    overflow-y: auto;
    transition: height 0.4s ease;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.tab-content.active:has(.empty-state-icon) {
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
}

.tabs-container.collapsed .tab-content {
    display: none !important;
}

.tabs-header {
    display: flex;
    position: relative;
}

.tab {
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    color: #a0a4b8;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .tab.active {
    color: white;
    flex: 0.9;
} */

.tab:not(.active) {
    flex: 0.3;
    background: #303440;
}

.tab.active {
    color: white;
    flex: 0.7;
    border-top: 2px solid #2a99ff;
    border-radius: 5px 5px 0 0;
}

.tab-icon {
    font-size: 16px !Important;
    fill: #FFFFFF !Important;
}

/* Tab Content */
.tab-content {
    flex: 1;
    display: none;
    padding: 10px 0;
    text-align: center;
    color: #ffffff80;
    /*(HK chng)*/
    font-size: 14px;
    /*(HK chng)*/
    overflow-y: auto;
    transition: height 0.3s ease;
    font-weight: 400;
    /*(HK chng)*/
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.tab-content.active:has(.empty-state-icon) {
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
}

.trade-count,
.order-count {
    width: 15px;
    height: 15px;
    background: #404553;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
    margin-left: 5px;
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
}

.empty-state-icon i {
    font-size: 24px;
    color: #60626C;
}

.trade-item {
    padding: 10px;
    border-bottom: 1px solid #333542;
}

.trade-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.trade-header .flag-container {
    position: relative;
    width: 20px;
    height: 12px;
    margin-right: 6px;
}

.trade-asset {
    color: white;
    font-weight: 600;
    font-size: 10px;
    /* flex: 1; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.trade-time {
    color: #a0a4b8;
    font-size: 11px;
    white-space: nowrap;
}

.trade-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.trade-direction {
    display: flex;
    align-items: center;
    gap: 8px;
}

.direction-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.direction-icon.up {
    background: rgba(15, 175, 89, 0.2);
    color: #0FA054;
}

.direction-icon.down {
    background: rgba(231, 91, 77, 0.2);
    color: #E75B4D;
}

.trade-amount {
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.trade-result {
    font-weight: 600;
    font-size: 12px;
}

.trade-result.win {
    color: #0FA054;
}

.trade-result.loss {
    color: #E75B4D;
}

.trade-result.pending {
    color: #E75B4D;
}

.trade-result.refund {
    color: #0FA054;
}

.shutter-control {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #293448;
    font-size: 12px;
    /* border-top: 1px solid var(--border-color); */
    background: rgba(2, 111, 211, 0.05);
    position: absolute;
    margin: 0;
    z-index: 10;
    height: 12px;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 4px 4px;
    transition: background 0.2s;
}

.shutter-control:hover {
    background: rgba(2, 111, 211, 0.1);
}

.shutter-icon {
    color: #ffffff;
    fill: #ffffff;
    transition: transform 0.3s;
    font-size: 10px;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter-icon.collapsed {
    transform: rotate(180deg);
}

.beginning-trade-icon,
.end-trade-icon {
    fill: #535661;
}



/* Skeleton Loading Screen */
.skeleton-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1C1F2D;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.skeleton-header-right-overlay {
    position: fixed;
    top: 0;
    right: 0;
    height: 38px;
    background: #1C1F2D;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 11px 8px 0;
}

.skeleton-header-right-overlay .skeleton-withdraw-btn {
    width: 95px;
    height: 35px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-header-right-overlay .skeleton-deposit-btn {
    width: 95px;
    height: 35px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-header-right-overlay .skeleton-account-section {
    width: 148px;
    height: 38px;
    background: #232634;
    border-radius: 4px;
    margin-right: 9px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-header-right-overlay .skeleton-notification-section {
    width: 60px;
    height: 38px;
    background: #232634;
    border-radius: 4px;
    margin-right: 9px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-header {
    height: 62px;
    background: #1C1F2D;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.skeleton-header .skeleton-menu-icon {
    width: 24px;
    height: 24px;
    background: #232634;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-left: 8px;
}

.skeleton-header .logo-section {
    display: flex;
    align-items: center;
    margin-left: 47px;
}

.skeleton-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.skeleton-withdraw-btn {
    width: 95px;
    height: 35px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-deposit-btn {
    width: 95px;
    height: 35px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-account-section {
    width: 120px;
    height: 38px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-notification-section {
    width: 38px;
    height: 38px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-right-sidebar {
    width: 220px;
    position: fixed;
    right: 0;
    top: 50px;
    bottom: 0;
    background: #1C1F2D;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.skeleton-asset-section {
    background: #232634;
    border-radius: 8px;
    height: 320px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin: 0 10px 10px 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-asset-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skeleton-asset-flags {
    width: 18px;
    height: 18px;
    background: #282D3A;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-asset-name {
    width: 100px;
    height: 15px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-asset-return {
    width: 30px;
    height: 12px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-left: auto;
}

.skeleton-pending-orders {
    width: 100%;
    height: 35px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-time-investment-section {
    width: 100%;
    height: 155px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin: 0 auto;
}

.skeleton-payout-info {
    width: 50%;
    height: 11px;
    background: #282D3A;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin: 4px auto;
}

.skeleton-trade-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-trade-btn {
    width: 100%;
    height: 40px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-tabs-section {
    background: #232634;
    border-radius: 8px;
    flex: 1;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin: 0 10px 10px 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.skeleton-tabs-header {
    display: flex;
    margin-bottom: 15px;
}

.skeleton-tab {
    flex: 1;
    height: 38px;
    background: #282D3A;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-right: 5px;
}

.skeleton-tab:last-child {
    margin-right: 0;
}

.skeleton-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 15px;
}

.skeleton-trade-item {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skeleton-trade-asset-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skeleton-flag-pair {
    display: flex;
    gap: 2px;
}

.skeleton-flag {
    width: 12px;
    height: 12px;
    background: #282D3A;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-asset-name {
    width: 60px;
    height: 12px;
    background: #282D3A;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-trade-time {
    width: 35px;
    height: 11px;
    background: #282D3A;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-trade-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skeleton-trade-direction {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skeleton-direction-icon {
    width: 20px;
    height: 20px;
    background: #282D3A;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-trade-amount {
    width: 45px;
    height: 12px;
    background: #282D3A;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-trade-result {
    width: 35px;
    height: 12px;
    background: #282D3A;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}





.skeleton-body {
    flex: 1;
    display: flex;
}

.skeleton-left-sidebar {
    width: 80px;
    background: #1C1F2D;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.skeleton-main {
    flex: 1;
    background: repeating-linear-gradient(110deg,
            #1c1f2d,
            #1c1f2d 6px,
            #232634 6px,
            #232634 12px) !important;
    margin-left: 80px;
}

.skeleton-sentiment-section {
    position: fixed;
    left: 90px;
    top: 62px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.skeleton-plus-icon {
    width: 40px;
    height: 40px;
    background: #232634;
    border-radius: 6px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-top: 20px;
}

.skeleton-sentiment-bar {
    width: 30px;
    flex: 1;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

.skeleton-menu-icon {
    width: 24px;
    height: 24px;
    background: #404553;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-bottom: 10px;
    margin-top: 18px;
}

.skeleton-nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    justify-content: center;
    flex: 1;
}

.skeleton-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skeleton-nav-circle {
    width: 25px;
    height: 25px;
    background: #232634;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-nav-line {
    width: 35px;
    height: 10px;
    background: #232634;
    border-radius: 1px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-settings-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.skeleton-settings-group {
    display: flex;
    gap: 8px;
}

.skeleton-settings-icon {
    width: 20px;
    height: 20px;
    background: #232634;
    border-radius: 50%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-bottom-boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-bottom-box {
    width: 50px;
    height: 50px;
    background: #232634;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-main {
    flex: 1;
    margin-left: 60px;
    margin-right: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}



.tab-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-content::-webkit-scrollbar {
    display: none;
}

/* Asset Section */
.asset-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.flag-container {
    position: relative;
    width: 30px;
    height: 18px;
    margin-right: 8px;
    margin-left: -2px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Prevent flags from shrinking */
}

.flag-container svg {
    position: absolute;
    height: 16px;
    width: 16px;
    border: 2px solid #353a4d;
    border-radius: 50%;
}

.flag-container svg:first-child {
    left: 0;
    z-index: 1;
}

.flag-container svg:last-child {
    left: 11.2px;
    z-index: 2;
}

.flag {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    border: 1px solid #fff;
}

.flag-usa {
    background: linear-gradient(to bottom,
            #B22234 0%, #B22234 7.7%,
            white 7.7%, white 15.4%,
            #B22234 15.4%, #B22234 23.1%,
            white 23.1%, white 30.8%,
            #B22234 30.8%, #B22234 38.5%,
            white 38.5%, white 46.2%,
            #B22234 46.2%, #B22234 53.9%,
            white 53.9%, white 61.6%,
            #B22234 61.6%, #B22234 69.3%,
            white 69.3%, white 77%,
            #B22234 77%, #B22234 84.7%,
            white 84.7%, white 92.4%,
            #B22234 92.4%, #B22234 100%);
    z-index: 1;
}

.flag-usa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: #3C3B6E;
    z-index: 2;
}

.flag-bangladesh {
    background: #006A4E;
    left: 6px;
    z-index: 2;
}

.flag-bangladesh::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F42A41;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.asset-name {
    color: white;
    font-weight: 900;
    font-size: 14px;
    /* margin-right: 7px; */
    flex: 1;
    /* Allow name to take available space */
    min-width: 0;
    /* Critical for text wrapping in flex */
    word-break: break-word;
    /* Ensure wrapping */
}

.asset-return-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* Push container to the right */
    height: 100%;
    /* Take full height if needed */
    flex-shrink: 0;
    /* Prevent return value from shrinking */
}

.asset-return {
    /* color: #6B6F7A; */
    color: #8E9099;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 0 1px currentColor;
    white-space: nowrap;
}

/* .asset-header.multiline .asset-return rule removed as it is handled by flexbox centering */

.trading-chart__server-time {
    display: flex;
    pointer-events: none;
    position: absolute;
    top: 73px;
    left: 52px;
    z-index: 100;
}

.server-time {
    color: #6B6E79;
    font-size: 10px;
    line-height: 12px;
    padding-left: 14px;
    pointer-events: all;
    transition: color .2s linear;
    white-space: nowrap;
}

.server-time::before {
    background-color: #353a4d;
    border-radius: 50%;
    content: "";
    display: block;
    height: 10px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
}

.server-time::after {
    background-color: #353a4d;
    border-radius: 50%;
    content: "";
    display: block;
    height: 4px;
    left: 3px;
    opacity: .5;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
}

.server-time.online {
    color: #ffffff;
}

.server-time.online::before {
    background-color: #0faf59;
    opacity: .2;
}

.server-time.online::after {
    opacity: 1;
    background-color: #0faf59;
}

.server-time span {
    color: #D5D5D5;
    font-size: 10px;
    margin-left: 2px;
    opacity: .5;
    font-weight: 500;
}

.pair-information {
    align-items: center;
    background: rgba(2, 111, 211, .1);
    border-radius: 100px;
    color: #026fd3;
    cursor: pointer;
    display: flex;
    font-size: 10px;
    font-weight: 900;
    justify-content: center;
    left: 50px;
    line-height: 12px;
    padding: 8px 10px;
    pointer-events: auto;
    position: absolute;
    text-transform: uppercase;
    top: 93px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: -moz-max-content;
    width: max-content;
    z-index: 100;
}

.pair-information svg {
    height: 16px;
    margin-right: 6px;
    width: 16px;
}

.pending-orders {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #2b99ff;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    background: #2B3040;
    padding-top: 0;
    margin-top: 15px;
}

.pending-title {
    display: flex;
    align-items: center;
    color: #2B99FF;
}

.pending-title svg {
    width: 12px;
    height: 12px;
    fill: #2B99FF;
    margin-right: 6px;
}

.toggle-switch {
    position: relative;
    width: 26px;
    height: 16px;
    /* margin-right: 4px; */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 1px solid #2b99ff;
    transition: .4s;
    border-radius: 12px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 1.5px;
    bottom: 2px;
    background-color: #2b99ff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #2B99FF;
    border-color: #2B99FF;
}

input:checked+.toggle-slider:before {
    transform: translateX(11px);
    background-color: white;
}

.time-section {
    width: 100%;
    height: 44px;
    border: 1px solid #6B6F7A;
    border-radius: 4px;
    position: relative;
    margin: 13px 0 23px 0;
    cursor: pointer;
}

.time-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.time-dropdown.show {
    display: block;
}

.time-dropdown-row {
    display: flex;
    padding: 2px;
}

.time-dropdown-item {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 0 1px;
    background: #494E5F;
}

.time-dropdown-item:hover {
    background: #3D4354;
    color: white;
}

.time-dropdown-item.active {
    background: #026FD3;
    color: white;
}

.time-legend {
    position: absolute;
    top: -10px;
    left: 11px;
    background: #2B3040;
    padding: 0 5px;
    color: hsla(0, 0%, 100%, .3);
    font-size: 12px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 17px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    padding: 0 12px;
}

.time-control {
    cursor: pointer;
    width: 24px;
    /* kept as default */
    height: 24px;
    /* kept as default */
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .1);
    /* kept as default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0px;
    /* shrink text node to 0px so it doesn't push pseudo-element off-center */
    color: transparent;
    /* hides original text */
    user-select: none;
    transition: background-color 0.2s;
}

.time-control:not(.disabled):hover {
    background: #555966;
    /* kept as default */
}

.time-control.disabled {
    opacity: 1 !important;
    /* Visual circle color completely solid and unchanged */
    cursor: default;
    /* cursor is default when disabled/non-functional */
}

/* Pseudo-elements for the icons */
.time-control::before {
    display: inline-block;
    font-size: 16px;
    /* kept as default icon size */
    color: #ffffff !important;
    /* Visually stays exactly white, identical to normal state */
    transition: color 0.2s;
}

.time-control.plus::before {
    content: "+";
    /* kept as default (no scaleX) */
}

.time-control.minus::before {
    content: "-";
    transform: scaleX(1.8);
    /* Stretches minus horizontally to increase its width */
}

.time-value {
    /* width: 50px; */
    text-align: left;
    user-select: none;
    margin-left: -46px;
}

.time-switch {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #2B3040;
    color: #2B99FF;
    font-weight: 900;
    font-size: 10px;
    padding: 0 5px;
    white-space: nowrap;
    cursor: pointer;
}

/* Timer Section Styles */
.timer-section {
    width: 100%;
    height: 44px;
    border: 1px solid #3D4354;
    border-radius: 4px;
    position: relative;
    margin: 0 0 20px 0;
    cursor: pointer;
}

.timer-legend {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #2B3040;
    padding: 0 5px;
    color: #60626C;
    font-size: 15px;
}

.timer-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 17px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    padding: 0 12px;
}

.timer-value {
    text-align: left;
    user-select: none;
    margin-left: 5px;
    /* font-weight: 600; */
}

.timer-switch {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #2B3040;
    color: #2B99FF;
    font-weight: 900;
    font-size: 10px;
    padding: 0 5px;
    white-space: nowrap;
    cursor: pointer;
}

.timer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.timer-dropdown.show {
    display: block;
}

.timer-dropdown-row {
    display: flex;
    padding: 2px;
}

.timer-dropdown-item {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 0 1px;
    background: #494E5F;
}

.timer-dropdown-item:hover {
    background: #3D4354;
    color: white;
}

.timer-dropdown-item.active {
    background: #494E5F;
    color: white;
}

.investment-section {
    width: 100%;
    height: 44px;
    border: 1px solid #6B6F7A;
    /*(HK chng)*/
    border-radius: 4px;
    position: relative;
    margin: 0 0 20px 0;
}

.investment-legend {
    /* position: absolute;
    top: -9px;
    left: 9px;
    background: #2B3040;
    padding: 0 5px;
    color: #60626C;
    font-size: 14px;
    font-weight: 600; */

    position: absolute;
    top: -10px;
    left: 11px;
    background: #2B3040;
    padding: 0 5px;
    color: hsla(0, 0%, 100%, .3);
    font-size: 12px;
}

.investment-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
}

.investment-control {
    /* cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #676b79;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    user-select: none; */

    cursor: pointer;
    width: 24px;
    /* kept as default */
    height: 24px;
    /* kept as default */
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .1);
    /* kept as default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0px;
    /* shrink text node to 0px so it doesn't push pseudo-element off-center */
    color: transparent;
    /* hides original text */
    user-select: none;
    transition: background-color 0.2s;
}

.investment-control:not(.disabled):hover {
    background: #555966;
    /* kept as default */
}

.investment-control.disabled {
    opacity: 1 !important;
    /* Visual circle color completely solid and unchanged */
    cursor: default;
    /* cursor is default when disabled/non-functional */
}

/* Pseudo-elements for the icons */
.investment-control::before {
    display: inline-block;
    font-size: 14px;
    /* restored to original default 14px size */
    color: #ffffff !important;
    /* Visually stays exactly white, identical to normal state */
    transition: color 0.2s;
}

.investment-control.plus::before {
    content: "+";
    /* kept as default (no scaleX) */
}

.investment-control.minus::before {
    content: "-";
    transform: scaleX(1.8);
    /* Stretches minus horizontally to increase its width */
}

.investment-value {
    width: 70px;
    text-align: left;
    outline: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 17px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    user-select: none;
    margin-left: -16px;
}

.investment-switch {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #2B3040;
    color: #2B99FF;
    font-weight: 900;
    font-size: 10px;
    padding: 0 5px;
    white-space: nowrap;
    cursor: pointer;
}

.payout-info,
.investment-info {
    display: flex;
    align-items: center;
    /* margin: 0 0 5px 0; */
    padding: 0;
    width: 100%;
}

.payout-info {
    font-weight: 400;
    display: flex;
    align-items: baseline;
    color: hsla(0, 0%, 100%, .5);
    display: flex;
    font-size: 12px;
    line-height: 1.33;
    margin-bottom: 11px;
    position: relative;
}

.investment-info {
    color: #9598A0;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

.info-label {
    white-space: nowrap;
}

.info-dots {
    flex: 1;
    height: 1px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 0 6px;
    /* align-self: baseline; */
}

.info-value {
    white-space: nowrap;
}

.investment-info b,
.payout-info b,
.percentage-payout-info b {
    font-weight: bold;
}

.trade-buttons {
    display: flex;
    flex-direction: column;
}

.trade-btn {
    width: 100%;
    height: 44px;
    /*(HK chng)*/
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    color: white;
    transition: background-color 0.2s;
    font-size: 13px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    /* 'Montserrat', sans-serif; */
}

.upside-btn {
    background: var(--upside-green);
    margin-bottom: 10px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(53, 183, 113, .25);
}

.upside-btn:hover {
    background: #05C65E;
}



.downside-btn {
    background: var(--downside-red);
    margin-top: 0;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 101, 84, .25)
}

.downside-btn:hover {
    background: #FF402B !important;
}

.arrow-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-circle svg {
    width: 20px;
    height: 20px;
    fill: white;
    filter: none;
}

/* Legacy Support Panel Styles - kept for backward compatibility */
.support-section {
    margin-bottom: 25px;
    text-align: center;
}

.support-icon {
    width: 50px;
    height: 50px;
    background: #2a3042;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--icon-color);
}

.support-section h3 {
    color: var(--icon-color);
    margin: 10px 0;
    font-size: 16px;
}

.support-section p {
    color: #a0a4b8;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

/* Chart Controls Divider */
.chart-controls-divider {
    height: 1px;
    background: #3D4354;
    margin: 20px 0;
    width: 100%;
}

.chart-management-section {
    margin-top: 15px;
}

.question-mark {
    width: 50px;
    height: 50px;
    background: #ff3b30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-support {
    color: var(--hover-bg);
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.support-icon i,
.question-mark i {
    color: white;
}

/* Legacy menu-item styles for backward compatibility */
.menu-item {
    align-items: center;
    /* background: var(--menu-bg-item); */
    border-radius: 4px;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 10px 0 15px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: var(--hover-menu-tiles);
}



/* Account Dropdown Styles */
.account-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 417px;
    height: 354px;
    background: #242633;
    border: 3px solid black;
    border-radius: 4px;
    display: none;
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-container {
    display: flex;
    height: 100%;
}

.dropdown-left {
    flex: 1;
    background: #1C1F2D;
    overflow-y: auto;
    padding: 5px;
}

.dropdown-right {
    width: 120px;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.dropdown-right .menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    border-top: none;
}

.dropdown-right .menu-item {
    margin: 0 0 15px;
}

.dropdown-right .menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
}

.dropdown-right .menu-logout {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #333542;
    padding-top: 15px;
}

.dropdown-right .menu-button {
    /* color: #ffffff; */
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.account-dropdown.active {
    display: block;
}

.account-select {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-select-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333542;
}

.account-select-item:last-child {
    border-bottom: none;
}

.level-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 2px 4px;
}

.level {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 183px;
    width: 100%;
    display: flex;
    cursor: pointer;
    background: hsla(0, 0%, 100%, .05);
    padding: 2px 4px;
    border-radius: 4px 0 0 4px;
}

.level-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-icon svg {
    width: 20px;
    height: 20px;
    fill: #026FD3;
}

.level-block {
    display: flex;
    flex-direction: column;
}

.level-name {
    font-weight: 900;
    color: hsla(0, 0%, 100%, .5);
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
}

.level-profit {
    font-weight: bold;
    font-size: 14px;
    line-height: 18px;
    color: #ffffff;
}

.eye {
    padding: 7px 14px;
    margin-inline-start: 2px;
    background: hsla(0, 0%, 100%, .05);
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.eye:hover {
    opacity: 1;
}

.eye svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.block {
    margin-bottom: 15px;
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 16px;
}

.number {
    display: block;
    overflow: hidden;
    opacity: .3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #d7d7d7;
}

.currency {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-text {
    color: #a0a4b8;
    font-size: 14px;
}

.currency-code {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.currency-button {
    background: #026FD3;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s;
}

.currency-button:hover {
    background: #0056b3;
}

.accounts {
    overflow-y: auto;
    max-height: calc(100vh - 38px - 150px - 38px - 8px);
}

.account-select-item-radio {
    position: relative;
    padding: 10px 15px;
    color: hsla(0, 0%, 100%, .5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: transparent;
}

.account-select-item-radio:hover {
    background-color: transparent;
}

.account-select-item-radio.active {
    background-color: transparent;
}

.account-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.account-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.select-name {
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.select-balance {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 12px;
}

.select-balance-block {
    color: hsla(0, 0%, 100%, .5);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}

.select-balance-block .select-balance {
    font-size: 12px;
}

.select-refresh {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.select-refresh:hover {
    opacity: 1;
}

.select-refresh svg {
    width: 20px;
    height: 20px;
    fill: #a0a4b8;
}

.select-pencil {
    display: flex;
    align-items: center;
}

.select-balance-edit {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.select-balance-edit:hover {
    opacity: 1;
}

.select-balance-edit svg {
    width: 14px;
    height: 14px;
    fill: #a0a4b8;
}

.select-balance-edit-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.select-balance-edit:hover .select-balance-edit-tooltip {
    opacity: 1;
}

.select-balance-edit-input {
    display: block;
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid #333542;
    opacity: 1;
    visibility: visible;
}

.input-control {
    position: relative;
    margin-bottom: 15px;
}

.input-control__label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #242633;
    padding: 0 4px;
    color: #a0a4b8;
    font-size: 12px;
}

.input-control__input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #333542;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.input-control__input:focus {
    border-color: #026FD3;
}

.button {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.button--primary {
    background: #026FD3;
    color: #ffffff;
}

.button--primary:hover {
    background: #0056b3;
}

.select-balance-edit-button {
    width: 100%;
    justify-content: center;
}

.select-balance-edit-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.select-limit-text {
    color: #a0a4b8;
    font-size: 12px;
    margin: 4px 0;
}

.select-limit-button {
    background: transparent;
    border: 1px solid #026FD3;
    color: #026FD3;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.select-limit-button:hover {
    background: #026FD3;
    color: #ffffff;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #333542;
}

.menu-logout {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.menu-button {
    flex: 1;
    /* padding: 12px 16px; */
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-button-green {
    /* background: #0FAF59; */
    color: #0FAF59;
}

.menu-button-green:hover {
    color: #05C65E;
}

.menu-button-primary {
    /* background: #026FD3; */
    color: #026FD3;
}

.menu-button-primary:hover {
    color: #0056b3;
}

.menu-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.menu .menu-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.menu .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Asset Cards Container */
.asset-cards-container {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-top: 5px;
    position: relative;
    z-index: 10;
}

.asset-card {
    width: 136px;
    height: 44px;
    background-color: #494F65;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}



.asset-card.active {
    background-color: #2B99FF;
}

/* Updated Asset Cards Styles */
.asset-cards-container {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.asset-cards-container::-webkit-scrollbar {
    height: 4px;
}

.asset-cards-container::-webkit-scrollbar-thumb {
    background: #494F65;
    border-radius: 2px;
}

.asset-card {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.asset-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-flags {
    display: flex;
    gap: 4px;
}

.asset-flag {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.asset-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.asset-payout {
    color: #0FA054;
    font-size: 10px;
    font-weight: 600;
}

.asset-close,
.asset-pin {
    position: absolute;
    top: 4px;
    width: 12px;
    height: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-close {
    right: 4px;
}

.asset-pin {
    right: 18px;
}





.asset-close:hover,
.asset-pin:hover {
    background: #026FD3;
}

.asset-close svg,
.asset-pin svg {
    width: 8px;
    height: 8px;
    fill: white;
}

/* Overlapping Asset Cards System */
.asset-cards-container {
    position: absolute;
    top: 5px;
    left: 20px;
    right: 20px;
    height: 44px;
    display: flex;
    z-index: 100;
    pointer-events: none;
}

.asset-card {
    width: 136px;
    height: 44px;
    background-color: #494F65;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.asset-card.active {
    background-color: #2B99FF;
}

.asset-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.asset-flags {
    display: flex;
    gap: 4px;
}

.asset-flag {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.asset-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.asset-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.asset-payout {
    color: #0FA054;
    font-size: 10px;
    font-weight: 600;
}

/* Clean Overlapping Asset Cards System */
.asset-cards-container {
    position: absolute;
    top: 5px;
    left: 20px;
    right: 20px;
    height: 44px;
    display: flex;
    z-index: 100;
}

.asset-card {
    width: 136px;
    height: 44px;
    background-color: #494F65;
    border-radius: 6px;
    position: absolute;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.asset-card:hover {
    background-color: #5a6078;
    z-index: 200 !important;
    transform: translateX(0) !important;
}

.asset-card-tab:hover .asset-card-close,
.asset-card-tab:hover .asset-card-pin {
    opacity: 1;
    background: #5a6078;
}

.asset-card-tab:hover {
    z-index: 200 !important;
    transform: translateX(0) !important;
    background-color: #5a6078;
}

.asset-card-close:hover,
.asset-card-pin:hover {
    background: #026FD3 !important;
}

.asset-card.active {
    background-color: #2B99FF;
}

.asset-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.asset-flags {
    display: flex;
    gap: 4px;
}

.asset-flag {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.asset-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.asset-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.asset-payout {
    color: #0FA054;
    font-size: 10px;
    font-weight: 600;
}



/* Asset Cards Z-Index Fix */
.asset-cards-container {
    z-index: 200 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 5px 20px 0 20px !important;
    display: block !important;
    overflow: visible !important;
}

.asset-card {
    position: absolute;
    top: 0;
    display: flex;
    padding: 5px 14px 5px 11px;
    margin: 0 6px;
    background: var(--graph-tab-bg);
    border: 1px solid var(--graph-tab-border);
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 900;
    color: var(--color-black);
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    filter: var(--graph-tab-filter);
    box-shadow: var(--graph-tab-box-shadow);
}

/* Override box-shadow when background image is active */
.main-content.chart-has-background .asset-card,
.main-content.chart-has-background .asset-card-tab {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 201 !important;
}

.asset-card:hover {
    z-index: 300 !important;
}

.asset-flag {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    fill: currentColor !important;
}

.trading-chart__top {
    left: 50px;
    margin-top: 10px;
    margin-bottom: 20px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 50;
}

.trading-chart__assets {
    align-items: center;
    display: flex;
    margin-bottom: 20px;
    /* margin-top: 10px; */
    pointer-events: auto;
}

.asset-select {
    position: relative;
}

.asset-select__button {
    background-color: #026fd3;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(28, 32, 46, .2);
    color: #fff;
    flex-shrink: 0;
    margin-right: 10px;
    padding: 14px;
    transition: all .2s linear;
    transition-property: background-color, box-shadow;
}

.asset-select__button .icon,
.asset-select__button svg {
    transition: inherit;
    transition-property: inherit;
    transition-duration: .1333333333333s;
    transition-property: transform;
}

/* Fix floating tabs */
.trading-chart__top {
    position: absolute !important;
    z-index: 100 !important;
}

/* Asset Card Tabs - Non-conflicting classes */
.asset-card-tabs {
    display: flex;
    position: relative;
    height: 44px;
    top: 0;
    z-index: 60;
}

.asset-card-items {
    display: flex;
}

.asset-card-tabs .active {
    color: #fff;
    background: #000000;
    border: 1px solid #000000;
}

.asset-card-tab {
    position: relative;
    display: flex;
    width: 182px;
    /* width: 136px; preserved for future use */
    height: 44px;
    padding: 5px 14px 5px 11px;
    margin: 0 6px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    /* font-weight: 900; */
    /* Preserved for future use */
    color: #FFFFFF;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 102;
    align-items: center;
    box-sizing: border-box;
}



.asset-card-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    /* padding: 5px 11px; */
    box-sizing: border-box;
}

.asset-card-flags {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.asset-card-flag {
    flex: none;
    width: 14px;
    height: 14px;
    margin: 0;
    margin-left: -1.4px;
}

.asset-card-flag:first-child {
    margin-left: 0;
}

/* Additional asset card styles */
.asset-card-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 80px;
    margin-inline-start: 23px;
}

.asset-card-label {
    color: white;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-card-label .icon-caret {
    position: absolute;
    top: 11px;
    right: 15px;
    width: 9px;
    height: 6px;
    fill: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.asset-card-tab.active .asset-card-label .icon-caret {
    opacity: 1;
}

.asset-card-tab.active.asset-card-tab:hover .asset-card-flags.asset-card-flag:last-child {
    border: 2px solid #000000;
}

.asset-card-payout {
    color: #ff8a00;
    font-size: 12px;
    font-weight: 600;
}

.asset-card-close,
.asset-card-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-card-close {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #2B3040;
    border: 2px solid #1F2330;
    border-radius: 100px;
    cursor: pointer;
}

.asset-card-pin {
    position: absolute;
    top: 10px;
    inset-inline-end: -7px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #2B3040;
    border: 2px solid #1F2330;
    border-radius: 100px;
    cursor: pointer;
}

.asset-card-tab:hover .asset-card-close,
.asset-card-tab:hover .asset-card-pin {
    display: flex;
    opacity: 1;
}

.asset-card-tab.active .asset-card-close {
    display: flex !important;
    opacity: 1 !important;
}

.asset-card-tab.active .asset-card-pin {
    display: none !important;
}

.asset-card-tab.active:hover .asset-card-pin {
    display: flex !important;
    opacity: 1 !important;
}

.asset-card-tab.active {
    background: #000000 !important;
    border: none !important;
}

.asset-card-tab.active .asset-card-close,
.asset-card-tab.active .asset-card-pin {
    background: #000000 !important;
    border: 2px solid #2b3040 !important;
}

.asset-card-tab.active .asset-card-close:hover {
    background: #026FD3 !important;
}

.asset-card-close svg,
.asset-card-pin svg {
    width: 8px;
    height: 8px;
    fill: white;
}

.asset-card-close svg {
    width: 6px;
    height: 6px;
    stroke-width: 1;
    font-weight: 300;
}

.icon-close-tiny {
    width: 6px;
    height: 6px;
}



.asset-card-blockLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asset-card-blockPayout {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Activate Charts Dropdown Styles */
.activate-charts-section {
    margin-top: 15px;
}

.activate-charts-dropdown {
    position: relative;
    margin-bottom: 10px;
}

.activate-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.activate-dropdown-header:hover {
    background: #333542;
}

.activate-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 10;
}

.activate-asset-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    border-bottom: 1px solid #3D4354;
    cursor: pointer;
    transition: background 0.2s;
}

.activate-asset-item:hover {
    background: rgba(2, 111, 211, 0.2);
}

.activate-asset-item:last-child {
    border-bottom: none;
}

.activate-dropdown-header .dropdown-arrow {
    transition: transform 0.3s ease;
}

.activate-dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Chart Controls Divider */
.chart-controls-divider {
    height: 1px;
    background: #3D4354;
    margin: 20px 0;
}

.chart-management-section {
    margin-top: 15px;
}

/* Badge Controller Styles */
.badge-controller-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #3D4354;
}

.badge-controller-header h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    text-shadow: 0 0 10px rgba(43, 153, 255, 0.5);
    font-family: 'Times New Roman', Times, serif;
}

.badge-input-group {
    margin-bottom: 12px;
}

.badge-input-label {
    display: block;
    color: #a0a4b8;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.badge-input-field {
    width: 100%;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.badge-input-field:focus {
    border-color: #2B99FF;
    box-shadow: 0 0 0 2px rgba(43, 153, 255, 0.1);
}

/* Custom styled number input arrows */
.badge-input-field::-webkit-inner-spin-button,
.badge-input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    opacity: 1;
}

.badge-input-field::-webkit-inner-spin-button:hover,
.badge-input-field::-webkit-outer-spin-button:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
}

/* Firefox number input styling */
.badge-input-field[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.badge-input-field::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
}

.badge-update-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-update-button:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 153, 255, 0.3);
}

.badge-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.badge-status.success {
    background: rgba(15, 160, 84, 0.1);
    color: #0FA054;
    border: 1px solid rgba(15, 160, 84, 0.2);
    display: block;
}

/* Time Jump Controller Styles */
.time-jump-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #3D4354;
}

.time-jump-header {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    /* display: flex;
    align-items: center;
    gap: 8px; */
}

.time-jump-header i {
    color: #FF8A00;
    font-size: 16px;
}

.time-input-group {
    margin-bottom: 12px;
}

.time-input-label {
    display: block;
    color: #a0a4b8;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.time-input-field {
    width: 100%;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.time-input-field:focus {
    border-color: #FF8A00;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.1);
}

.time-input-field.error {
    border-color: #E75B4D;
    box-shadow: 0 0 0 2px rgba(231, 91, 77, 0.1);
}

.time-input-field.success {
    border-color: #0FA054;
    box-shadow: 0 0 0 2px rgba(15, 160, 84, 0.1);
}

.time-range-display {
    font-size: 11px;
    color: #60626C;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

.time-jump-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FF8A00, #E6750E);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.time-jump-button:hover {
    background: linear-gradient(135deg, #E6750E, #CC6A0C);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

.time-jump-button:disabled {
    background: #4A4A4A;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.time-jump-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.time-jump-status.success {
    background: rgba(15, 160, 84, 0.1);
    color: #0FA054;
    border: 1px solid rgba(15, 160, 84, 0.2);
    display: block;
}

.time-jump-status.error {
    background: rgba(231, 91, 77, 0.1);
    color: #E75B4D;
    border: 1px solid rgba(231, 91, 77, 0.2);
    display: block;
}

.time-jump-status.warning {
    background: rgba(255, 138, 0, 0.1);
    color: #FF8A00;
    border: 1px solid rgba(255, 138, 0, 0.2);
    display: block;
}

/* Chart Control Buttons */
.chart-control-buttons {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #3D4354;
}

.button-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: center;
}

.button-row>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.button-label {
    color: #a0a4b8;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.control-btn:hover::before {
    transform: translateX(100%);
}

.play-btn {
    background: linear-gradient(135deg, #0FA054, #0D8A47);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 160, 84, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, #0D8A47, #0B7A3F);
    box-shadow: 0 6px 20px rgba(15, 160, 84, 0.4);
    transform: translateY(-2px);
}

.pause-btn {
    background: linear-gradient(135deg, #FF9500, #E6850E);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.pause-btn:hover {
    background: linear-gradient(135deg, #E6850E, #CC750C);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    transform: translateY(-2px);
}

.reset-btn {
    background: linear-gradient(135deg, #E75B4D, #D14A3C);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 91, 77, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #D14A3C 60%, #BB4234);
    box-shadow: 0 6px 20px rgba(231, 91, 77, 0.4);
    transform: translateY(-2px);
}

.build-all-btn {
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 153, 255, 0.3);
}

.build-all-btn:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
    box-shadow: 0 6px 20px rgba(43, 153, 255, 0.4);
    transform: translateY(-2px);
}

.data-reset-btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.data-reset-btn:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.clear-storage-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.clear-storage-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Scrollable content area with fixed footer */
.panel-content.show-signals {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.signals-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px;
}

.signals-footer {
    position: fixed !important;
    bottom: 0 !important;
    /* left: 80px !important; */
    width: 240px !important;
    background: #2B3040 !important;
    z-index: 1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Custom scrollbar styling */
.signals-content::-webkit-scrollbar {
    width: 6px;
}

.signals-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.signals-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.signals-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Ensure accordions work within scrollable area */
.accordion-content.active {
    max-height: none !important;
    height: auto;
}

/* Tab SVG icon styling */
.tab .icon-time-setting {
    width: 16px;
    height: 16px;
    fill: #CBCCCF;
}

/* Remove padding from tabs-header and make it full width */
.tabs-header {
    padding: 0;
    margin: -4px -4px 0 -4px;
}

/* Tab SVG icon sizing to match FontAwesome icons */
/* .tab .icon-deal-list-trades {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
} */

/* Tab SVG icon sizing for trades icon */
.tab .icon-deal-list-trades {
    width: 16px !Important;
    height: 16px !Important;
    fill: #8E9099 !Important;
}

/* Crosshair Bell Icon Styling */
.icon-notification.notification-bell,
.icon-notification.notification-bell svg,
#chartContainer .icon-notification.notification-bell {
    width: 16px !important;
    height: 16px !important;
    fill: white !important;
    stroke: black !important;
    stroke-width: 2px !important;
    filter: none !important;
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

.icon-notification.notification-bell *,
.icon-notification.notification-bell svg *,
#chartContainer .icon-notification.notification-bell *,
#chartContainer .icon-notification.notification-bell path,
#chartContainer .icon-notification.notification-bell use,
#chartContainer .icon-notification.notification-bell g {
    fill: white !important;
    stroke: black !important;
    stroke-width: 1px !important;
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the bell icon container is properly positioned */
#chartContainer .icon-notification.notification-bell {
    position: absolute !important;
    pointer-events: auto !important;
    transform: none !important;
}

/* Multi-Chart Algorithm Styles */
.multi-chart-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 25;
    background: rgba(43, 48, 64, 0.9);
    padding: 8px;
    border-radius: 6px;
}

.chart-control-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chart-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.chart-control-btn.active {
    background: #026FD3;
    border-color: #026FD3;
}

.chart-layout-select {
    background: rgba(43, 48, 64, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 8px;
    outline: none;
    cursor: pointer;
}

.chart-layout-select option {
    background: #2B3040;
    color: #ffffff;
}

.chart-instance {
    position: relative;
    background: #1C1F2D;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-instance.active {
    border-color: #026FD3;
    box-shadow: 0 0 0 2px rgba(2, 111, 211, 0.3);
}

.chart-instance.single {
    width: 100%;
    height: 100%;
}

.chart-instance.dual {
    width: calc(50% - 5px);
    height: 100%;
    float: left;
}

.chart-instance.dual:nth-child(2) {
    margin-left: 10px;
}

.chart-instance.quad {
    width: calc(50% - 5px);
    height: calc(50% - 5px);
    float: left;
}

.chart-instance.quad:nth-child(2),
.chart-instance.quad:nth-child(4) {
    margin-left: 10px;
}

.chart-instance.quad:nth-child(3),
.chart-instance.quad:nth-child(4) {
    margin-top: 10px;
}

.chart-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(43, 48, 64, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 20;
    font-size: 12px;
    color: #ffffff;
}

.chart-symbol {
    font-weight: 600;
}

.chart-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.2s;
}

.chart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chart-canvas-container {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
}

.chart-canvas {
    width: 100%;
    height: 100%;
    background: #1C1F2D;
}

/* Clear floats */
.chart-area::after {
    content: "";
    display: table;
    clear: both;
}

/* Chart Loader */
.chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chart-loader-gif {
    width: 35px;
    height: 35px;
}

/* Price Reversal Box and Trade Information Box Z-Index Fix */
.price-reversal-box {
    z-index: 15;
}

.trade-information-box {
    z-index: 20;
}

/* Trade Progress Bar Styles */
.trade-progress-bar {
    background: #686F86 !important;
    background-image: none !important;
}

.progress-fill {
    background: #0FA054 !important;
    background-image: none !important;
    filter: none !important;
}

.progress-fill.losing {
    background: #E75B4D !important;
    background-image: none !important;
    filter: none !important;
}

.asset-card-tab .trade-progress-bar {
    background: #686F86 !important;
    background-image: none !important;
}

.asset-card-tab .progress-fill {
    background: #0FA054 !important;
    background-image: none !important;
}

.asset-card-tab .progress-fill.losing {
    background: #E75B4D !important;
    background-image: none !important;
}

/* Trade Payout Box Styles */
.trade-payout-box {
    background: #E75B4D;
    color: white;
    padding: 0px 2px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    height: 16px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Chart Hover Overlay System - Bounded to chart container */
#chartContainer .chart-hover-overlay {
    position: absolute;
    left: 50px;
    width: calc(100% - 50px);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
}

#chartContainer .chart-hover-overlay.up-overlay {
    opacity: 1;
    top: 0;
    height: var(--price-line-position, 50%);
    background: linear-gradient(to top,
            rgba(25, 195, 109, 0.18) 5%,
            rgba(231, 91, 77, 0.08) 95%);
}

#chartContainer .chart-hover-overlay.down-overlay {
    opacity: 1;
    top: var(--price-line-position, 50%);
    height: calc(100% - var(--price-line-position, 50%) - 30px);
    background: rgba(231, 91, 77, 0.15);
}

/* Searchable Dropdown Input Styles */
.activate-dropdown-search {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.activate-dropdown-search::placeholder {
    color: #a0a4b8;
    opacity: 1;
}

.activate-dropdown-search:focus {
    cursor: text;
}

/* Asset Selection Container */
.asset-selection-container,
.controls-container,
.time-format-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #3D4354;
    padding: 15px;
    margin-bottom: 20px;
}

.asset-selection-container h3,
.controls-container h3,
.time-jump-header h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    text-shadow: 0 0 10px rgba(43, 153, 255, 0.5);
    font-family: 'Times New Roman', Times, serif;
}

/* Payout Controller Styles */
.payout-controller-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #3D4354;
}

.payout-controller-header h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    text-shadow: 0 0 10px rgba(43, 153, 255, 0.5);
    font-family: 'Times New Roman', Times, serif;
}

.payout-mode-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.payout-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a4b8;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    transition: all 0.2s;
}

.payout-radio-label:hover {
    border-color: #2B99FF;
    background: rgba(43, 153, 255, 0.05);
}

.payout-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.payout-radio-label input[type="radio"]:checked+span {
    color: #2B99FF;
    font-weight: 600;
}

.payout-update-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.payout-update-button:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 153, 255, 0.3);
}

/* ⏱️ TIME FORMAT SELECTION — Styled like Payout Controls */
/* .time-format-section {
    width: 100%;
    background: #1C1F2D;
    padding: 20px 25px;
    border-radius: 6px;
    border: 1px solid #3D4354;
} */

.time-format-header h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    text-shadow: 0 0 10px rgba(43, 153, 255, 0.5);
    font-family: 'Times New Roman', Times, serif;
}

.time-format-mode-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.time-format-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a4b8;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    transition: all 0.2s;
}

.time-format-radio-label:hover {
    border-color: #2B99FF;
    background: rgba(43, 153, 255, 0.05);
}

.time-format-radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3D4354;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #1C1F2D;
    flex-shrink: 0;
}

.time-format-radio-label input[type="radio"]:hover {
    border-color: #2B99FF;
    box-shadow: 0 0 8px rgba(43, 153, 255, 0.3);
}

.time-format-radio-label input[type="radio"]:checked {
    border-color: #2B99FF;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    box-shadow: 0 0 12px rgba(43, 153, 255, 0.5);
}

.time-format-radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s ease;
}

.time-format-radio-label input[type="radio"]:checked+span {
    color: #2B99FF;
    font-weight: 600;
}

.time-format-update-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.time-format-update-button:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 153, 255, 0.3);
}

.time-format-status {
    text-align: center;
    font-size: 12px;
    color: #a0a4b8;
    min-height: 18px;
}

.payout-custom-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #3D4354;
}

.payout-input-group {
    margin-bottom: 12px;
}

.payout-input-label {
    display: block;
    color: #a0a4b8;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.payout-dropdown {
    position: relative;
}

.payout-dropdown-header {
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.payout-dropdown-header:hover {
    border-color: #2B99FF;
}

.payout-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.payout-dropdown-item {
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.payout-dropdown-item:hover {
    background: rgba(43, 153, 255, 0.1);
}

.payout-input-field {
    width: 100%;
    padding: 8px 12px;
    background: #2B3040;
    border: 1px solid #3D4354;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.payout-input-field:focus {
    border-color: #2B99FF;
    box-shadow: 0 0 0 2px rgba(43, 153, 255, 0.1);
}

.payout-input-field.error {
    border-color: #E75B4D;
}

.payout-error-message {
    color: #E75B4D;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.payout-save-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0FA054, #0D8A47);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.payout-save-button:hover {
    background: linear-gradient(135deg, #0D8A47, #0B7A3E);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 160, 84, 0.3);
}

.payout-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.payout-status.success {
    background: rgba(15, 160, 84, 0.1);
    color: #0FA054;
    border: 1px solid rgba(15, 160, 84, 0.2);
    display: block;
}

.payout-status.error {
    background: rgba(231, 91, 77, 0.1);
    color: #E75B4D;
    border: 1px solid rgba(231, 91, 77, 0.2);
    display: block;
}


/* Custom styled number input arrows for payout percentage input */
.payout-input-field::-webkit-inner-spin-button,
.payout-input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    opacity: 1;
}

.payout-input-field::-webkit-inner-spin-button:hover,
.payout-input-field::-webkit-outer-spin-button:hover {
    background: linear-gradient(135deg, #1E7CE8, #1A6DD1);
}

/* Firefox number input styling */
.payout-input-field[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.payout-input-field::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
}


/* Custom attractive radio button styling for payout controls */
.payout-radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3D4354;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #1C1F2D;
    flex-shrink: 0;
}

.payout-radio-label input[type="radio"]:hover {
    border-color: #2B99FF;
    box-shadow: 0 0 8px rgba(43, 153, 255, 0.3);
}

.payout-radio-label input[type="radio"]:checked {
    border-color: #2B99FF;
    background: linear-gradient(135deg, #2B99FF, #1E7CE8);
    box-shadow: 0 0 12px rgba(43, 153, 255, 0.5);
}

.payout-radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s ease;
}

@keyframes radioCheck {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.payout-radio-label input[type="radio"]:checked+span {
    color: #2B99FF;
    font-weight: 600;
}

/* Candle Countdown Timer Box (Extracted from Canvas) */
.candle-timer-box {
    position: absolute;
    z-index: 16;
    background: #353A4D;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font: bold 10px Arial;
    text-align: center;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.image-upload-section {
    padding: 20px;
    background: #1e2329;
    border-radius: 8px;
    margin-bottom: 20px;
}

.image-upload-section h3 {
    color: #00e5ff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.upload-area {
    border: 1px dashed rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(23, 27, 38, 0.8), rgba(28, 32, 45, 0.5));
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 38px;
    color: rgba(0, 229, 255, 0.4);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #00e5ff;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.upload-text p {
    color: #fff;
    margin: 0 0 6px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.upload-text small {
    color: #6c7a89;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.browse-link {
    color: #00e5ff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dotted #00e5ff;
    transition: all 0.2s ease;
}

.browse-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.upload-preview {
    background: rgba(30, 34, 47, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.upload-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.preview-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.preview-info span,
.preview-info span#file-name {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.remove-btn {
    background: transparent;
    border: 1px solid rgba(241, 77, 91, 0.4);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f14d5b;
    font-size: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.remove-btn:hover {
    background: rgba(241, 77, 91, 0.95);
    color: #fff;
    border-color: #f14d5b;
    box-shadow: 0 0 12px rgba(241, 77, 91, 0.6);
    transform: rotate(90deg);
}

.upload-btn {
    width: 100%;
    background: linear-gradient(135deg, #0072ff, #00d2ff);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.2);
}

.upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3, #0072ff);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
}

.upload-btn:disabled {
    background: rgba(61, 67, 84, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #525a70;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.upload-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.upload-alert.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.1);
}

.upload-alert.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.1);
}

.close-alert-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.close-alert-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.upload-alert.slide-out-left {
    animation: slide-out-left-anim 0.5s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slide-out-left-anim {
    0% {
        transform: translate(0, 0);
        opacity: 1;
        max-height: 80px;
        margin-bottom: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    40% {
        transform: translate(-25px, 15px);
        opacity: 0.8;
    }

    100% {
        transform: translate(-120%, 30px);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.opacity-control,
#opacity-control {
    margin-top: 15px;
    padding: 15px;
    background: rgba(30, 34, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.opacity-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.opacity-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opacity-slider,
#opacity-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

.opacity-slider::-webkit-slider-thumb,
#opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #00e5ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px #00e5ff;
    transition: transform 0.1s ease;
}

.opacity-slider::-webkit-slider-thumb:hover,
#opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.opacity-slider::-moz-range-thumb,
#opacity-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00e5ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px #00e5ff;
    transition: transform 0.1s ease;
}

.opacity-slider::-moz-range-thumb:hover,
#opacity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.opacity-value,
#opacity-value {
    color: #00e5ff;
    font-size: 13px;
    font-weight: 600;
    min-width: 55px;
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.opacity-value::before,
#opacity-value::before {
    content: '[ ';
    color: rgba(0, 229, 255, 0.4);
}

.opacity-value::after,
#opacity-value::after {
    content: ' ]';
    color: rgba(0, 229, 255, 0.4);
}

.remove-bg-btn,
#remove-bg-btn {
    width: 100%;
    background: linear-gradient(135deg, #f14d5b, #d63447);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 77, 91, 0.2);
}

.remove-bg-btn:hover,
#remove-bg-btn:hover {
    background: linear-gradient(135deg, #d63447, #b22434);
    box-shadow: 0 4px 20px rgba(241, 77, 91, 0.4);
}

/* Ensure canvas is transparent when background image is present */
#chartContainer.has-background #chartCanvas {
    background-color: transparent !important;
}