.trade-topBar-component {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: flex-start;   /* حالت پیش‌فرض: همه سمت چپ */
    background: #181a20;           /* همرنگ قالب جدید */
    padding: .5rem 1.1rem .5rem 1.1rem;
    gap: .65rem;
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 9px -7px #10101440;
}

@media (max-width: 650px) {
    .trade-topBar-component {
        padding: .35rem .5rem .35rem .5rem;
        gap: .32rem;
        border-radius: 7px;
        min-height: 36px;
    }
}

/* trade-topBar end */
/* trade-chart-controller */
.trade-chart-controller {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(132deg, #181a20 80%, #1e212a 100%);
    border-radius: 16px;
    box-shadow: 0 3px 12px -8px #0a0b0e40;
    overflow: hidden;
    min-height: 410px;
    margin-bottom: 1.2rem;
}

/* Head bar of chart */
.trade-chart-controller .head {
    border-bottom: 1.5px solid #23242a;
    padding: 0.6rem 1.1rem 0.4rem 1.1rem;
    background: #181a20;
    color: #e4e9f2;
    font-size: 1.09rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.trade-chart-controller .chart-controller {
    width: 100%;
    min-height: 320px;
    height: 596px;
    max-height: 596px;
    background: transparent;
    border-radius: 0 0 16px 16px;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

@media (max-width: 750px) {
    .trade-chart-controller {
        border-radius: 9px;
        min-height: 300px;
    }
    .trade-chart-controller .chart-controller {
        min-height: 210px;
        height: 340px;
        max-height: 340px;
        border-radius: 0 0 9px 9px;
    }
    .trade-chart-controller .head {
        font-size: 1.02rem;
        padding: 0.45rem 0.5rem 0.25rem 0.5rem;
        min-height: 34px;
    }
}

/* end trade-chart-controller */

/* tab-controller */
.tab-controller {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    align-items: center;
    background: transparent;
    border-bottom: 1.5px solid #23242a;
    padding: 0.16rem 0 0.15rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #363841 #23242a;
}

.tab-controller .tab {
    font-size: 1.01rem;
    color: #aeb7c9;
    padding: 0.48rem 0.78rem 0.32rem 0.78rem;
    border-bottom: 2.5px solid transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: IRANSansX, BoldF, 'Vazirmatn', Arial, sans-serif !important;
    background: transparent;
    transition: all 0.25s cubic-bezier(.39,.58,.57,1);
    outline: none;
    min-width: 70px;
    text-align: center;
    position: relative;
    user-select: none;
}

.tab-controller .tab:hover {
    opacity: 1;
    color: #36bf6a;
    background: #21232931;
}

.tab-controller .tab.active {
    color: #1ea87b;
    border-bottom: 2.5px solid #1ea87b;
    background: linear-gradient(180deg, #1ea87b12 10%, transparent 80%);
    box-shadow: 0 2px 8px -9px #36bf6a44;
}

@media (max-width: 700px) {
    .tab-controller {
        gap: 0.25rem 0.39rem;
        padding: 0.1rem 0 0.1rem 0;
    }
    .tab-controller .tab {
        font-size: 0.98rem;
        padding: 0.41rem 0.46rem 0.23rem 0.46rem;
        min-width: 56px;
    }
}

/* اسکرول‌بار شیک برای تب‌ها در موبایل */
.tab-controller::-webkit-scrollbar {
    height: 3px;
    background: #23242a;
}
.tab-controller::-webkit-scrollbar-thumb {
    background: #363841;
    border-radius: 3px;
}



/* order book */
.order-book-screen-controller {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: ##0e0e0e;
    overflow: hidden;
}
.order-book-screen-controller .sort-item {
    padding: 0.3rem;
    cursor: pointer;
    transition: 0.6s;
    transition: 0.6s;
}
.order-book-screen-controller .sort-item:hover {
    opacity: 0.8;
}
.order-book-screen-controller .sort-item.active {
    background: #363841;
}
.order-book-screen-controller .sort-item img {
    width: 25px;
}
.order-book-screen-controller .order-book-controller {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.3rem;
    margin-top: 1.4rem;
    max-height: 700px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.order-book-screen-controller .order-book-controller .order-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    position: relative;
}
.order-book-screen-controller .order-book-controller .order-line span {
    position: relative;
    z-index: 2;
    line-height: 1.5;
}
.order-book-screen-controller .order-book-controller .order-line.sell .line {
    background: linear-gradient(90deg, rgba(112,30,23,0.35) 0%, rgba(112,30,23,0) 100%);
    position: absolute;
    right: 0;
    height: 100%;
    z-index: 1;
    top: 0;
    border-radius: 0 2px 2px 0;
    transition: width 0.25s;
}
.order-book-screen-controller .order-book-controller .order-line.buy .line {
    background: linear-gradient(90deg, rgba(45,111,82,0.30) 0%, rgba(45,111,82,0) 100%);
    position: absolute;
    right: 0;
    height: 100%;
    z-index: 1;
    top: 0;
    border-radius: 0 2px 2px 0;
    transition: width 0.25s;
}

.history-screen-controller {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #0f0f0f;
    overflow: hidden;
    margin-top: 0.3rem;
    padding: 0.5rem;
}
.history-screen-controller .p-datatable .p-column-header-content {
    color: #848d9c !important;
}
.history-screen-controller .p-datatable .p-datatable-thead > tr > th, .history-screen-controller .p-datatable .p-datatable-tbody > tr > td {
    border: none !important;
}


.empty-table-component-controller {
    display: flex;
    flex-wrap: wrap;
    padding:1rem;
    height:220px;
    gap: .5rem !important;
    font-size: 17px;
}


/* --- Order Form Modern Style --- */
.trade-spot-form-controller {
    background: #181a20;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.5rem;
    gap: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px -7px #101010ab;
    min-height: 350px;
}

.trade-spot-form-controller .trade-switch-btn button {
    background: linear-gradient(90deg, #232340 0%, #20203b 100%);
    color: #f2f2f2;
    font-family: IRANSansX, BoldF, 'Vazirmatn', Arial, sans-serif !important;
    border: none;
    border-radius: 10px;
    font-size: 1.02rem;
    padding: 0.6rem 1.3rem;
    margin: 0 0.4rem;
    transition: background 0.17s;
    cursor: pointer;
}

.trade-spot-form-controller .trade-switch-btn button:hover {
    background: linear-gradient(90deg, #353567 0%, #232340 100%);
}

.trade-spot-form-controller .trade-submit-btn {
    background: linear-gradient(90deg, #1ea87b 0%, #36bf6a 100%) !important;
    color: #fff !important;
    padding: 0.7rem 1.1rem 1.05rem;
    border: none;
    border-radius: 12px;
    font-size: 1.09rem;
    font-weight: 600;
    box-shadow: 0 2px 6px -2px #2d6f5240;
    margin-top: 1.1rem;
    transition: background 0.19s;
}
.trade-spot-form-controller .trade-submit-btn:active {
    background: linear-gradient(90deg, #1e8c69 0%, #32ad5d 100%) !important;
}

.trade-spot-form-controller .slider-controller {
    width: 100%;
    position: relative;
    padding: 0 0.7rem;
}

.trade-spot-form-controller .balance-controller {
    padding: 0.7rem 0 0.5rem 0;
    color: #abb8c4;
    font-size: 0.97rem;
}
.trade-spot-form-controller .balance-controller p {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
}

/* --- Slider Styles --- */
.trade-spot-form-controller .vue-slider, 
.trade-spot-form-controller .p-inputnumber {
    width: 100% !important;
    background: transparent !important;
}

.trade-spot-form-controller .vue-slider-marks {
    background: #222 !important;
    border-radius: 4px;
    height: 4px;
}

.trade-spot-form-controller .vue-slider-dot-handle {
    width: 20px !important;
    height: 20px !important;
    border: 3px solid #1ea87b !important;
    background: #fff !important;
    top: -5px;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px -3px #0f0;
    transition: border 0.19s, box-shadow 0.22s;
}

.trade-spot-form-controller .vue-slider-dot-handle:hover {
    border-color: #36bf6a !important;
    box-shadow: 0 0 0 3px #36bf6a55;
}

.trade-spot-form-controller .vue-slider-ltr .vue-slider-mark {
    width: 8px !important;
    height: 2px !important;
    background: #222 !important;
}
.trade-spot-form-controller .vue-slider-ltr .vue-slider-mark-step,
.trade-spot-form-controller .vue-slider-rtl .vue-slider-mark-step {
    width: 13px !important;
    height: 13px !important;
    background-color: #191f26 !important;
    border: 2px solid #363841 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    margin-top: -6px !important;
}
.trade-spot-form-controller .vue-slider-mark-step-active {
    border-color: #1ea87b !important;
    box-shadow: 0 0 0 2px #36bf6a90 !important;
}

/* --- Input / Dropdown --- */
.trade-spot-form-controller .p-inputtext,
.trade-spot-form-controller .p-inputgroup-addon, 
.p-dropdown .p-dropdown-trigger,  
.p-dropdown {
    background: #23272f !important;
    color: #e6e9f2 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    font-size: 1.02rem !important;
    border: 1px solid #242c39 !important;
    transition: border 0.19s;
}
.trade-spot-form-controller .p-inputtext:focus {
    border: 1.5px solid #1ea87b !important;
}
.trade-spot-form-controller .p-inputgroup-addon {
    color: #c4c9d5 !important;
}

/* --- Tooltip --- */
.trade-spot-form-controller .vue-slider-dot-tooltip-inner {
    background: #101b13 !important;
    color: #37d294 !important;
    font-weight: bold;
    border-radius: 7px;
    padding: 0.13rem 0.7rem;
    border: 1.5px solid #36bf6a22;
    font-size: 0.96rem;
    position: relative;
    right: 3px;
}

/* --- Small Tweaks for Slider steps --- */
.trade-spot-form-controller .vue-slider-mark:first-child .vue-slider-mark-step, 
.trade-spot-form-controller .vue-slider-mark:last-child .vue-slider-mark-step {
    display: block !important;
    background: #1ea87b !important;
    border-color: #1ea87b !important;
}

/* --- ریسپانسیو --- */
@media (max-width: 600px) {
    .trade-spot-form-controller {
        padding: 0.5rem 0.6rem;
        border-radius: 9px;
    }
    .trade-spot-form-controller .trade-switch-btn button,
    .trade-spot-form-controller .trade-submit-btn {
        font-size: 0.99rem;
        padding: 0.49rem 0.8rem 0.7rem;
        border-radius: 8px;
    }
    .trade-spot-form-controller .slider-controller {
        padding: 0 0.3rem;
    }
}


.spot-coins-controller {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    gap: 0.6rem;
    background: linear-gradient(134deg, #1d1e22 80%, #21222a 100%);
    border-radius: 15px;
    box-shadow: 0 2px 10px -7px #0a0a0a55;
    padding: 0.75rem 1.1rem 1.1rem 1.1rem;
    min-height: 310px;
    overflow: hidden;
    border: 1.5px solid #25272d;
}

.spot-coins-controller .bg-line-h {
    background: linear-gradient(90deg, #363841 0%, #23272f 100%);
    height: 2px;
    border-radius: 1px;
    margin: 0.18rem 0 0.2rem 0;
}

.spot-coins-controller .p-input-icon-left {
    border: 1.5px solid #2d3037;
    background: #23242a;
    color: #f2f3fa;
    border-radius: 7px;
    font-size: 1.01rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.5rem;
    transition: border 0.19s;
}
.spot-coins-controller .p-input-icon-left:focus-within {
    border: 1.5px solid #1ea87b;
}

.spot-coins-controller .p-datatable {
    background: transparent !important;
}

.spot-coins-controller .p-datatable .p-column-header-content {
    color: #9ba4b7 !important;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
}

.spot-coins-controller .p-datatable-tbody {
    max-height: 430px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #232727 #23242a;
    border-radius: 6px;
}

.spot-coins-controller .p-datatable .p-datatable-thead > tr > th,
.spot-coins-controller .p-datatable .p-datatable-tbody > tr > td {
    border: none !important;
    background: transparent !important;
    padding: 0.38rem 0.5rem;
    font-size: 0.97rem;
    color: #e1e6f1;
}

.spot-coins-controller .p-datatable .p-datatable-tbody > tr {
    transition: background 0.13s;
}
.spot-coins-controller .p-datatable .p-datatable-tbody > tr:hover {
    background: #232f374a !important;
    cursor: pointer;
}

.spot-coins-controller .p-datatable .p-datatable-tbody > tr.selected {
    background: linear-gradient(90deg, #1ea87b30 0%, #363841 100%) !important;
    color: #1ea87b !important;
}

/* اسکرولبار شیک */
.spot-coins-controller .p-datatable-tbody::-webkit-scrollbar {
    width: 7px;
    background: #25272d;
    border-radius: 4px;
}
.spot-coins-controller .p-datatable-tbody::-webkit-scrollbar-thumb {
    background: #2d3037;
    border-radius: 4px;
}

.chart-bar-controller {
    background: #141823;
    padding: .5rem .5rem .8rem;
    width: 100%;
    border: 1px solid #252834;
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.chart-bar-controller .v-line {
    width: 2px;
    height: 20px;
    position: relative;
    top: 10%;
    background: #252834;
}



.current-controller {
    width: 100%;
    height: 100%;
}
.panel-current {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
    background: #23242a;
}
.panel-current .head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 0.15rem solid #363841;
    padding-bottom: 1rem;
}
.panel-current .head .side {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.panel-current .head .side .symbol {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.panel-current .head .side .symbol .column-controller {
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.panel-current .head .side .symbol .column-controller .colum {
    width: 6px;
    height: 20px;
    margin-left: 5px;
    background: #23242a;
}
.panel-current .head .side .symbol .column-controller .colum.green {
    background: #209361;
}
.panel-current .head .side .symbol .column-controller .colum.red {
    background: #b03435;
}
.panel-current .head .side .margin-type {
    padding: 0.5rem;
    background: #23242a;
    padding: 0.3rem 1rem 0.1rem;
    color: #848d9c;
    border-radius: 5px;
}
.panel-current .head .side .position-details button {
    border-radius: 5px;
    background: transparent;
    border: 0.15rem solid #b03435;
    color: #b03435;
    padding: 0.3rem 1rem 0.1rem;
    transition: 0.6s;
}
.panel-current .head .side .position-details button:hover {
    background: #b03435;
    color: var(--text);
}
.panel-current .current-details {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem 0 0;
    overflow-x: hidden;
}
.panel-current .current-details .child {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 20%;
    margin-bottom: 1rem;
}
.panel-current .current-details .child span:first-child {
    width: max-content;
    color: #848d9c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 0.15rem dotted #848d9c;
}
.panel-current .current-details .child span:last-child {
    width: 100%;
    overflow-x: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-controller {
    padding: .5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background: #181a20;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-box-controller {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   
}

.empty-box-controller img {
    width: 150px !important;
    min-height: 140px !important;
    border-radius: 0 !important;
    margin-bottom: 1.5rem;
    position: relative;
    left: .8rem;
}


.update-tp-sl-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
}
.update-tp-sl-form .head {
    display: flex;
    flex-direction: column;
    border-bottom: 0.3rem solid var(--dark-border);
}
.update-tp-sl-form .head .controller {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.update-tp-sl-form .head .controller .child {
    display: flex;
    flex-direction: column;
}
.update-tp-sl-form .head .controller .child:first-child {
    align-items: flex-start;
}
.update-tp-sl-form .head .controller .child:last-child {
    align-items: flex-end;
}
.update-tp-sl-form .head .controller .child .position-type {
    display: flex;
    font-weight: bolder;
    padding: 0.5rem;
    border-radius: 5px;
    margin-right: 1rem;
    align-items: center;
}
.update-tp-sl-form .head .controller .child .title {
    font-size: 0.8rem;
    color: var(--gary);
}
.update-tp-sl-form .panel-controller {
    padding: 1rem 0 0;
    border-bottom: 0.2rem solid var(--dark-border);
}
.update-tp-sl-form .panel-controller .header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0.5rem;
}
.update-tp-sl-form .panel-controller .header .b-red {
    border-left: 0.15rem solid var(--red);
    padding-left: 0.5rem;
    font-size: 1.1rem;
    color: var(--red);
}
.update-tp-sl-form .panel-controller .header .b-green {
    border-left: 0.15rem solid var(--green);
    padding-left: 0.5rem;
    font-size: 1.1rem;
    color: var(--green);
}
.update-tp-sl-form .panel-controller .header button {
    padding: 0.4rem 1rem;
}
.update-tp-sl-form .panel-controller .controller {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.update-tp-sl-form .panel-controller .controller .amount-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    justify-content: space-between;
    border: 0.15rem solid var(--dark-border);
    transition: 0.6s;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.update-tp-sl-form .panel-controller .controller .amount-box .amount-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-right: 0;
    height: 100%;
    background: var(--card);
    height: 48px;
}
.update-tp-sl-form .panel-controller .controller .amount-box .amount-child:last-child {
    color: var(--dark-border);
}
.update-tp-sl-form .panel-controller .controller .amount-box .amount-child:first-child {
    flex: 5;
}
.update-tp-sl-form .panel-controller .controller ul {
    padding: 1rem 1rem 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--gary);
}
.update-tp-sl-form .panel-controller .controller ul li::marker {
    color: var(--green);
}
.update-tp-sl-form .panel-controller .controller ul li:last-child p {
    margin-bottom: 0 !important;
}
.p-invalid {
    border: 0.15rem solid var(--red) !important;
}
