/* Copy Animation */
.base-color {
    color: hsl(var(--main)) !important;
}

.copyInput {
    display: inline-block;
    line-height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.copied::after {
    position: absolute;
    top: 8px;
    right: 12%;
    width: 100px;
    display: block;
    content: "COPIED";
    font-size: 1em;
    padding: 5px 5px;
    color: #fff;
    background-color: hsl(var(--base));
    border-radius: 3px;
    opacity: 0;
    will-change: opacity, transform;
    animation: showcopied 1.5s ease;
}

@keyframes showcopied {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    50% {
        opacity: 0.7;
        transform: translateX(40%);
    }

    70% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
    }
}


.cookies-card {
    width: 520px;
    padding: 30px;
    color: #1E2337;
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 999999;
    transition: all .5s;
    background: #d1d1d1;
    border-radius: 5px;
}

[data-theme=light] .cookies-card {
    background-color: hsl(var(--section-bg));
}

[data-theme=light] .cookies-card p {
    font-weight: 300;
    color: hsl(var(--black)/0.7) !important;
}


.cookies-card.hide {
    bottom: -500px !important;
}

.radius--10px {
    border-radius: 10px;
}

.cookies-card__icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #6e6f70;
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cookies-card__content {
    margin-bottom: 0;
}

.cookies-btn {
    color: #363636;
    text-decoration: none;
    padding: 10px 35px;
    margin: 3px 5px;
    display: inline-block;
    border-radius: 999px;
}

.cookies-btn:hover {
    color: #363636;
}


@media (max-width: 767px) {
    .cookies-card {
        width: 100%;
        left: 0;
        bottom: 0;
        font-size: 14px;
        padding: 15px;
    }
}




.hover-input-popup {
    position: relative;
}

.input-popup {
    display: none;
}

.hover-input-popup .input-popup {
    display: block;
    position: absolute;
    bottom: 130%;
    left: 50%;
    width: 280px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.input-popup::after {
    position: absolute;
    content: '';
    bottom: -19px;
    left: 50%;
    margin-left: -5px;
    border-width: 10px 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #1a1a1a transparent;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.input-popup p {
    padding-left: 20px;
    position: relative;
}

.input-popup p::before {
    position: absolute;
    content: '';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    left: 0;
    top: 4px;
    line-height: 1;
    font-size: 18px;
}

.input-popup p.error {
    text-decoration: line-through;
}

.input-popup p.error::before {
    content: "\f057";
    color: #ea5455;
}

.input-popup p.success::before {
    content: "\f058";
    color: #28c76f;
}

.show-filter {
    display: none;
}

@media(max-width:767px) {
    .responsive-filter-card {
        display: none;
        transition: none;
    }

    .show-filter {
        display: block;
    }
}

.verification-code-wrapper {
    box-shadow: var(--box-shadow) !important;
    background-color: hsl(var(--footer-bg)) !important;
    border: 0 !important;
}

.verification-code input {
    background-color: transparent !important;
    color: hsl(var(--black)) !important;
}

.verification-code::after {
    background-color: transparent !important;
}

.verification-code span {
    background-color: transparent !important;
    border-color: hsl(var(--base)) !important;
}

.verification-code input {
    letter-spacing: 67px !important;
}

/* Mobile Sticky Footer Navigation - Only visible on mobile */
.mobile-sticky-footer {
    display: none;
}

@media screen and (max-width: 767px) {
    .mobile-sticky-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: hsl(var(--dark));
        border-top: 1px solid hsl(var(--white)/0.1);
        z-index: 9999;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-sticky-footer__nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
        gap: 8px;
    }

    .mobile-sticky-footer__nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-sticky-footer__item {
        flex: 0 0 auto;
        min-width: 70px;
        text-align: center;
    }

    .mobile-sticky-footer__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 6px;
        color: hsl(var(--body-color));
        text-decoration: none;
        transition: 0.2s linear;
        border-radius: 6px;
    }

    .mobile-sticky-footer__link:hover,
    .mobile-sticky-footer__link.active {
        color: hsl(var(--base));
        background-color: hsl(var(--white)/0.05);
    }

    .mobile-sticky-footer__icon {
        font-size: 20px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-sticky-footer__icon span {
        font-size: 20px;
    }

    .mobile-sticky-footer__text {
        font-size: 10px;
        font-weight: 400;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* Add padding to dashboard body on mobile to account for sticky footer */
    .dashboard-body {
        padding-bottom: 70px !important;
    }

    /* Wallet Table Mobile Responsive Improvements */
    .table--responsive--lg tbody tr {
        margin-bottom: 12px;
        border-radius: 6px;
        overflow: hidden;
        background-color: hsl(var(--white)/0.03);
    }

    .table--responsive--lg tbody tr td {
        padding: 12px 15px;
        font-size: 0.875rem;
        gap: 10px;
    }

    .table--responsive--lg tbody tr td::before {
        min-width: 120px;
        font-weight: 500;
        color: hsl(var(--white)/0.9);
    }

    .table--responsive--lg tbody tr td:last-child {
        justify-content: flex-end;
    }

    .table--responsive--lg tbody tr td:last-child .btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    /* Customer/Card Layout Mobile Improvements */
    .table--responsive--lg .customer {
        justify-content: flex-end !important;
    }

    .table--responsive--lg .customer__thumb {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .table--responsive--lg .customer__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .table--responsive--lg .customer__content {
        text-align: right !important;
        padding-left: 0;
        padding-right: 12px;
        flex: 1;
        min-width: 0;
    }

    .table--responsive--lg .customer__name {
        font-size: 0.9375rem;
        margin-bottom: 2px;
        word-break: break-word;
    }

    .table--responsive--lg .customer__content small {
        font-size: 0.75rem;
        display: block;
    }

    /* Dashboard Header Menu Mobile Improvements */
    .dashboard-header-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .dashboard-header-menu h4 {
        width: 100%;
        margin-bottom: 0;
    }

    .dashboard-header-menu > div {
        display: flex;
        gap: 15px;
    }

    .dashboard-header-menu__link {
        padding: 8px 0;
        margin-right: 0;
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    /* Table Wrapper Mobile Improvements */
    .table-wrapper {
        padding: 12px;
        overflow-x: hidden;
    }

    /* Improve text alignment for balance values on mobile */
    .table--responsive--lg tbody tr td[data-label*="Balance"],
    .table--responsive--lg tbody tr td[data-label*="Order"] {
        text-align: right;
        font-weight: 500;
    }
}

@media screen and (max-width: 575px) {
    .table--responsive--lg tbody tr td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .table--responsive--lg tbody tr td::before {
        min-width: 100px;
        font-size: 0.8125rem;
    }

    .table--responsive--lg .customer__thumb {
        width: 35px;
        height: 35px;
    }

    .table--responsive--lg .customer__name {
        font-size: 0.875rem;
    }

    .dashboard-header-menu__link {
        font-size: 0.875rem;
        padding: 6px 0;
    }

    .table-wrapper {
        padding: 10px;
    }
}

@media screen and (max-width: 374px) {
    .table--responsive--lg tbody tr td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .table--responsive--lg tbody tr td::before {
        min-width: 90px;
        font-size: 0.75rem;
    }

    .table--responsive--lg .customer__thumb {
        width: 30px;
        height: 30px;
    }

    .table--responsive--lg .customer__name {
        font-size: 0.8125rem;
    }

    .table--responsive--lg tbody tr td:last-child .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}


.account-type-selector {
    padding: 16px;
    background-color: hsl(var(--white)/0.03);
    border-radius: 8px;
    margin-bottom: 16px;
}

.account-type-selector__label {
    margin-bottom: 12px;
}

.account-type-selector__label span {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--white)/0.8);
}

.account-type-selector__tabs {
    display: flex;
    gap: 10px;
    background-color: hsl(var(--white)/0.05);
    padding: 4px;
    border-radius: 6px;
}

.account-type-selector__tab {
    flex: 1;
    padding: 10px 16px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    color: hsl(var(--white)/0.7);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.account-type-selector__tab span {
    display: block;
}

.account-type-selector__tab:hover {
    color: hsl(var(--white)/0.9);
}

.account-type-selector__tab.active {
    background-color: hsl(var(--base));
    color: hsl(var(--white));
    box-shadow: 0 2px 8px hsl(var(--base)/0.3);
}

.account-type-selector__tab.active:hover {
    color: hsl(var(--white));
}

/* Tablet view (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .account-type-selector {
        padding: 18px;
    }

    .account-type-selector__label span {
        font-size: 0.9375rem;
    }

    .account-type-selector__tabs {
        gap: 12px;
        padding: 5px;
    }

    .account-type-selector__tab {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
}

/* Desktop view (992px and above) */
@media screen and (min-width: 992px) {
    .account-type-selector {
        padding: 20px;
        margin-bottom: 24px;
    }

    .account-type-selector__label {
        margin-bottom: 16px;
    }

    .account-type-selector__label span {
        font-size: 1rem;
    }

    .account-type-selector__tabs {
        gap: 14px;
        padding: 6px;
    }

    .account-type-selector__tab {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
}

@media screen and (max-width: 575px) {
    .account-type-selector {
        padding: 12px;
    }

    .account-type-selector__label span {
        font-size: 0.8125rem;
    }

    .account-type-selector__tabs {
        gap: 8px;
        padding: 3px;
    }

    .account-type-selector__tab {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 400px) {
    .account-type-selector {
        padding: 10px;
    }

    .account-type-selector__tab {
        padding: 8px 10px;
        font-size: 0.6875rem;
    }
}

/* Account Type Views - Only one should be visible at a time */
.account-type-view {
    display: block !important;
}

.account-type-view[style*="display: none"] {
    display: none !important;
}

/* Mobile Quick Actions - Visible on all screens, responsive */
.mobile-quick-actions {
    margin-bottom: 20px;
}

.mobile-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background-color: hsl(var(--white)/0.03);
    border-radius: 8px;
}

/* Tablet view (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .mobile-quick-actions__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 20px;
    }
    
    .mobile-quick-actions__item {
        padding: 18px 14px;
        min-height: 110px;
    }
    
    .mobile-quick-actions__icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .mobile-quick-actions__icon span {
        font-size: 26px;
    }
    
    .mobile-quick-actions__text {
        font-size: 0.8125rem;
    }
}

/* Desktop view (992px and above) */
@media screen and (min-width: 992px) {
    .mobile-quick-actions__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 24px;
    }
    
    .mobile-quick-actions__item {
        padding: 20px 16px;
        min-height: 120px;
    }
    
    .mobile-quick-actions__icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .mobile-quick-actions__icon span {
        font-size: 28px;
    }
    
    .mobile-quick-actions__text {
        font-size: 0.875rem;
    }
}

/* Large desktop view (1200px and above) */
@media screen and (min-width: 1200px) {
    .mobile-quick-actions__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        padding: 28px;
    }
    
    .mobile-quick-actions__item {
        padding: 24px 18px;
        min-height: 130px;
    }
    
    .mobile-quick-actions__icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 14px;
    }
    
    .mobile-quick-actions__icon span {
        font-size: 30px;
    }
    
    .mobile-quick-actions__text {
        font-size: 0.9375rem;
    }
}

.mobile-quick-actions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background-color: hsl(var(--white)/0.05);
    border: 1px solid hsl(var(--white)/0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 100px;
}

.mobile-quick-actions__item:hover {
    background-color: hsl(var(--base)/0.1);
    border-color: hsl(var(--base)/0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.mobile-quick-actions__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.mobile-quick-actions__icon span {
    font-size: 24px;
}

.mobile-quick-actions__icon--deposit {
    background-color: hsl(var(--success)/0.2);
    color: hsl(var(--success));
}

.mobile-quick-actions__icon--withdraw {
    background-color: hsl(var(--warning)/0.2);
    color: hsl(var(--warning));
}

.mobile-quick-actions__icon--wallet {
    background-color: hsl(var(--base)/0.2);
    color: hsl(var(--base));
}

.mobile-quick-actions__icon--affiliation {
    background-color: hsl(var(--info)/0.2);
    color: hsl(var(--info));
}

.mobile-quick-actions__icon--transaction {
    background-color: hsl(var(--base)/0.15);
    color: hsl(var(--base));
}

.mobile-quick-actions__icon--support {
    background-color: hsl(var(--base-two)/0.2);
    color: hsl(var(--base-two));
}

.mobile-quick-actions__icon--security {
    background-color: hsl(var(--warning)/0.2);
    color: hsl(var(--warning));
}

.mobile-quick-actions__item:hover .mobile-quick-actions__icon {
    transform: scale(1.1);
}

.mobile-quick-actions__text {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--white));
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    padding: 0 4px;
}

.mobile-quick-actions__item:hover .mobile-quick-actions__text {
    color: hsl(var(--base));
}

@media screen and (max-width: 575px) {
    .mobile-quick-actions__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .mobile-quick-actions__item {
        padding: 14px 8px;
        min-height: 90px;
    }

    .mobile-quick-actions__icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .mobile-quick-actions__icon span {
        font-size: 20px;
    }

    .mobile-quick-actions__text {
        font-size: 0.6875rem;
    }
}

@media screen and (max-width: 400px) {
    .mobile-quick-actions__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .mobile-quick-actions__item {
        padding: 12px 6px;
        min-height: 85px;
    }

    .mobile-quick-actions__icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .mobile-quick-actions__icon span {
        font-size: 18px;
    }

    .mobile-quick-actions__text {
        font-size: 0.625rem;
    }
}

/* Partner Code Styling */
.dashboard-header__left-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.partner-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: hsl(var(--white)/0.05);
    border: 1px solid hsl(var(--white)/0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    flex: 1;
    min-width: 0;
}

@media screen and (max-width: 767px) {
    .partner-code {
        flex: 0 0 auto;
        padding: 6px 10px;
        gap: 6px;
        max-width: fit-content;
    }
}

.partner-code:hover {
    background-color: hsl(var(--base)/0.1);
    border-color: hsl(var(--base)/0.3);
    transform: translateY(-1px);
}

.partner-code.copied {
    background-color: hsl(var(--success)/0.1);
    border-color: hsl(var(--success)/0.3);
}

.partner-code__label {
    font-size: 0.875rem;
    color: hsl(var(--white)/0.7);
    font-weight: 400;
}

.partner-code__value {
    font-size: 0.9375rem;
    color: hsl(var(--base));
    font-weight: 600;
    letter-spacing: 0.5px;
}

.partner-code__icon {
    color: hsl(var(--base));
    font-size: 18px;
    transition: all 0.3s ease;
}

.partner-code:hover .partner-code__icon {
    transform: scale(1.1);
}

.partner-code.copied .partner-code__icon {
    color: hsl(var(--success));
}

@media screen and (max-width: 767px) {
    .partner-code__label {
        font-size: 0.75rem;
        color: hsl(var(--white)/0.7);
    }

    .partner-code__value {
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .partner-code__icon {
        font-size: 16px;
    }
}

@media screen and (max-width: 575px) {
    .partner-code {
        padding: 5px 8px;
        gap: 4px;
    }

    .partner-code__label {
        font-size: 0.6875rem;
    }

    .partner-code__value {
        font-size: 0.75rem;
    }

    .partner-code__icon {
        font-size: 14px;
    }
}

/* Hide Sidebar Toggle Button on Mobile */
@media screen and (max-width: 767px) {
    .dashboard-sidebar-filter__button,
    .dashboard-body__bar.d-xl-none {
        display: none !important;
    }

    .dashboardBodyNav {
        justify-content: space-between !important;
        align-items: center;
    }

    /* Mobile Profile in Navigation Area */
    .dashboard-body__profile-mobile {
        margin-left: auto;
    }

    .user-info--mobile-nav {
        position: relative;
    }

    .user-info__button--mobile-nav {
        padding-right: 0 !important;
        cursor: pointer;
    }

    .user-info__button--mobile-nav::before {
        display: none !important;
    }

    .user-info--mobile-nav .user-info__profile-mobile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: hsl(var(--base)/0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: hsl(var(--base));
        font-size: 24px;
        transition: all 0.3s ease;
        border: 2px solid hsl(var(--base)/0.3);
    }

    .user-info__button--mobile-nav:hover .user-info__profile-mobile,
    .user-info__button--mobile-nav:focus .user-info__profile-mobile {
        background-color: hsl(var(--base)/0.3);
        border-color: hsl(var(--base));
        transform: scale(1.05);
    }

    .user-info--mobile-nav .user-info-dropdown {
        position: fixed !important;
        right: 15px !important;
        left: auto !important;
        width: 220px !important;
        max-width: calc(100vw - 30px);
        margin-top: 10px;
        top: 60px !important;
        z-index: 99999 !important;
        transform: scale(1) !important;
        visibility: visible;
        opacity: 1;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .user-info--mobile-nav .user-info-dropdown.show {
        visibility: visible !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .user-info--mobile-nav .user-info-dropdown__item {
        width: 100%;
    }

    .user-info--mobile-nav .user-info-dropdown__link {
        font-size: 0.875rem !important;
        padding: 12px 16px !important;
        white-space: nowrap;
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .user-info--mobile-nav .user-info-dropdown__link .icon {
        font-size: 16px;
        width: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .user-info--mobile-nav .user-info-dropdown__link .text {
        font-size: 0.875rem;
        flex: 1;
        white-space: nowrap;
        overflow: visible;
    }
}

/* Mobile Profile Button Improvements */
@media screen and (max-width: 767px) {
    .dashboard-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .dashboard-header__right {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .dashboard-header__left {
        flex: 1;
        min-width: 0;
    }

    .dashboard-header__right .trade-btn {
        display: none;
    }

    /* Profile in header next to partner code on mobile */
    .dashboard-header__left-content {
        flex-wrap: nowrap;
        align-items: center;
    }

    .user-info--header-mobile {
        position: relative;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .user-info--header-mobile .user-info__right {
        display: flex;
        align-items: center;
    }

    .user-info__button--header-mobile {
        padding-right: 0 !important;
        cursor: pointer;
    }

    .user-info__button--header-mobile::before {
        display: none !important;
    }

    .user-info--header-mobile .user-info__profile-mobile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: hsl(var(--base)/0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: hsl(var(--base));
        font-size: 24px;
        transition: all 0.3s ease;
        border: 2px solid hsl(var(--base)/0.3);
    }

    .user-info__button--header-mobile:hover .user-info__profile-mobile,
    .user-info__button--header-mobile:focus .user-info__profile-mobile {
        background-color: hsl(var(--base)/0.3);
        border-color: hsl(var(--base));
        transform: scale(1.05);
    }

    .user-info--header-mobile .user-info-dropdown {
        position: fixed !important;
        right: 15px !important;
        left: auto !important;
        width: 220px !important;
        max-width: calc(100vw - 30px);
        margin-top: 10px;
        top: 60px !important;
        z-index: 99999 !important;
        transform: scale(1) !important;
        visibility: visible;
        opacity: 1;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .user-info--header-mobile .user-info-dropdown.show {
        visibility: visible !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .user-info--header-mobile .user-info-dropdown__item {
        width: 100%;
    }

    .user-info--header-mobile .user-info-dropdown__link {
        font-size: 0.875rem !important;
        padding: 12px 16px !important;
        white-space: nowrap;
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .user-info--header-mobile .user-info-dropdown__link .icon {
        font-size: 16px;
        width: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .user-info--header-mobile .user-info-dropdown__link .text {
        font-size: 0.875rem;
        flex: 1;
        white-space: nowrap;
        overflow: visible;
    }
}

@media screen and (max-width: 575px) {
    .dashboard-header__right {
        gap: 8px;
    }

    .dashboard-header__right .trade-btn {
        font-size: 0.6875rem;
        padding: 5px 10px;
    }

    .user-info__profile-mobile {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .user-info .user-info-dropdown {
        right: 10px !important;
        width: 200px !important;
        max-width: calc(100vw - 20px);
        top: 55px !important;
    }
}

@media screen and (max-width: 400px) {
    .dashboard-header__right .trade-btn {
        display: none;
    }

    .user-info__profile-mobile {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .user-info .user-info-dropdown {
        right: 8px !important;
        width: 180px !important;
        max-width: calc(100vw - 16px);
        top: 50px !important;
    }

    .user-info-dropdown__link {
        padding: 10px 14px !important;
        font-size: 0.8125rem !important;
    }

    .user-info-dropdown__link .text {
        font-size: 0.8125rem;
    }
}

/* Pagination Mobile Improvements */
@media screen and (max-width: 767px) {
    .pagination {
        justify-content: center !important;
        gap: 8px;
        margin-top: 25px !important;
    }

    .pagination .page-item {
        margin: 0 !important;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0;
        font-size: 0.875rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: 1px solid hsl(var(--base));
        background-color: transparent;
        color: hsl(var(--base));
        transition: all 0.3s ease;
    }

    /* Previous/Next buttons - make them wider and professional */
    .pagination .page-item.previous .page-link,
    .pagination .page-item.next .page-link {
        width: auto !important;
        min-width: 90px;
        max-width: none;
        padding: 0 16px;
        border-radius: 6px !important;
        font-weight: 500;
        position: relative;
        white-space: nowrap;
    }

    /* Hide text nodes and spans, but keep sr-only for accessibility */
    .pagination .page-item.previous .page-link,
    .pagination .page-item.next .page-link {
        font-size: 0;
        line-height: 1;
    }

    .pagination .page-item.previous .page-link > span:not(.sr-only),
    .pagination .page-item.next .page-link > span:not(.sr-only) {
        display: none;
    }

    /* Add styled arrow labels using pseudo-elements */
    .pagination .page-item.previous .page-link::before {
        content: '← Previous';
        font-size: 0.875rem;
        font-weight: 500;
        display: inline-block;
        white-space: nowrap;
    }

    .pagination .page-item.next .page-link::after {
        content: 'Next →';
        font-size: 0.875rem;
        font-weight: 500;
        display: inline-block;
        white-space: nowrap;
    }

    /* For screens smaller than 480px, shorten text */
    @media screen and (max-width: 480px) {
        .pagination .page-item.previous .page-link {
            min-width: 75px;
            padding: 0 12px;
        }

        .pagination .page-item.next .page-link {
            min-width: 70px;
            padding: 0 12px;
        }

        .pagination .page-item.previous .page-link::before {
            content: '← Prev';
            font-size: 0.8125rem;
        }

        .pagination .page-item.next .page-link::after {
            content: 'Next →';
            font-size: 0.8125rem;
        }
    }

    /* For screens smaller than 400px, show only arrows */
    @media screen and (max-width: 400px) {
        .pagination .page-item.previous .page-link,
        .pagination .page-item.next .page-link {
            min-width: 44px;
            padding: 0 10px;
        }

        .pagination .page-item.previous .page-link::before {
            content: '←';
            font-size: 1rem;
        }

        .pagination .page-item.next .page-link::after {
            content: '→';
            font-size: 1rem;
        }
    }

    .pagination .page-item.active .page-link {
        background-color: hsl(var(--base));
        color: hsl(var(--white));
        border-color: hsl(var(--base));
    }

    .pagination .page-item.disabled .page-link {
        background-color: hsl(var(--white)/0.05);
        border-color: hsl(var(--white)/0.1);
        color: hsl(var(--white)/0.4);
        cursor: not-allowed;
        opacity: 0.6;
    }

    .pagination .page-item.disabled .page-link::before,
    .pagination .page-item.disabled .page-link::after {
        opacity: 0.5;
    }

    .pagination .page-item .page-link:hover:not(.disabled) {
        background-color: hsl(var(--base));
        color: hsl(var(--white));
        transform: translateY(-1px);
    }

    .pagination .page-item .page-link:focus {
        box-shadow: 0 0 0 3px hsl(var(--base)/0.2);
        outline: none;
    }
}

@media screen and (max-width: 575px) {
    .pagination .page-item .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .pagination .page-item.previous .page-link,
    .pagination .page-item.next .page-link {
        min-width: 70px;
        padding: 0 10px;
        font-size: 0.8125rem;
    }
}

@media screen and (max-width: 400px) {
    .pagination {
        gap: 6px;
    }

    .pagination .page-item .page-link {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .pagination .page-item.previous .page-link,
    .pagination .page-item.next .page-link {
        min-width: 36px;
        padding: 0 6px;
    }
}

/* Dashboard Sidebar - Wallet Overview, Deposit, Withdraw */
/* Visible on all screen sizes with responsive behavior */
.mobile-only-dashboard-sidebar {
    display: block;
}

/* Large desktop view (1400px+) - sidebar visible in normal layout */
@media screen and (min-width: 1400px) {
    .mobile-only-dashboard-sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dashboard-right {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        background-color: transparent !important;
        z-index: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dashboard-right.show,
    .dashboard-right:not(.show) {
        width: 100% !important;
        position: relative !important;
    }
    
    /* Hide close button on desktop */
    .dashboard-right .dashboard--popup-close {
        display: none !important;
    }
    
    /* Ensure sidebar sections are visible */
    .dashboard-right .right-sidebar {
        display: block !important;
        visibility: visible !important;
    }
}

/* Desktop view (992px - 1399px) - sidebar visible in normal layout */
@media screen and (min-width: 992px) and (max-width: 1399px) {
    .mobile-only-dashboard-sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dashboard-right {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        background-color: hsl(var(--white)/0.03) !important;
        z-index: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dashboard-right.show,
    .dashboard-right:not(.show) {
        width: 100% !important;
        position: relative !important;
    }
    
    /* Hide close button on desktop */
    .dashboard-right .dashboard--popup-close {
        display: none !important;
    }
    
    /* Ensure sidebar sections are visible */
    .dashboard-right .right-sidebar {
        display: block !important;
        visibility: visible !important;
    }
}

/* Tablet and mobile - show as sidebar overlay when toggled */
@media screen and (max-width: 991px) {
    .mobile-only-dashboard-sidebar {
        display: block;
        margin-top: 20px;
    }
}