@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --xl-font: "IBM Plex Sans", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --xl-bg-main: #070b13;
  --xl-bg-card: #101827;
  --xl-bg-soft: #151f32;
  --xl-bg-raised: #1a263a;
  --xl-primary: #00c278;
  --xl-primary-hover: #00a968;
  --xl-primary-soft: rgba(0, 194, 120, 0.12);
  --xl-secondary: #1d8cf8;
  --xl-secondary-soft: rgba(29, 140, 248, 0.14);
  --xl-text-main: #f4f7fb;
  --xl-text-muted: #9aa4b2;
  --xl-border: rgba(255, 255, 255, 0.08);
  --xl-border-strong: rgba(255, 255, 255, 0.14);
  --xl-danger: #ff4d4f;
  --xl-danger-soft: rgba(255, 77, 79, 0.13);
  --xl-warning: #f5b642;
  --xl-warning-soft: rgba(245, 182, 66, 0.14);
  --xl-success: #00c278;
  --xl-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  --xl-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
  --xl-radius-sm: 8px;
  --xl-radius-md: 12px;
  --xl-radius-lg: 16px;
  --xl-transition: 0.22s ease;
  --heading-font: var(--xl-font);
  --body-font: var(--xl-font);
  --base-h: 157;
  --base-s: 100%;
  --base-l: 38%;
  --base-two-h: 157;
  --base-two-s: 100%;
  --base-two-l: 38%;
  --success-h: 157;
  --success-s: 100%;
  --success-l: 38%;
  --danger-h: 359;
  --danger-s: 100%;
  --danger-l: 65%;
  --warning-h: 39;
  --warning-s: 90%;
  --warning-l: 61%;
  --info-h: 210;
  --info-s: 93%;
  --info-l: 54%;
}

html {
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.form--control,
.table,
.badge {
  font-family: var(--xl-font);
}

body {
  background: var(--xl-bg-main);
  color: var(--xl-text-main);
  letter-spacing: 0;
}

::selection {
  background: var(--xl-primary-soft);
  color: var(--xl-text-main);
}

a,
.nav-link,
.dropdown-list__item,
.sidebar-menu-list__link,
.p2p-sidebar-list__link,
.trade-list__link,
.user-info-dropdown__link {
  transition: color var(--xl-transition), background-color var(--xl-transition), border-color var(--xl-transition), transform var(--xl-transition), box-shadow var(--xl-transition);
}

h1,
h2,
h3,
h4,
h5,
h6,
.account-form__title,
.dashboard-card__coin-title,
.right-sidebar__number,
.trading-dropdown-button-title {
  font-family: var(--xl-font);
  font-weight: 700;
  letter-spacing: 0;
}

p,
.form--label,
.form-label,
.dashboard-card__coin-name,
.transection__content-desc,
.right-sidebar__item-name,
.trading-header__text,
.table thead tr th,
.table tbody tr td {
  letter-spacing: 0;
}

.text--base,
.base-color {
  color: var(--xl-primary) !important;
}

.text--success,
.up,
.buy,
.positive {
  color: var(--xl-success) !important;
}

.text--danger,
.down,
.sell,
.negative {
  color: var(--xl-danger) !important;
}

.text--warning {
  color: var(--xl-warning) !important;
}

.text--info {
  color: var(--xl-secondary) !important;
}

.bg--base,
.bg--success {
  background-color: var(--xl-primary) !important;
}

.bg--danger {
  background-color: var(--xl-danger) !important;
}

.bg--warning {
  background-color: var(--xl-warning) !important;
}

.bg--info {
  background-color: var(--xl-secondary) !important;
}

.dashboard-fluid,
.dashboard__inner,
.dashboard__right,
.dashboard-body,
.trading-section.bg-color,
.account,
.future-trading-main {
  background: var(--xl-bg-main);
}

.dashboard-body,
.trading-section,
.account-right-wrapper {
  color: var(--xl-text-main);
}

.dashboard-header,
.sidebar-menu,
.sidebar-menu__inner,
.dashboard-card,
.transection,
.right-sidebar,
.custom--card,
.card,
.trading-market,
.trading-sidebar > *,
.trading-bottom,
.trading-table,
.trading-left__top,
.trading-right__bottom,
.future-trading-content__chart,
.future-trading-content__history,
.trading-asset,
.account-right,
.account-content,
.account-form,
.offcanvas,
.custom--modal .modal-content,
.modal-content,
.p2p-sidebar__wrapper,
.order-details__left,
.order-details__right,
.responsive-filter-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--xl-bg-card) !important;
  border: 1px solid var(--xl-border) !important;
  border-radius: var(--xl-radius-lg) !important;
  box-shadow: var(--xl-shadow-soft);
}

.dashboard-header {
  backdrop-filter: blur(14px);
}

.dashboard-card,
.transection,
.right-sidebar,
.trading-bottom,
.trading-market,
.future-trading-content__chart,
.future-trading-content__history,
.trading-asset {
  transition: transform var(--xl-transition), box-shadow var(--xl-transition), border-color var(--xl-transition), background-color var(--xl-transition);
}

.dashboard-card:hover,
.transection:hover,
.right-sidebar:hover,
.custom--card:hover,
.card:hover {
  border-color: var(--xl-border-strong) !important;
  box-shadow: var(--xl-shadow);
  transform: translateY(-1px);
}

.dashboard-card__icon,
.right-sidebar__item-icon,
.alert__icon {
  background: var(--xl-primary-soft);
  border: 1px solid rgba(0, 194, 120, 0.2);
  border-radius: 14px;
  color: var(--xl-primary) !important;
}

.dashboard-card__coin-name,
.transection__content-desc,
.right-sidebar__item-name span,
.right-sidebar__header p,
.account-form__desc,
.account-content__member-text,
.table tbody tr td,
.trading-market__header-one,
.trading-market__header-two,
.trading-market__header-three,
.history__date-item {
  color: var(--xl-text-muted) !important;
}

.dashboard-card__coin-title,
.transection__content-title,
.right-sidebar__number,
.right-sidebar__item-number,
.account-left__title,
.account-form__title,
.trading-price h4,
.market-price,
.trading-header__number,
.trading-history__title {
  color: var(--xl-text-main) !important;
}

.sidebar-menu {
  border-right: 1px solid var(--xl-border);
}

.sidebar-logo {
  border-bottom-color: var(--xl-border) !important;
}

.sidebar-menu-list__link,
.p2p-sidebar-list__link,
.trade-list__link,
.user-info-dropdown__link {
  border-radius: var(--xl-radius-md);
  color: var(--xl-text-muted) !important;
}

.sidebar-menu-list__link:hover,
.sidebar-menu-list__link.active,
.p2p-sidebar-list__link:hover,
.p2p-sidebar-list__link.active,
.trade-list__link:hover,
.user-info-dropdown__link:hover {
  background: var(--xl-primary-soft) !important;
  color: var(--xl-text-main) !important;
  transform: translateX(2px);
}

.sidebar-menu-list__link.active .icon,
.p2p-sidebar-list__link.active .icon,
.sidebar-menu-list__link:hover .icon,
.p2p-sidebar-list__link:hover .icon {
  color: var(--xl-primary) !important;
}

.trade-list,
.user-info-dropdown,
.dropdown-list,
.trading-dropdown-box,
.select2-dropdown {
  background: var(--xl-bg-card) !important;
  border: 1px solid var(--xl-border) !important;
  border-radius: var(--xl-radius-md) !important;
  box-shadow: var(--xl-shadow);
}

.btn:not(.btn-close),
.btn--base,
.btn--base-two,
.btn--success,
.btn--danger,
.btn--warning,
.btn--info,
.deposit__button,
.right-sidebar__button,
.copy-link__button,
.dashboard-sidebar-filter__button {
  border-radius: 10px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--xl-transition), box-shadow var(--xl-transition), background-color var(--xl-transition), border-color var(--xl-transition), color var(--xl-transition);
}

.btn:not(.btn-close):hover,
.btn--base:hover,
.btn--base-two:hover,
.btn--success:hover,
.deposit__button:hover,
.right-sidebar__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 194, 120, 0.16);
}

.btn--base,
.btn--base-two,
.btn--success,
.deposit__button {
  background: linear-gradient(135deg, var(--xl-primary), #00a86b) !important;
  border-color: rgba(0, 194, 120, 0.35) !important;
  color: #ffffff !important;
}

.btn--base:hover,
.btn--base:focus,
.btn--base-two:hover,
.btn--base-two:focus,
.btn--success:hover,
.btn--success:focus {
  background: linear-gradient(135deg, var(--xl-primary-hover), #008f5e) !important;
  border-color: rgba(0, 194, 120, 0.55) !important;
  color: #ffffff !important;
}

.btn--base.outline,
.btn--base-two.outline,
.btn-outline--primary,
.btn-outline-primary {
  background: transparent !important;
  border-color: rgba(0, 194, 120, 0.45) !important;
  color: var(--xl-primary) !important;
}

.btn--base.outline:hover,
.btn--base-two.outline:hover,
.btn-outline--primary:hover,
.btn-outline-primary:hover {
  background: var(--xl-primary-soft) !important;
  color: var(--xl-text-main) !important;
}

.btn--danger,
.btn-outline--danger:hover,
.sell-btn .btn,
.sel--form .btn[type="submit"] {
  background: linear-gradient(135deg, var(--xl-danger), #df3437) !important;
  border-color: rgba(255, 77, 79, 0.42) !important;
  color: #ffffff !important;
}

.btn--danger:hover,
.sell-btn .btn:hover,
.sel--form .btn[type="submit"]:hover {
  box-shadow: 0 12px 30px rgba(255, 77, 79, 0.16);
}

.btn--warning {
  background: linear-gradient(135deg, var(--xl-warning), #d99924) !important;
  border-color: rgba(245, 182, 66, 0.42) !important;
  color: #101827 !important;
}

.btn--info,
.btn-outline--info:hover {
  background: linear-gradient(135deg, var(--xl-secondary), #106fc8) !important;
  border-color: rgba(29, 140, 248, 0.45) !important;
  color: #ffffff !important;
}

.form--label,
.form-label,
label {
  color: var(--xl-text-muted);
  font-weight: 600;
}

.form-control,
.form-select,
.form--control,
.select,
.copyText,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: var(--xl-bg-soft) !important;
  border: 1px solid var(--xl-border) !important;
  border-radius: var(--xl-radius-md) !important;
  color: var(--xl-text-main) !important;
  outline: none;
  transition: border-color var(--xl-transition), box-shadow var(--xl-transition), background-color var(--xl-transition);
}

.form-control::placeholder,
.form--control::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(154, 164, 178, 0.78) !important;
}

.form-control:focus,
.form-select:focus,
.form--control:focus,
.select:focus,
.copyText:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
  background-color: #182237 !important;
  border-color: var(--xl-primary) !important;
  box-shadow: 0 0 0 3px var(--xl-primary-soft) !important;
  color: var(--xl-text-main) !important;
}

.input-group-text,
.copy-link {
  background-color: var(--xl-bg-soft) !important;
  border-color: var(--xl-border) !important;
  color: var(--xl-text-muted) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: var(--xl-primary-soft) !important;
  color: var(--xl-text-main) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.table {
  color: var(--xl-text-main);
  border-collapse: separate;
  border-spacing: 0;
}

.table thead tr th,
.table.table-two thead tr th {
  background: #0d1524 !important;
  border-bottom: 1px solid var(--xl-border) !important;
  color: var(--xl-text-muted) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table tbody,
.table.table-two tbody {
  background: var(--xl-bg-card) !important;
}

.table tbody tr {
  transition: background-color var(--xl-transition);
}

.table tbody tr:hover,
.table.table-two tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.045) !important;
}

.table tbody tr td,
.table.table-two tbody tr td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
  color: var(--xl-text-main) !important;
}

.table-responsive {
  border-radius: var(--xl-radius-md);
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge--base,
.badge--success,
.badge--green {
  background-color: var(--xl-primary-soft) !important;
  color: var(--xl-primary) !important;
}

.badge--danger {
  background-color: var(--xl-danger-soft) !important;
  color: var(--xl-danger) !important;
}

.badge--warning {
  background-color: var(--xl-warning-soft) !important;
  color: var(--xl-warning) !important;
}

.badge--info,
.badge--primary {
  background-color: var(--xl-secondary-soft) !important;
  color: var(--xl-secondary) !important;
}

.alert,
.alert-item {
  border-radius: var(--xl-radius-md) !important;
}

.alert--danger {
  background: var(--xl-danger-soft) !important;
  border: 1px solid rgba(255, 77, 79, 0.22) !important;
  color: var(--xl-text-main) !important;
}

.alert--warning {
  background: var(--xl-warning-soft) !important;
  border: 1px solid rgba(245, 182, 66, 0.24) !important;
  color: var(--xl-text-main) !important;
}

.alert--success {
  background: var(--xl-primary-soft) !important;
  border: 1px solid rgba(0, 194, 120, 0.24) !important;
  color: var(--xl-text-main) !important;
}

.trading-header-wrapper,
.future-trade-header,
.trading-dropdown-button,
.market__pair-item,
.history__list,
.trading-asset-info__item,
.right-sidebar__item,
.transection__item,
.list-group-item,
.preview-details .list-group-item {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: var(--xl-radius-md) !important;
}

.trading-header-wrapper,
.future-trade-header {
  padding: 12px;
}

.trading-dropdown-button,
.market__pair-item,
.history__list,
.right-sidebar__item,
.transection__item {
  transition: background-color var(--xl-transition), border-color var(--xl-transition), transform var(--xl-transition);
}

.trading-dropdown-button:hover,
.market__pair-item:hover,
.history__list:hover,
.right-sidebar__item:hover,
.transection__item:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: var(--xl-border-strong) !important;
}

.trading-bottom__tab .nav-link,
.custom--tab .nav-item .nav-link,
.trading-table__header .nav-link,
.order-status .nav-link {
  border-radius: 999px !important;
  color: var(--xl-text-muted) !important;
  transition: background-color var(--xl-transition), color var(--xl-transition), border-color var(--xl-transition);
}

.trading-bottom__tab .nav-link.active,
.custom--tab .nav-item .nav-link.active,
.trading-table__header .nav-link.active,
.order-status .nav-link.active {
  background: var(--xl-primary-soft) !important;
  border-color: rgba(0, 194, 120, 0.25) !important;
  color: var(--xl-primary) !important;
}

.buy-btn .btn,
.buy--form .btn[type="submit"] {
  background: linear-gradient(135deg, var(--xl-primary), #00a86b) !important;
  border-color: rgba(0, 194, 120, 0.42) !important;
}

.order-book,
.order-book-list,
.market-wrapper,
.history,
.future-trade-tab-content,
.positionedTable,
.openOrderTable {
  scrollbar-color: rgba(154, 164, 178, 0.45) transparent;
}

.account {
  min-height: 100vh;
}

.account-left {
  background: radial-gradient(circle at 20% 10%, rgba(29, 140, 248, 0.15), transparent 34%), linear-gradient(145deg, #08111f, #0d1728) !important;
  border-right: 1px solid var(--xl-border);
}

.account-left__subtitle {
  color: var(--xl-primary) !important;
  font-weight: 700;
}

.account-left__title {
  max-width: 620px;
}

.account-link,
.forget-password,
.bottom-footer__right-link {
  color: var(--xl-primary) !important;
  font-weight: 600;
}

.custom--dropdown__selected,
.dropdown-list__item {
  background-color: var(--xl-bg-soft) !important;
  border-color: var(--xl-border) !important;
  color: var(--xl-text-main) !important;
}

.cookies-card {
  background: var(--xl-bg-card) !important;
  border: 1px solid var(--xl-border) !important;
  border-radius: var(--xl-radius-lg) !important;
  color: var(--xl-text-main) !important;
  box-shadow: var(--xl-shadow);
}

.cookies-card p {
  color: var(--xl-text-muted) !important;
}

.preloader,
.preloader-wrapper {
  background-color: var(--xl-bg-main) !important;
}

.scroll-top {
  background: var(--xl-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 194, 120, 0.2);
}

@media (max-width: 991px) {
  .dashboard-body {
    padding-inline: 14px;
  }

  .dashboard-card,
  .transection,
  .right-sidebar,
  .trading-bottom,
  .future-trading-content__chart,
  .future-trading-content__history {
    border-radius: var(--xl-radius-md) !important;
  }

  .table thead {
    background: #0d1524 !important;
  }
}

@media (max-width: 575px) {
  .btn:not(.btn-close),
  .form-control,
  .form-select,
  .form--control {
    border-radius: 9px !important;
  }

  .dashboard-card__coin-title,
  .right-sidebar__number,
  .trading-price h4 {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* XLBITS visual stabilization patch - keep scoped and reversible. */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --heading-color: 0 0% 100%;
  --body-color: 217 14% 72%;
  --body-background: 220 46% 5%;
  --section-bg: 218 33% 13%;
  --footer-bg: 220 46% 5%;
}

body,
.banner-section,
.product-section,
.coincheck-section,
.ongoing-campaign,
.table-section,
.dashboard-body,
.trading-section {
  background-color: var(--xl-bg-main);
  color: var(--xl-text-main);
}

.banner-content__title,
.banner-content__desc,
.section-heading__title,
.section-heading__desc,
.product-item__title,
.product-item__desc,
.coincheck-item__title,
.coincheck-item__desc,
.ongoing-campaign__title,
.card,
.custom--card {
  color: var(--xl-text-main) !important;
}

.product-item__desc,
.coincheck-item__desc,
.section-heading__desc,
.single-slider__desc,
.card p,
.custom--card p {
  color: var(--xl-text-muted) !important;
}

.trade-btn-wrapper,
.dashboard-fluid .user-info,
.dashboard-fluid .dashboard-header,
.dashboard-fluid .dashboard-header__inner,
.dashboard-fluid .dashboard-header__right,
.trading-dropdown,
.trading-header-wrapper,
.future-trading-content__chart,
.nav-item.has-mega-menu,
.header,
.navbar {
  overflow: visible !important;
}

.trade-btn-wrapper,
.dashboard-fluid .user-info,
.trading-dropdown,
.nav-item.has-mega-menu {
  position: relative;
  z-index: 1000;
}

.trade-list,
.dashboard-fluid .user-info .user-info-dropdown,
.trading-dropdown-box,
.has-mega-menu .mega-menu,
.custom--dropdown.open > .dropdown-list,
.dashboard-fluid .dropdown-menu,
.trading-section .dropdown-menu,
.p2p-custom--dropdown .dropdown-menu,
.select2-dropdown {
  background: var(--xl-bg-card) !important;
  border: 1px solid var(--xl-border-strong) !important;
  box-shadow: var(--xl-shadow) !important;
  color: var(--xl-text-main) !important;
  z-index: 10000 !important;
}

.trade-list,
.dashboard-fluid .user-info .user-info-dropdown {
  min-width: 180px;
}

.trade-list.show,
.dashboard-fluid .user-info .user-info-dropdown.show,
.trading-dropdown:hover .trading-dropdown-box,
.trading-dropdown-button:hover + .trading-dropdown-box,
.has-mega-menu:hover .mega-menu,
.has-mega-menu .mega-menu.open {
  opacity: 1 !important;
  pointer-events: auto;
  visibility: visible !important;
}

.trading-dropdown-box {
  isolation: isolate;
  pointer-events: none;
  visibility: hidden;
  z-index: 10050 !important;
}

.trade-list__link,
.dashboard-fluid .user-info .user-info-dropdown__link,
.trading-dropdown-box a,
.trading-dropdown-box .nav-link,
.p2p-custom--dropdown-menu .link,
.p2p-custom--dropdown-menu .text,
.dropdown-menu .dropdown-item {
  color: var(--xl-text-main) !important;
}

.trade-list__link:hover,
.dashboard-fluid .user-info .user-info-dropdown__link:hover,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: var(--xl-primary-soft) !important;
  color: var(--xl-primary) !important;
}

.has-mega-menu .mega-menu {
  background: var(--xl-bg-card) !important;
}

.mega-menu-list__title,
.mega-menu-list__desc {
  color: #101827 !important;
}

.sell-side-order-list .empty-thumb,
.buy-side-order-list .empty-thumb,
.my-order-list-table .empty-thumb,
.trading-list-empty .empty-thumb,
.order-list-body .empty-thumb,
.empty-gateway {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  min-height: 160px;
  text-align: center;
  width: 100% !important;
}

.my-order-list-table .empty-thumb {
  min-height: 190px !important;
}

.empty-thumb img {
  display: block;
  margin: 0 auto 10px;
  max-width: 86px;
}

.empty-thumb p,
.empty-sell,
.empty-buy,
.empty-trade {
  color: var(--xl-text-muted) !important;
}

.depositBtn.btn--success.outline,
.transferBtn.btn--base.outline,
.withdrawBtn.btn--danger.outline,
.purchaseBtn.btn--warning.outline {
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.depositBtn.btn--success.outline,
.transferBtn.btn--base.outline {
  border-color: rgba(0, 194, 120, 0.55) !important;
  color: var(--xl-primary) !important;
}

.withdrawBtn.btn--danger.outline {
  border-color: rgba(255, 77, 79, 0.6) !important;
  color: var(--xl-danger) !important;
}

.purchaseBtn.btn--warning.outline {
  border-color: rgba(245, 182, 66, 0.62) !important;
  color: var(--xl-warning) !important;
}

.depositBtn.btn--success.outline:hover,
.transferBtn.btn--base.outline:hover {
  background: var(--xl-primary-soft) !important;
  color: var(--xl-text-main) !important;
}

.withdrawBtn.btn--danger.outline:hover {
  background: var(--xl-danger-soft) !important;
  color: var(--xl-text-main) !important;
}

.purchaseBtn.btn--warning.outline:hover {
  background: var(--xl-warning-soft) !important;
  color: var(--xl-text-main) !important;
}

/* XLBITS Fase 1 closeout: scoped stability fixes. */
html[data-theme="light"],
html[data-theme="dark"] {
  --white: 0 0% 0%;
  --black: 0 0% 100%;
  --heading-color: 0 0% 100%;
  --body-color: 217 14% 72%;
  --body-background: 220 46% 5%;
  --section-bg: 218 33% 13%;
  --section-bg-two: 218 33% 13%;
  --footer-bg: 220 46% 5%;
}

html[data-theme="light"] body,
html[data-theme="dark"] body {
  background: var(--xl-bg-main) !important;
  color: var(--xl-text-main) !important;
}

@media (min-width: 992px) {
  .header,
  .header.fixed-header,
  .header .navbar,
  .header .navbar-collapse,
  .header .nav-menu,
  .header .nav-item.has-mega-menu {
    overflow: visible !important;
    position: relative;
    z-index: 110000 !important;
  }

  .has-mega-menu .mega-menu {
    z-index: 110100 !important;
  }
}

.dashboard-fluid,
.dashboard-fluid .dashboard,
.dashboard-fluid .dashboard__inner,
.dashboard-fluid .dashboard__right,
.dashboard-fluid .dashboard-header,
.dashboard-fluid .dashboard-header__inner,
.dashboard-fluid .dashboard-header__right {
  overflow: visible !important;
}

.dashboard-fluid .dashboard-header {
  isolation: isolate;
  position: relative !important;
  transform: none !important;
  z-index: 110000 !important;
}

.dashboard-fluid .dashboard-body {
  position: relative;
  z-index: 1;
}

.dashboard-fluid .trade-btn-wrapper,
.dashboard-fluid .user-info {
  filter: none !important;
  overflow: visible !important;
  perspective: none !important;
  position: relative !important;
  transform: none !important;
  z-index: 110050 !important;
}

.dashboard-fluid .trade-list,
.dashboard-fluid .user-info .user-info-dropdown {
  background: #101827 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42) !important;
  color: var(--xl-text-main) !important;
  max-height: calc(100vh - 96px);
  overflow-y: auto !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  z-index: 110100 !important;
}

.dashboard-fluid .trade-list {
  min-width: 220px;
}

.dashboard-fluid .user-info .user-info-dropdown {
  min-width: 220px;
}

.dashboard-fluid .trade-list.show,
.dashboard-fluid .user-info .user-info-dropdown.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  visibility: visible !important;
}

.dashboard-fluid .trade-list__link,
.dashboard-fluid .user-info .user-info-dropdown__link {
  color: var(--xl-text-main) !important;
  opacity: 1 !important;
}

.account .account-right-wrapper {
  background: var(--xl-bg-main) !important;
  min-height: 100vh;
  padding: clamp(18px, 2vw, 30px) !important;
}

.account .account-content__top {
  margin-bottom: clamp(26px, 5vh, 58px) !important;
  padding-right: 0 !important;
}

.account .account-right {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(32px, 4vw, 68px) clamp(24px, 6vw, 96px) !important;
  width: 100%;
}

.account .account-content,
.account .account-form {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.account .account-content {
  display: flex;
  justify-content: center;
}

.account .account-form {
  max-width: 480px;
  width: 100%;
}

.account .form-group {
  margin-bottom: 20px;
}

.account .form--control {
  min-height: 52px;
}

@media (max-width: 767px) {
  .account .account-right-wrapper {
    padding: 18px !important;
  }

  .account .account-right {
    padding: 28px 18px !important;
  }
}

.market-overview-card,
.currency-item {
  background: var(--xl-bg-card) !important;
  border: 1px solid var(--xl-border) !important;
  color: var(--xl-text-main) !important;
}

.market-overview-card__header h6,
.market-overview-card__item .coin-name,
.currency-item__coin-title,
.currency-item__content-number,
.coin-pair-list-table tbody tr td:first-child,
.coin-pair-list-table tbody tr td:first-child a {
  color: var(--xl-text-main) !important;
}

.currency-item__content-date,
.market-overview-subtitle,
.market-overview-card__item {
  color: var(--xl-text-muted) !important;
}

.coin-pair-list-table a.btn,
.coin-pair-list-table button.btn {
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: var(--xl-text-main) !important;
  opacity: 1 !important;
}

/* XLBITS public frontend protection: preserve CMS/home theme behavior. */
.header,
.banner-section,
.ongoing-campaign,
.table-section,
.currency-section,
.product-section,
.coincheck-section,
.faq-section,
.how-to-work,
.subscribe-wrapper,
.footer-area,
.market-overview,
.market-overview-card {
  --white: 0 0% 100%;
  --static-white: 0 0% 100%;
  --black: 0 0% 0%;
  --static-black: 0 0% 0%;
  --heading-color: var(--black);
  --body-color: var(--light);
  --body-background: var(--white);
  --section-bg: 0 0% 98%;
  --section-bg-two: var(--base);
  --footer-bg: 0 0% 0%;
}

html[data-theme="light"] .header,
html[data-theme="light"] .banner-section,
html[data-theme="light"] .ongoing-campaign,
html[data-theme="light"] .table-section,
html[data-theme="light"] .currency-section,
html[data-theme="light"] .product-section,
html[data-theme="light"] .coincheck-section,
html[data-theme="light"] .faq-section,
html[data-theme="light"] .how-to-work,
html[data-theme="light"] .subscribe-wrapper,
html[data-theme="light"] .footer-area,
html[data-theme="light"] .market-overview,
html[data-theme="light"] .market-overview-card {
  --white: 0 0% 0%;
  --black: 0 0% 100%;
  --heading-color: var(--black);
  --body-color: var(--light);
  --body-background: var(--white);
  --section-bg: 206 13% 11%;
  --section-bg-two: 206 13% 11%;
  --footer-bg: 206 13% 11%;
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .banner-section,
html[data-theme="dark"] .ongoing-campaign,
html[data-theme="dark"] .table-section,
html[data-theme="dark"] .currency-section,
html[data-theme="dark"] .product-section,
html[data-theme="dark"] .coincheck-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .how-to-work,
html[data-theme="dark"] .subscribe-wrapper,
html[data-theme="dark"] .footer-area,
html[data-theme="dark"] .market-overview,
html[data-theme="dark"] .market-overview-card {
  --white: 0 0% 100%;
  --black: 0 0% 0%;
  --heading-color: var(--black);
  --body-color: var(--light);
  --body-background: var(--white);
  --section-bg: 0 0% 98%;
  --section-bg-two: var(--base);
  --footer-bg: 0 0% 0%;
}

.banner-section,
.product-section,
.table-section {
  background-color: hsl(var(--body-background)) !important;
  color: hsl(var(--black)) !important;
}

.ongoing-campaign.section-bg,
.currency-section.section-bg,
.faq-section.section-bg,
.how-to-work.section-bg,
.subscribe-wrapper.section-bg {
  background-color: hsl(var(--section-bg)) !important;
}

.coincheck-section {
  background-color: hsl(var(--section-bg-two)) !important;
}

.footer-area {
  background-color: hsl(var(--footer-bg)) !important;
}

.banner-section .banner-content__title,
.product-section .section-heading__title,
.product-section .product-item__title,
.table-section .section-heading__title,
.currency-section .section-heading__title,
.faq-section .section-heading__title,
.how-to-work .section-heading__title,
.market-overview .section-heading__title {
  color: hsl(var(--heading-color)) !important;
}

.banner-section .banner-content__desc,
.banner-section .single-slider__desc,
.product-section .section-heading__desc,
.product-section .product-item__desc,
.table-section .section-heading__desc,
.currency-section .section-heading__desc,
.faq-section .section-heading__desc,
.how-to-work .section-heading__desc,
.market-overview .market-overview-subtitle {
  color: hsl(var(--black) / 0.7) !important;
}

.ongoing-campaign__title {
  color: hsl(var(--black) / 0.8) !important;
}

.coincheck-section .section-heading__title,
.coincheck-section .coincheck-item__title,
.coincheck-section .coincheck-item__icon {
  color: hsl(var(--static-white)) !important;
}

.coincheck-section .coincheck-item__desc {
  color: hsl(var(--static-white) / 0.8) !important;
}

.currency-item {
  background-color: hsl(var(--body-background)) !important;
  border: 0 !important;
  color: hsl(var(--black)) !important;
}

.currency-item__coin-title,
.market-overview-card__item .coin-name {
  color: hsl(var(--black)) !important;
}

.currency-item__content-date,
.market-overview-card__header h6 {
  color: hsl(var(--black) / 0.7) !important;
}

.currency-item__content-number {
  color: hsl(var(--body-color)) !important;
}

.market-overview-card {
  background-color: hsl(var(--body-background)) !important;
  border: 0 !important;
  color: hsl(var(--black)) !important;
}

.market-overview-card__item {
  color: hsl(var(--black) / 0.75) !important;
}

.market-overview-card__item:hover {
  background-color: hsl(var(--section-bg)) !important;
}

.table-section .table,
.table-section .coin-pair-list-table {
  color: hsl(var(--black)) !important;
}

.table-section .table thead tr th,
.table-section .coin-pair-list-table thead tr th {
  background-color: hsl(var(--white)) !important;
  color: hsl(var(--body-color)) !important;
}

.table-section .table tbody,
.table-section .coin-pair-list-table tbody {
  background-color: hsl(var(--white)) !important;
}

.table-section .table tbody tr td,
.table-section .coin-pair-list-table tbody tr td {
  border-top: 1.5px solid #181d20ad !important;
  border-bottom: 0 !important;
  color: hsl(var(--black) / 0.7) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table tbody tr td {
  border-top-color: #181d200f !important;
}

.table-section .customer__name,
.table-section .coin-pair-list-table tbody tr td:first-child,
.table-section .coin-pair-list-table tbody tr td:first-child a {
  color: hsl(var(--black) / 0.7) !important;
}

.table-section .btn--base.outline,
.table-section .coin-pair-list-table a.btn,
.table-section .coin-pair-list-table button.btn {
  background-color: transparent !important;
  border: 1px solid hsl(var(--black) / 0.7) !important;
  color: hsl(var(--black) / 0.7) !important;
  box-shadow: none !important;
}

.table-section .btn--base.outline:hover,
.table-section .coin-pair-list-table a.btn:hover,
.table-section .coin-pair-list-table button.btn:hover {
  background-color: transparent !important;
  border-color: hsl(var(--base)) !important;
  color: hsl(var(--base)) !important;
}

.table-section .trade-btn-wrapper {
  overflow: visible !important;
  position: relative;
  z-index: 1100;
}

.table-section .trade-list {
  background-color: hsl(var(--white)) !important;
  border: 1px solid hsl(var(--black) / 0.3) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
  color: hsl(var(--black)) !important;
  z-index: 110100 !important;
}

.table-section .trade-list__link {
  border-bottom: 1px solid hsl(var(--black) / 0.15) !important;
  color: hsl(var(--black) / 0.75) !important;
}

.table-section .trade-list__link:hover {
  background-color: hsl(var(--base) / 0.08) !important;
  color: hsl(var(--base)) !important;
}

.header .custom--dropdown__selected,
.header .dropdown-list__item {
  color: hsl(var(--static-white)) !important;
}

.header .custom--dropdown.open > .dropdown-list {
  background-color: hsl(var(--section-bg)) !important;
  border-color: hsl(var(--black) / 0.15) !important;
}

.header .custom--dropdown.open > .dropdown-list .dropdown-list__item {
  color: hsl(var(--black)) !important;
}

.subscribe-wrapper__item .form--control {
  background-color: #000 !important;
  border: 1px solid #181d20 !important;
  color: #fff !important;
}

html[data-theme="dark"] .subscribe-wrapper__item .form--control {
  background-color: #f5f5f5 !important;
  border-color: hsl(var(--section-bg)) !important;
  color: hsl(var(--black)) !important;
}

.banner-section .btn:not(.btn-close),
.product-section .btn:not(.btn-close),
.subscribe-wrapper .btn:not(.btn-close),
.how-to-work .btn:not(.btn-close),
.faq-section .btn:not(.btn-close) {
  box-shadow: none;
}

.banner-section .card,
.product-section .card,
.ongoing-campaign .card,
.table-section .card,
.currency-section .card,
.faq-section .card,
.how-to-work .card,
.banner-section .custom--card,
.product-section .custom--card,
.ongoing-campaign .custom--card,
.table-section .custom--card,
.currency-section .custom--card,
.faq-section .custom--card,
.how-to-work .custom--card {
  background-color: hsl(var(--white)) !important;
  border: transparent !important;
  border-radius: 10px !important;
  box-shadow: var(--box-shadow-three) !important;
  color: hsl(var(--black)) !important;
}

.banner-section .card:hover,
.product-section .card:hover,
.ongoing-campaign .card:hover,
.table-section .card:hover,
.currency-section .card:hover,
.faq-section .card:hover,
.how-to-work .card:hover,
.banner-section .custom--card:hover,
.product-section .custom--card:hover,
.ongoing-campaign .custom--card:hover,
.table-section .custom--card:hover,
.currency-section .custom--card:hover,
.faq-section .custom--card:hover,
.how-to-work .custom--card:hover {
  transform: none;
}

/* XLBITS institutional polish: scoped, reversible visual refinements. */
:root {
  --xl-transition-fast: 180ms ease;
  --xl-transition-ui: 220ms ease;
  --xl-public-border-light: rgba(15, 23, 42, 0.1);
  --xl-public-border-dark: rgba(255, 255, 255, 0.1);
  --xl-public-shadow-light: 0 12px 28px rgba(15, 23, 42, 0.07);
  --xl-public-shadow-dark: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.form--control,
.table,
.badge,
.header,
.banner-section,
.dashboard-body,
.trading-section,
.future-trading-main,
.wallet-card {
  font-family: var(--xl-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading__title,
.market-overview-card__header h6,
.currency-item__coin-title,
.dashboard-card__coin-title,
.trading-table__title,
.account-form__title {
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading__desc,
.market-overview-subtitle,
.currency-item__coin-name,
.currency-item__content-date,
.market-overview-card__item,
.footer-area,
.footer-area p,
.footer-area a {
  line-height: 1.55;
}

.banner-section .btn:not(.btn-close),
.product-section .btn:not(.btn-close),
.subscribe-wrapper .btn:not(.btn-close),
.how-to-work .btn:not(.btn-close),
.faq-section .btn:not(.btn-close),
.table-section .btn:not(.btn-close),
.header .nav-menu__link,
.header .custom--dropdown,
.header .dropdown-list,
.currency-section .currency-item,
.market-overview .market-overview-card,
.custom--accordion .accordion-item,
.dashboard-card,
.wallet-card,
.user-info-dropdown,
.trade-list,
.dropdown-menu {
  transition:
    background-color var(--xl-transition-ui),
    border-color var(--xl-transition-ui),
    color var(--xl-transition-ui),
    box-shadow var(--xl-transition-ui),
    transform var(--xl-transition-ui);
}

.currency-section .currency-item:hover,
.market-overview .market-overview-card:hover,
.custom--accordion .accordion-item:hover,
.dashboard-card:hover,
.wallet-card:hover {
  transform: translateY(-1px);
}

.banner-section .btn:not(.btn-close):hover,
.product-section .btn:not(.btn-close):hover,
.subscribe-wrapper .btn:not(.btn-close):hover,
.how-to-work .btn:not(.btn-close):hover,
.faq-section .btn:not(.btn-close):hover,
.table-section .btn:not(.btn-close):hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] .coincheck-section {
  --section-bg-two: 158 76% 35%;
  background: linear-gradient(180deg, rgba(6, 154, 106, 0.94), rgba(5, 135, 94, 0.96)) !important;
}

html[data-theme="dark"] .coincheck-section__shape {
  opacity: 0.28;
}

html[data-theme="light"] .coincheck-section__shape {
  opacity: 0.18;
}

html[data-theme="light"] .market-overview .market-overview-card,
html[data-theme="light"] .currency-section .currency-item {
  background: rgba(0, 0, 0, 0.78) !important;
  border: 1px solid var(--xl-public-border-dark) !important;
  box-shadow: var(--xl-public-shadow-dark);
}

html[data-theme="dark"] .market-overview .market-overview-card,
html[data-theme="dark"] .currency-section .currency-item {
  background: hsl(var(--white)) !important;
  border: 1px solid var(--xl-public-border-light) !important;
  box-shadow: var(--xl-public-shadow-light);
}

.market-overview-card__list .market-overview-card__item:not(:last-child) {
  border-bottom: 1px solid hsl(var(--black) / 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

html[data-theme="light"] .market-overview-card__list .market-overview-card__item:not(:last-child) {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.market-overview-card__item:hover {
  transform: none;
}

.market-list-search {
  width: min(320px, 100%);
}

.market-list-search .form-control,
.market-list-search .form--control,
.market-list-search .market-list-search-field {
  min-height: 44px;
  border-radius: 10px !important;
  padding-left: 16px;
  padding-right: 16px;
  font-weight: 500;
  box-shadow: none;
}

html[data-theme="dark"] .market-list-search .form-control,
html[data-theme="dark"] .market-list-search .form--control,
html[data-theme="dark"] .market-list-search .market-list-search-field {
  background: #ffffff !important;
  border: 1px solid var(--xl-public-border-light) !important;
  color: #111827 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .market-list-search .form-control,
html[data-theme="light"] .market-list-search .form--control,
html[data-theme="light"] .market-list-search .market-list-search-field {
  background: rgba(20, 29, 45, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--xl-text-main) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.market-list-search .form-control::placeholder,
.market-list-search .form--control::placeholder,
.market-list-search .market-list-search-field::placeholder {
  color: currentColor;
  opacity: 0.58;
}

.market-overview + .table-section .table-wrapper {
  border-radius: 10px;
  overflow: hidden;
}

html[data-theme="light"] .market-overview + .table-section .table-wrapper {
  border: 1px solid var(--xl-public-border-dark);
  box-shadow: var(--xl-public-shadow-dark);
}

html[data-theme="dark"] .market-overview + .table-section .table-wrapper {
  border: 1px solid var(--xl-public-border-light);
  box-shadow: var(--xl-public-shadow-light);
}

.trading-bottom__tab .nav-link,
.trading-table__header .custom--tab .nav-link,
.trading-table__header .nav-link,
.trade-widget .custom--tab .nav-link,
.future-trading-main .custom--tab .nav-link,
.order-status .nav-link {
  min-height: 30px;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  line-height: 1.25;
  box-shadow: none !important;
}

.trading-bottom__tab .nav-link.active,
.trading-table__header .custom--tab .nav-link.active,
.trading-table__header .nav-link.active,
.trade-widget .custom--tab .nav-link.active,
.future-trading-main .custom--tab .nav-link.active,
.order-status .nav-link.active {
  background: rgba(0, 194, 120, 0.08) !important;
  border-color: rgba(0, 194, 120, 0.24) !important;
}

.trading-bottom__tab .nav,
.trading-table__header .custom--tab,
.future-trading-main .custom--tab {
  gap: 4px;
}

@media (max-width: 575px) {
  .market-list-search {
    width: 100%;
    margin-top: 14px;
  }

  .trading-bottom__tab .nav-link,
  .trading-table__header .custom--tab .nav-link,
  .future-trading-main .custom--tab .nav-link,
  .order-status .nav-link {
    min-height: 28px;
    padding: 4px 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-section .btn:not(.btn-close),
  .product-section .btn:not(.btn-close),
  .subscribe-wrapper .btn:not(.btn-close),
  .how-to-work .btn:not(.btn-close),
  .faq-section .btn:not(.btn-close),
  .table-section .btn:not(.btn-close),
  .currency-section .currency-item,
  .market-overview .market-overview-card,
  .custom--accordion .accordion-item,
  .dashboard-card,
  .wallet-card {
    transform: none !important;
    transition: none !important;
  }
}

/* XLBITS market public polish: pair table and Trade action menu only. */
.table-section .table-wrapper {
  position: relative;
  overflow: visible !important;
}

.table-section .table-wrapper {
  padding: 18px;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08) !important;
}

.table-section .table-wrapper__item {
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.table-section .table-header-menu {
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.table-section .table-header-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(15, 23, 42, 0.62) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.table-section .table-header-menu__link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.9) !important;
}

.table-section .table-header-menu__link.active {
  background: rgba(0, 194, 120, 0.14) !important;
  border-color: rgba(0, 194, 120, 0.18);
  color: #047857 !important;
}

.table-section .market-list__left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.table-section .market-list-search {
  width: min(320px, 100%);
}

.table-section .market-list-search .market-list-search-field {
  min-height: 40px;
  padding-left: 40px !important;
  padding-right: 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-section .market-list-search i {
  left: 15px;
  color: rgba(15, 23, 42, 0.48);
  pointer-events: none;
}

.table-section .market-list__left .btn--base.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  color: rgba(15, 23, 42, 0.82) !important;
  font-size: 13px;
  font-weight: 700;
}

.table-section .market-list__left .btn--base.outline:hover {
  border-color: rgba(0, 194, 120, 0.5) !important;
  color: #047857 !important;
  background: rgba(0, 194, 120, 0.08) !important;
}

.table-section .coin-pair-list-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}

.table-section .coin-pair-list-table thead tr th {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.13) !important;
  background: transparent !important;
  color: rgba(15, 23, 42, 0.52) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-section .coin-pair-list-table tbody {
  background: transparent !important;
}

.table-section .coin-pair-list-table tbody tr {
  transition: background-color var(--xl-transition-fast);
}

.table-section .coin-pair-list-table tbody tr td {
  padding: 14px 16px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.11) !important;
  color: rgba(15, 23, 42, 0.82) !important;
  vertical-align: middle;
}

.table-section .coin-pair-list-table tbody tr:first-child td {
  border-top-color: transparent !important;
}

.table-section .coin-pair-list-table tbody tr:hover td {
  background: rgba(15, 23, 42, 0.035) !important;
}

.table-section .coin-pair-list-table tbody tr td:first-child,
.table-section .coin-pair-list-table tbody tr td:first-child a,
.table-section .customer__name {
  color: rgba(15, 23, 42, 0.9) !important;
  font-weight: 700;
}

.table-section .coin-pair-list-table .trade-btn-wrapper {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 112px;
  position: relative;
  z-index: 1200;
}

.table-section .coin-pair-list-table .allTradeBtn,
.table-section .coin-pair-list-table a.btn,
.table-section .coin-pair-list-table button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 98px;
  min-height: 36px;
  padding: 0 13px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.24) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: rgba(15, 23, 42, 0.86) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.table-section .coin-pair-list-table .allTradeBtn:hover,
.table-section .coin-pair-list-table a.btn:hover,
.table-section .coin-pair-list-table button.btn:hover {
  border-color: rgba(0, 194, 120, 0.5) !important;
  background: rgba(0, 194, 120, 0.08) !important;
  color: #047857 !important;
}

.table-section .coin-pair-list-table .allTradeBtn i {
  margin-left: 2px !important;
  font-size: 15px;
  line-height: 1;
}

.table-section .coin-pair-list-table .trade-list {
  top: calc(100% + 8px);
  right: 0;
  width: 154px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
  color: #111827 !important;
  z-index: 120000 !important;
}

.table-section .coin-pair-list-table .trade-list__item:not(:last-child) {
  margin-bottom: 2px;
}

.table-section .coin-pair-list-table .trade-list__link {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 8px;
  color: rgba(15, 23, 42, 0.84) !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.table-section .coin-pair-list-table .trade-list__link:hover {
  background: rgba(0, 194, 120, 0.1) !important;
  color: #047857 !important;
}

html[data-theme="light"] .table-section .table-wrapper {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, #05080e, #02050a) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="light"] .table-section .table-wrapper__item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.5);
}

html[data-theme="light"] .table-section .table-header-menu__link {
  color: rgba(244, 247, 251, 0.7) !important;
}

html[data-theme="light"] .table-section .table-header-menu__link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 247, 251, 0.94) !important;
}

html[data-theme="light"] .table-section .table-header-menu__link.active {
  background: rgba(0, 194, 120, 0.18) !important;
  border-color: rgba(0, 194, 120, 0.24);
  color: var(--xl-primary) !important;
}

html[data-theme="light"] .table-section .market-list-search .market-list-search-field {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(21, 31, 50, 0.94) !important;
  color: var(--xl-text-main) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .table-section .market-list-search i {
  color: rgba(244, 247, 251, 0.55);
}

html[data-theme="light"] .table-section .market-list__left .btn--base.outline {
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: rgba(244, 247, 251, 0.9) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

html[data-theme="light"] .table-section .market-list__left .btn--base.outline:hover {
  border-color: rgba(0, 194, 120, 0.54) !important;
  color: var(--xl-primary) !important;
  background: rgba(0, 194, 120, 0.1) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table thead tr th {
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  color: rgba(178, 195, 214, 0.8) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table tbody tr td {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(244, 247, 251, 0.82) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table tbody tr td:first-child,
html[data-theme="light"] .table-section .coin-pair-list-table tbody tr td:first-child a,
html[data-theme="light"] .table-section .customer__name {
  color: rgba(244, 247, 251, 0.92) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .allTradeBtn,
html[data-theme="light"] .table-section .coin-pair-list-table a.btn,
html[data-theme="light"] .table-section .coin-pair-list-table button.btn {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(244, 247, 251, 0.92) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .allTradeBtn:hover,
html[data-theme="light"] .table-section .coin-pair-list-table a.btn:hover,
html[data-theme="light"] .table-section .coin-pair-list-table button.btn:hover {
  border-color: rgba(0, 194, 120, 0.6) !important;
  background: rgba(0, 194, 120, 0.1) !important;
  color: var(--xl-primary) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .trade-list {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: #08111d !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46) !important;
  color: var(--xl-text-main) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .trade-list__link {
  color: rgba(244, 247, 251, 0.86) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .trade-list__link:hover {
  background: rgba(0, 194, 120, 0.12) !important;
  color: var(--xl-primary) !important;
}

.table-section .coin-pair-list-table .trade-btn-wrapper.is-open {
  z-index: 130000;
}

.table-section .coin-pair-list-table .trade-list.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.table-section .coin-pair-list-table .trade-btn-wrapper.is-open .trade-list {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .table-section .coin-pair-list-table .trade-btn-wrapper.is-open .trade-list {
  background: #08111d !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.52) !important;
}

@media (max-width: 767px) {
  .table-section .table-wrapper {
    padding: 12px;
    border-radius: 14px;
  }

  .table-section .table-wrapper__item {
    align-items: stretch;
    padding: 8px;
  }

  .table-section .table-header-menu,
  .table-section .market-list__left,
  .table-section .market-list-search {
    width: 100%;
  }

  .table-section .table-header-menu__link {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* XLBITS dropdown hotfix: futures pair selector and Trade menus only. */
.future-trading-main .trading-header-wrapper,
.future-trading-main .trading-header-wrapper-left,
.future-trading-main .trading-dropdown {
  overflow: visible !important;
}

.future-trading-main .trading-dropdown {
  position: relative;
  z-index: 20000;
}

.future-trading-main .trading-dropdown:hover,
.future-trading-main .trading-dropdown:focus-within {
  z-index: 160000;
}

.future-trading-main .trading-dropdown-box {
  display: block !important;
  top: 100% !important;
  margin-top: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  z-index: 160000 !important;
}

.future-trading-main .trading-dropdown:hover .trading-dropdown-box,
.future-trading-main .trading-dropdown:focus-within .trading-dropdown-box,
.future-trading-main .trading-dropdown-box:hover {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.future-trading-main .trading-dropdown-box__search,
.future-trading-main .trading-dropdown-box .search-inner,
.future-trading-main .trading-dropdown-box .search-input,
.future-trading-main .trading-dropdown-box .custom--tab,
.future-trading-main .trading-dropdown-box .nav-link,
.future-trading-main .trading-dropdown-box .tab-content,
.future-trading-main .trading-dropdown-box table,
.future-trading-main .trading-dropdown-box a {
  pointer-events: auto;
}

.future-trading-main .trading-dropdown-box .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.dashboard-fluid .trade-list,
.table-section .coin-pair-list-table .trade-list {
  box-sizing: border-box;
  width: max-content !important;
  min-width: 172px !important;
  max-width: min(220px, calc(100vw - 24px));
  padding: 6px !important;
  margin: 6px 0 0 !important;
  list-style: none;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.dashboard-fluid .trade-list__item,
.table-section .coin-pair-list-table .trade-list__item {
  display: block;
  width: 100%;
}

.dashboard-fluid .trade-list__link,
.table-section .coin-pair-list-table .trade-list__link {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* XLBITS Design System Public UI Phase 1.5A
   Scoped public visual tokens and refinements. The template currently maps
   data-theme="light" to the dark visual mode and data-theme="dark" to light. */
:root {
  --xl-public-dark-bg: #0b121d;
  --xl-public-dark-section: #111a27;
  --xl-dashboard-dark-bg: #070b13;
  --xl-public-dark-card: #101827;
  --xl-public-dark-card-raised: #151f32;
  --xl-public-dark-border: rgba(255, 255, 255, 0.10);
  --xl-public-dark-text: #f4f7fb;
  --xl-public-dark-muted: #9aa4b2;
  --xl-public-light-bg: #f6f8fb;
  --xl-public-light-section: #eef2f6;
  --xl-public-light-card: #ffffff;
  --xl-public-light-card-soft: #f9fbfd;
  --xl-public-light-border: rgba(15, 23, 42, 0.10);
  --xl-public-light-text: #111827;
  --xl-public-light-muted: #667085;
  --xl-public-primary: #00b978;
  --xl-public-primary-hover: #07966a;
  --xl-public-primary-light: #07966a;
  --xl-public-primary-soft: rgba(7, 150, 106, 0.10);
  --xl-public-secondary: #2f80ed;
  --xl-public-secondary-light: #2563eb;
  --xl-public-positive: #00c278;
  --xl-public-negative: #ff4d5a;
  --xl-public-warning: #f5b642;
  --xl-public-info: #3b82f6;
  --xl-public-shadow-dark: 0 18px 48px rgba(0, 0, 0, 0.32);
  --xl-public-shadow-light: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.header,
.banner-section,
.ongoing-campaign,
.market-overview,
.table-section,
.currency-section,
.coincheck-section,
.how-to-work,
.product-section,
.faq-section,
.subscribe-wrapper,
.footer-area,
.blog-details {
  --xl-pub-bg: var(--xl-public-light-bg);
  --xl-pub-section: var(--xl-public-light-section);
  --xl-pub-card: var(--xl-public-light-card);
  --xl-pub-card-soft: var(--xl-public-light-card-soft);
  --xl-pub-border: var(--xl-public-light-border);
  --xl-pub-text: var(--xl-public-light-text);
  --xl-pub-muted: var(--xl-public-light-muted);
  --xl-pub-accent: var(--xl-public-primary-light);
  --xl-pub-accent-hover: #056f50;
  --xl-pub-accent-soft: var(--xl-public-primary-soft);
  --xl-pub-shadow: var(--xl-public-shadow-light);
  --xl-pub-row-hover: rgba(15, 23, 42, 0.035);
}

html[data-theme="light"] .header,
html[data-theme="light"] .banner-section,
html[data-theme="light"] .ongoing-campaign,
html[data-theme="light"] .market-overview,
html[data-theme="light"] .table-section,
html[data-theme="light"] .currency-section,
html[data-theme="light"] .coincheck-section,
html[data-theme="light"] .how-to-work,
html[data-theme="light"] .product-section,
html[data-theme="light"] .faq-section,
html[data-theme="light"] .subscribe-wrapper,
html[data-theme="light"] .footer-area,
html[data-theme="light"] .blog-details {
  --xl-pub-bg: var(--xl-public-dark-bg);
  --xl-pub-section: var(--xl-public-dark-section);
  --xl-pub-card: var(--xl-public-dark-card);
  --xl-pub-card-soft: var(--xl-public-dark-card-raised);
  --xl-pub-border: var(--xl-public-dark-border);
  --xl-pub-text: var(--xl-public-dark-text);
  --xl-pub-muted: var(--xl-public-dark-muted);
  --xl-pub-accent: var(--xl-public-primary);
  --xl-pub-accent-hover: var(--xl-public-primary-hover);
  --xl-pub-accent-soft: rgba(0, 185, 120, 0.14);
  --xl-pub-shadow: var(--xl-public-shadow-dark);
  --xl-pub-row-hover: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .banner-section,
html[data-theme="dark"] .ongoing-campaign,
html[data-theme="dark"] .market-overview,
html[data-theme="dark"] .table-section,
html[data-theme="dark"] .currency-section,
html[data-theme="dark"] .coincheck-section,
html[data-theme="dark"] .how-to-work,
html[data-theme="dark"] .product-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .subscribe-wrapper,
html[data-theme="dark"] .footer-area,
html[data-theme="dark"] .blog-details {
  --xl-pub-bg: var(--xl-public-light-bg);
  --xl-pub-section: var(--xl-public-light-section);
  --xl-pub-card: var(--xl-public-light-card);
  --xl-pub-card-soft: var(--xl-public-light-card-soft);
  --xl-pub-border: var(--xl-public-light-border);
  --xl-pub-text: var(--xl-public-light-text);
  --xl-pub-muted: var(--xl-public-light-muted);
  --xl-pub-accent: var(--xl-public-primary-light);
  --xl-pub-accent-hover: #056f50;
  --xl-pub-accent-soft: var(--xl-public-primary-soft);
  --xl-pub-shadow: var(--xl-public-shadow-light);
  --xl-pub-row-hover: rgba(15, 23, 42, 0.035);
}

.banner-section,
.product-section,
.table-section {
  background-color: var(--xl-pub-bg) !important;
  color: var(--xl-pub-text) !important;
}

.ongoing-campaign.section-bg,
.currency-section.section-bg,
.faq-section.section-bg,
.how-to-work.section-bg,
.market-overview.section-bg {
  background-color: var(--xl-pub-section) !important;
  color: var(--xl-pub-text) !important;
}

.banner-section .banner-content__title,
.product-section .section-heading__title,
.currency-section .section-heading__title,
.faq-section .section-heading__title,
.how-to-work .section-heading__title,
.market-overview .section-heading__title,
.blog-details__title {
  color: var(--xl-pub-text) !important;
}

.banner-section .banner-content__desc,
.product-section .section-heading__desc,
.product-section .product-item__desc,
.currency-section .section-heading__desc,
.faq-section .section-heading__desc,
.how-to-work .section-heading__desc,
.market-overview .market-overview-subtitle,
.blog-details__desc,
.blog-details__date li {
  color: var(--xl-pub-muted) !important;
}

.banner-section .banner-content__title,
.ongoing-campaign__title,
.market-overview .section-heading__title,
.currency-section .section-heading__title,
.faq-section .section-heading__title {
  overflow-wrap: anywhere;
}

.coincheck-section {
  background:
    linear-gradient(135deg, rgba(7, 150, 106, 0.92), rgba(5, 101, 82, 0.96)),
    var(--xl-pub-accent) !important;
  color: #ffffff !important;
}

.coincheck-section__shape {
  opacity: 0.22 !important;
}

.coincheck-section .section-heading__title,
.coincheck-section .coincheck-item__title,
.coincheck-section .coincheck-item__icon {
  color: #ffffff !important;
}

.coincheck-section .coincheck-item__desc {
  color: rgba(255, 255, 255, 0.82) !important;
}

.ongoing-campaign {
  position: relative;
  isolation: isolate;
}

.ongoing-campaign__title {
  display: block;
  margin-bottom: 22px;
  color: var(--xl-pub-text) !important;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.6rem);
  font-weight: 750;
  letter-spacing: 0;
}

.ongoing-campaign .testimonials-card {
  display: block;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--xl-pub-border);
  border-radius: 14px;
  background: var(--xl-pub-card) !important;
  box-shadow: var(--xl-pub-shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ongoing-campaign .testimonials-card:hover {
  border-color: rgba(7, 150, 106, 0.34);
  transform: translateY(-1px);
}

.ongoing-campaign .testimonials-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.market-overview .market-overview-card,
.currency-section .currency-item {
  border: 1px solid var(--xl-pub-border) !important;
  border-radius: 14px !important;
  background: var(--xl-pub-card) !important;
  box-shadow: var(--xl-pub-shadow) !important;
  color: var(--xl-pub-text) !important;
}

.market-overview-card__header h6,
.currency-item__coin-title,
.market-overview-card__item .coin-name {
  color: var(--xl-pub-text) !important;
}

.market-overview-card__item,
.currency-item__content-date,
.currency-item__content-number {
  color: var(--xl-pub-muted) !important;
}

.market-overview-card__list .market-overview-card__item:not(:last-child) {
  border-bottom: 1px solid var(--xl-pub-border) !important;
}

.market-overview-card__item:hover,
.currency-section .currency-item:hover {
  background: var(--xl-pub-card-soft) !important;
  box-shadow: var(--xl-pub-shadow) !important;
}

.currency-item__icon-link {
  background: var(--xl-pub-accent-soft) !important;
  color: var(--xl-pub-accent) !important;
}

.currency-item__icon-link:hover {
  background: var(--xl-pub-accent) !important;
  color: #ffffff !important;
}

.table-section .table-wrapper {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card) !important;
  box-shadow: var(--xl-pub-shadow) !important;
  color: var(--xl-pub-text) !important;
}

.table-section .table-wrapper__item {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card-soft) !important;
}

.table-section .table-header-menu__link {
  color: var(--xl-pub-muted) !important;
}

.table-section .table-header-menu__link:hover {
  background: var(--xl-pub-accent-soft) !important;
  color: var(--xl-pub-text) !important;
}

.table-section .table-header-menu__link.active {
  background: var(--xl-pub-accent-soft) !important;
  border-color: rgba(7, 150, 106, 0.34) !important;
  color: var(--xl-pub-accent) !important;
}

.table-section .market-list-search .market-list-search-field {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card-soft) !important;
  color: var(--xl-pub-text) !important;
  box-shadow: none !important;
}

.table-section .market-list-search i {
  color: var(--xl-pub-muted) !important;
}

.table-section .market-list__left .btn--base.outline,
.table-section .coin-pair-list-table .allTradeBtn,
.table-section .coin-pair-list-table a.btn,
.table-section .coin-pair-list-table button.btn {
  border-color: var(--xl-pub-border) !important;
  background: transparent !important;
  color: var(--xl-pub-text) !important;
}

.table-section .market-list__left .btn--base.outline:hover,
.table-section .coin-pair-list-table .allTradeBtn:hover,
.table-section .coin-pair-list-table a.btn:hover,
.table-section .coin-pair-list-table button.btn:hover {
  border-color: var(--xl-pub-accent) !important;
  background: var(--xl-pub-accent-soft) !important;
  color: var(--xl-pub-accent) !important;
}

.table-section .coin-pair-list-table thead tr th {
  border-bottom: 1px solid var(--xl-pub-border) !important;
  background: transparent !important;
  color: var(--xl-pub-muted) !important;
}

.table-section .coin-pair-list-table tbody tr td {
  border-top: 1px solid var(--xl-pub-border) !important;
  color: var(--xl-pub-text) !important;
}

.table-section .coin-pair-list-table tbody tr:hover td {
  background: var(--xl-pub-row-hover) !important;
}

.table-section .coin-pair-list-table tbody tr td:first-child,
.table-section .coin-pair-list-table tbody tr td:first-child a,
.table-section .customer__name {
  color: var(--xl-pub-text) !important;
}

.table-section .coin-pair-list-table .trade-list,
.header .dropdown-list {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card) !important;
  color: var(--xl-pub-text) !important;
  box-shadow: var(--xl-pub-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.table-section .coin-pair-list-table .trade-list {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.table-section .coin-pair-list-table .trade-list__link,
.header .dropdown-list__item {
  color: var(--xl-pub-text) !important;
}

.table-section .coin-pair-list-table .trade-list__link:hover,
.header .dropdown-list__item:hover {
  background: var(--xl-pub-accent-soft) !important;
  color: var(--xl-pub-accent) !important;
}

.future-trading-main .trading-dropdown-box {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: #101827 !important;
  color: #f4f7fb !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.future-trading-main .trading-dropdown-box a,
.future-trading-main .trading-dropdown-box .nav-link {
  color: inherit;
}

.subscribe-wrapper {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card) !important;
  box-shadow: var(--xl-pub-shadow) !important;
}

.subscribe-wrapper__title {
  color: var(--xl-pub-text) !important;
}

.subscribe-wrapper__item .form--control {
  border: 1px solid var(--xl-pub-border) !important;
  background: var(--xl-pub-card-soft) !important;
  color: var(--xl-pub-text) !important;
}

.subscribe-wrapper__item .form--control::placeholder {
  color: var(--xl-pub-muted) !important;
}

.subscribe-wrapper__item .form--control:focus {
  border-color: var(--xl-pub-accent) !important;
  box-shadow: 0 0 0 3px var(--xl-pub-accent-soft) !important;
}

.footer-area {
  background: #05080e !important;
  color: rgba(244, 247, 251, 0.72) !important;
}

.footer-area p,
.footer-area li,
.footer-area span {
  color: rgba(244, 247, 251, 0.72) !important;
}

.footer-area a {
  color: rgba(244, 247, 251, 0.74) !important;
}

.footer-area a:hover {
  color: var(--xl-public-primary) !important;
}

.blog-details {
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--xl-pub-border);
  border-radius: 18px;
  background: var(--xl-pub-card);
  box-shadow: var(--xl-pub-shadow);
  color: var(--xl-pub-text);
}

.blog-details__thumb img {
  width: 100%;
  border-radius: 14px;
}

.blog-details__desc {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .ongoing-campaign .testimonials-card {
    padding: 6px;
    border-radius: 12px;
  }

  .table-section .table-wrapper__item {
    gap: 10px;
  }

  .subscribe-wrapper {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ongoing-campaign .testimonials-card,
  .currency-section .currency-item,
  .market-overview .market-overview-card,
  .table-section .btn,
  .table-section .table-header-menu__link,
  .subscribe-wrapper .btn {
    transition: none !important;
    transform: none !important;
  }
}

/* XLBITS Responsive Dashboard Phase R1
   Safe CSS-only dashboard flow fix. The right panel is not a drawer in this phase. */
@media (min-width: 1400px) and (max-width: 1599.98px) {
  .dashboard-fluid .dashboard-body .dashboard-card-wrapper > .row:first-child > .col-xxl-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .dashboard-fluid .dashboard-body .dashboard-card {
    min-height: 112px;
  }
}

@media (max-width: 1399.98px) {
  .dashboard-fluid .dashboard-body {
    --inner-p: 32px;
    padding-inline: clamp(16px, 2vw, 24px) !important;
  }

  .dashboard-fluid .dashboard-body > .row.justify-content-center > .col-xxl-9,
  .dashboard-fluid .dashboard-body > .row.justify-content-center > .col-xxl-3 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .dashboard-fluid .dashboard-body > .row.justify-content-center > .col-xxl-3 {
    margin-top: 4px;
  }

  .dashboard-fluid .dashboard-right,
  .dashboard-fluid .dashboard-right.show {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: auto !important;
    transition: none !important;
    background: transparent !important;
  }

  .dashboard-fluid .dashboard-body__bar.style,
  .dashboard-fluid .dashboard--popup-close {
    display: none !important;
  }

  .dashboard-fluid .right-sidebar {
    min-width: 0;
    height: 100%;
    margin-top: 0 !important;
    border-radius: var(--xl-radius-lg) !important;
  }

  .dashboard-fluid .right-sidebar__menu {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(154, 164, 178, 0.35) transparent;
  }

  .dashboard-fluid .right-sidebar__menu::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  .dashboard-fluid .right-sidebar__menu::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: none;
  }

  .dashboard-fluid .right-sidebar__menu::-webkit-scrollbar-thumb {
    background-color: rgba(154, 164, 178, 0.35);
    border-radius: 999px;
    outline: 0;
  }

  .dashboard-fluid .right-sidebar__deposit {
    margin-top: 18px;
  }
}

@media (max-width: 1199.98px) {
  .dashboard-fluid .sidebar-menu {
    width: min(300px, 86vw) !important;
    z-index: 120000 !important;
  }

  .dashboard-fluid .dashboard-right,
  .dashboard-fluid .dashboard-right.show {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-fluid .dashboard-right > .right-sidebar:first-child {
    grid-column: 1 / -1;
  }

  .dashboard-fluid .dashboard-header__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 1199.98px) {
  .sidebar-overlay.show {
    z-index: 119900 !important;
  }
}

@media (max-width: 991.98px) {
  .dashboard-fluid .dashboard-body {
    --inner-p: 28px;
  }

  .dashboard-fluid .dashboard-card-wrapper > .row {
    row-gap: 16px;
  }

  .dashboard-fluid .transection {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .dashboard-fluid .dashboard-header__left {
    flex: 1 1 100%;
    min-width: 0;
  }

  .dashboard-fluid .dashboard-header .copy-link {
    max-width: 100%;
    width: 100% !important;
  }

  .dashboard-fluid .dashboard-header__right {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .dashboard-fluid .dashboard-right,
  .dashboard-fluid .dashboard-right.show {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-fluid .dashboard-right > .right-sidebar:first-child {
    grid-column: auto;
  }

  .dashboard-fluid .right-sidebar {
    padding: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .dashboard-fluid .dashboard-body {
    --inner-p: 24px;
    padding-inline: 12px !important;
  }

  .dashboard-fluid .dashboardBodyNav {
    gap: 10px;
    margin-bottom: 12px !important;
  }

  .dashboard-fluid .dashboard-card-wrapper > .row:first-child > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dashboard-fluid .dashboard-card,
  .dashboard-fluid .right-sidebar,
  .dashboard-fluid .transection {
    border-radius: var(--xl-radius-md) !important;
  }

  .dashboard-fluid .dashboard-header__inner {
    gap: 12px;
  }

  .dashboard-fluid .dashboard-header .copy-link {
    padding: 10px 12px;
  }

  .dashboard-fluid .dashboard-header .copy-link input {
    min-width: 0;
    font-size: 13px;
  }

  .dashboard-fluid .right-sidebar__item {
    gap: 10px;
  }

  .dashboard-fluid .right-sidebar__item-number {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
  }
}

/* XLBITS Trading/Auth Stabilization Phase T1
   Scoped CSS-only stabilization for futures, spot trading and auth screens. */
.future-trading-main {
  --xl-trade-bg: #070b13;
  --xl-trade-panel: #0d1524;
  --xl-trade-panel-soft: #111a27;
  --xl-trade-panel-muted: #151f32;
  --xl-trade-border: rgba(148, 163, 184, 0.16);
  --xl-trade-border-soft: rgba(148, 163, 184, 0.09);
  --xl-trade-text: #f4f7fb;
  --xl-trade-muted: #9aa4b2;
  --xl-trade-green: #00b978;
  --xl-trade-red: #ff4d5a;
  --xl-trade-warning: #f5b642;
  --xl-trade-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  background: var(--xl-trade-bg) !important;
  color: var(--xl-trade-text);
}

.future-trading-main,
.future-trading-main .future-trading-content {
  gap: 6px !important;
  align-items: stretch;
}

.future-trading-main .future-trading-content__chart,
.future-trading-main .future-trading-content__history,
.future-trading-main .trading-left,
.future-trading-main .trading-right__bottom,
.future-trading-main .trading-bottom,
.future-trading-main .trading-table,
.future-trading-main .trading-asset {
  background: var(--xl-trade-panel) !important;
  border: 1px solid var(--xl-trade-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.future-trading-main .future-trading-content__chart,
.future-trading-main .future-trading-content__history {
  overflow: visible;
}

.future-trading-main .future-trade-header,
.future-trading-main .trading-header-wrapper,
.future-trading-main .trading-bottom__header,
.future-trading-main .trading-table__header,
.future-trading-main .trading-asset__header,
.future-trading-main .trading-left__top {
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--xl-trade-border-soft);
}

.future-trading-main .trading-header-wrapper,
.future-trading-main .trading-bottom__header,
.future-trading-main .trading-table__header {
  padding: 12px 14px !important;
}

.future-trading-main .trading-table {
  overflow: hidden;
}

.future-trading-main .future-trade-tab-content {
  padding: 0 14px 14px !important;
  background: transparent !important;
}

.future-trading-main .future-trade-tab-content .tab-pane {
  background: transparent !important;
}

.future-trading-main .positionedTable,
.future-trading-main .openOrderTable,
.future-trading-main .future-trade-tab-content .table-responsive {
  border: 1px solid var(--xl-trade-border-soft);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.42);
  overflow-x: auto !important;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.future-trading-main .positionedTable::-webkit-scrollbar,
.future-trading-main .openOrderTable::-webkit-scrollbar,
.future-trading-main .future-trade-tab-content .table-responsive::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.future-trading-main .positionedTable::-webkit-scrollbar-track,
.future-trading-main .openOrderTable::-webkit-scrollbar-track,
.future-trading-main .future-trade-tab-content .table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.future-trading-main .positionedTable::-webkit-scrollbar-thumb,
.future-trading-main .openOrderTable::-webkit-scrollbar-thumb,
.future-trading-main .future-trade-tab-content .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
  border-radius: 999px;
}

.future-trading-main .positionedTable .prep-table {
  min-width: 1180px;
}

.future-trading-main .openOrderTable .prep-table {
  min-width: 980px;
}

.future-trading-main .future-trade-tab-content .prep-table {
  width: 100%;
  margin: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.future-trading-main .future-trade-tab-content .prep-table thead tr th {
  height: 40px;
  padding: 9px 8px !important;
  background: #0a111d !important;
  border-bottom: 1px solid var(--xl-trade-border) !important;
  color: #a9b7c8 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr {
  background: transparent !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr td {
  padding: 10px 8px !important;
  border-bottom: 1px solid var(--xl-trade-border-soft) !important;
  color: var(--xl-trade-text) !important;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

.future-trading-main .positionedTable .prep-table th:nth-child(n + 2),
.future-trading-main .positionedTable .prep-table td:nth-child(n + 2),
.future-trading-main .openOrderTable .prep-table th:nth-child(n + 4),
.future-trading-main .openOrderTable .prep-table td:nth-child(n + 4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.future-trading-main .positionedTable .prep-table th:first-child,
.future-trading-main .positionedTable .prep-table td:first-child,
.future-trading-main .openOrderTable .prep-table th:nth-child(2),
.future-trading-main .openOrderTable .prep-table td:nth-child(2) {
  text-align: left;
}

.future-trading-main .future-symbol {
  min-width: 136px;
  gap: 10px;
  padding-left: 8px;
}

.future-trading-main .future-symbol .title {
  margin-bottom: 3px;
  color: var(--xl-trade-text) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.future-trading-main .future-symbol .sub-title,
.future-trading-main .future-symbol .subtitle {
  color: var(--xl-trade-muted) !important;
  font-size: 11px;
}

.future-trading-main .future-symbol__badge {
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid rgba(245, 182, 66, 0.22);
  border-radius: 6px;
  background: rgba(245, 182, 66, 0.14) !important;
  color: var(--xl-trade-warning) !important;
  font-size: 11px;
  font-weight: 800;
}

.future-trading-main .tp-add-btn {
  min-height: 30px;
  padding: 5px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(148, 163, 184, 0.16) !important;
  color: var(--xl-trade-text) !important;
  font-size: 12px !important;
  line-height: 1;
}

.future-trading-main .tp-add-btn:hover {
  background: rgba(148, 163, 184, 0.23) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.future-trading-main .trade-margin-left {
  color: var(--xl-trade-muted);
  font-size: 12px;
  line-height: 1.35;
}

.future-trading-main .trade-margin-left .amount {
  color: var(--xl-trade-text);
  font-weight: 700;
}

.future-trading-main .pnlAndRoi.text--success .amount,
.future-trading-main .pnlAndRoi.text--success .roi {
  color: var(--xl-trade-green) !important;
  font-weight: 800;
}

.future-trading-main .pnlAndRoi.text--danger .amount,
.future-trading-main .pnlAndRoi.text--danger .roi {
  color: var(--xl-trade-red) !important;
  font-weight: 800;
}

.future-trading-main .close-position {
  justify-content: flex-end;
  gap: 8px;
  min-width: 286px;
}

.future-trading-main .close-position__label {
  flex-shrink: 0;
}

.future-trading-main .close-position__label button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 185, 120, 0.32);
  border-radius: 8px;
  background: rgba(0, 185, 120, 0.1);
  color: var(--xl-trade-green) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.future-trading-main .close-position__label button:hover,
.future-trading-main .close-position__label button:focus {
  background: rgba(0, 185, 120, 0.16);
  border-color: rgba(0, 185, 120, 0.46);
}

.future-trading-main .form--control.close-position-input {
  width: 104px !important;
  min-width: 92px;
  height: 32px !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 8px !important;
  background: var(--xl-trade-panel-soft) !important;
  color: var(--xl-trade-text) !important;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.future-trading-main .form--control.close-position-input:focus {
  border-color: rgba(0, 185, 120, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(0, 185, 120, 0.14) !important;
}

.future-trading-main .custom--tab {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--xl-trade-border-soft);
  border-radius: 9px !important;
  padding: 3px;
}

.future-trading-main .custom--tab .nav-link {
  min-height: 28px;
  padding: 5px 9px !important;
  border-radius: 7px !important;
  color: var(--xl-trade-muted) !important;
  font-size: 12px;
  font-weight: 700;
}

.future-trading-main .custom--tab .nav-link.active {
  background: rgba(0, 185, 120, 0.12) !important;
  color: var(--xl-trade-green) !important;
}

.future-trading-main .order-book,
.future-trading-main .order-book-list,
.future-trading-main .market-wrapper,
.future-trading-main .history {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.36) transparent;
}

.future-trading-main .empty-thumb {
  min-height: 150px;
  padding: 24px 12px;
  color: var(--xl-trade-muted);
}

.trading-section .custom--container .trading-left,
.trading-section .custom--container .trading-bottom,
.trading-section .custom--container .trading-table,
.trading-section .custom--container .trading-sidebar > * {
  background: #0d1524 !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.trading-section .custom--container .trading-left__top,
.trading-section .custom--container .trading-bottom__header,
.trading-section .custom--container .trading-table__header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.trading-section .custom--container .table-wrapper-two {
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.36);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.trading-section .custom--container .empty-thumb {
  min-height: 170px;
  padding: 24px 12px;
}

.account {
  --xl-auth-bg: #070b13;
  --xl-auth-panel: #101827;
  --xl-auth-soft: #151f32;
  --xl-auth-border: rgba(148, 163, 184, 0.18);
  --xl-auth-text: #f4f7fb;
  --xl-auth-muted: #9aa4b2;
  --xl-auth-green: #00b978;
  background: var(--xl-auth-bg) !important;
}

.account .account-inner {
  min-height: 100dvh;
  background: var(--xl-auth-bg);
  overflow-x: hidden;
}

.account .account-right-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--xl-auth-bg) !important;
  color: var(--xl-auth-text);
}

.account .account-right {
  border: 1px solid var(--xl-auth-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--xl-auth-panel) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26) !important;
}

.account .account-content,
.account .account-form {
  min-width: 0;
}

.account .account-form__title {
  color: var(--xl-auth-text) !important;
  line-height: 1.1;
}

.account .account-form__desc,
.account .account-content__member-text,
.account .form--label,
.account .form-check-label,
.account .bottom-footer__text,
.account .bottom-footer__right-text {
  color: var(--xl-auth-muted) !important;
}

.account .form--control {
  min-height: 52px;
  border: 1px solid var(--xl-auth-border) !important;
  border-radius: 12px !important;
  background: var(--xl-auth-soft) !important;
  color: var(--xl-auth-text) !important;
  font-size: 15px;
  line-height: 1.35;
}

.account .form--control::placeholder {
  color: rgba(154, 164, 178, 0.78) !important;
}

.account .form--control:focus {
  border-color: rgba(0, 185, 120, 0.72) !important;
  background: #182237 !important;
  box-shadow: 0 0 0 3px rgba(0, 185, 120, 0.13) !important;
  color: var(--xl-auth-text) !important;
}

.account .password-show-hide {
  color: var(--xl-auth-text) !important;
  opacity: 0.9;
}

.account .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account .form-check-input {
  flex: 0 0 auto;
  border-color: var(--xl-auth-border);
}

.account .btn.btn--base {
  min-height: 52px;
  border-radius: 12px !important;
  font-weight: 800;
}

.account .verify-gcaptcha .g-recaptcha,
.account .verify-gcaptcha iframe {
  max-width: 100%;
}

.account .verify-gcaptcha > div {
  max-width: 100%;
}

@media (max-width: 1399.98px) {
  .future-trading-main .future-trading-content__history,
  .future-trading-main .future-trading-right {
    width: 292px;
  }

  .future-trading-main .future-trading-left {
    width: calc(100% - 292px);
  }
}

@media (max-width: 1199.98px) {
  .future-trading-main,
  .future-trading-main .future-trading-content {
    gap: 8px !important;
  }

  .future-trading-main .future-trading-left,
  .future-trading-main .future-trading-content__history {
    width: 100% !important;
  }

  .future-trading-main .future-trading-content__history {
    align-items: stretch;
  }

  .future-trading-main .trading-left,
  .future-trading-main .trading-right__bottom {
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .future-trading-main {
    display: block;
  }

  .future-trading-main .trading-bottom__fixed {
    z-index: 99990;
    border-top: 1px solid var(--xl-trade-border);
    background: rgba(7, 11, 19, 0.96) !important;
  }

  .future-trading-main .buy-sell-one,
  .future-trading-main .buy-sell-two {
    max-height: min(78dvh, 640px);
    border-top: 1px solid var(--xl-trade-border);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42);
  }
}

@media (max-width: 767.98px) {
  .future-trading-main .future-trading-content__history {
    flex-direction: column;
  }

  .future-trading-main .trading-left,
  .future-trading-main .trading-right__bottom {
    width: 100% !important;
  }

  .future-trading-main .trading-header-wrapper,
  .future-trading-main .trading-bottom__header,
  .future-trading-main .trading-table__header {
    padding: 10px 12px !important;
  }

  .account .account-left {
    display: none !important;
  }

  .account .account-right-wrapper {
    width: 100% !important;
    min-height: 100dvh;
    padding: 16px !important;
  }

  .account .account-content__top {
    margin-bottom: 18px !important;
  }

  .account .account-content__member {
    justify-content: flex-end;
    row-gap: 8px;
  }

  .account .account-right {
    max-width: 620px;
    margin-inline: auto;
    padding: 28px 18px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 575.98px) {
  .future-trading-main .future-trade-tab-content {
    padding: 0 10px 12px !important;
  }

  .future-trading-main .positionedTable .prep-table {
    min-width: 1100px;
  }

  .future-trading-main .openOrderTable .prep-table {
    min-width: 920px;
  }

  .future-trading-main .future-trade-tab-content .prep-table tbody tr td {
    padding: 9px 7px !important;
  }

  .account .account-right-wrapper {
    padding: 12px !important;
  }

  .account .account-right {
    padding: 24px 14px !important;
  }

  .account .account-form__title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .account .form--control,
  .account .btn.btn--base {
    min-height: 48px;
  }

  .account .bottom-footer__text,
  .account .bottom-footer__right {
    text-align: center;
  }
}

@media (max-width: 374.98px) {
  .account .account-content__member {
    justify-content: center;
  }

  .account .verify-gcaptcha {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .future-trading-main .future-trade-tab-content .prep-table tbody tr,
  .future-trading-main .tp-add-btn,
  .future-trading-main .close-position__label button,
  .trading-section .custom--container .trading-left,
  .trading-section .custom--container .trading-bottom,
  .trading-section .custom--container .trading-table,
  .account .form--control,
  .account .btn.btn--base {
    transition: none !important;
    transform: none !important;
  }
}

/* XLBITS Choose Us Section Fine Tune
   Scoped correction for icon alignment and background texture visibility. */
.coincheck-section {
  background:
    linear-gradient(135deg, rgba(7, 126, 92, 0.82), rgba(5, 96, 78, 0.88)),
    #087a5c !important;
}

.coincheck-section__shape {
  opacity: 0.42 !important;
  filter: brightness(1.25) contrast(1.08);
}

.coincheck-section__shape img {
  display: block;
  max-width: min(920px, 86vw);
}

.coincheck-section .coincheck-item {
  text-align: center;
}

.coincheck-section .coincheck-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px !important;
  line-height: 1;
}

.coincheck-section .coincheck-item__icon i,
.coincheck-section .coincheck-item__icon svg {
  display: block;
  line-height: 1;
}

.coincheck-section .coincheck-item__desc {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .coincheck-section__shape {
    display: block;
    opacity: 0.24 !important;
  }

  .coincheck-section .coincheck-item__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px !important;
  }
}

/* XLBITS Futures UX Pro - Position Close Stabilization
   Scoped terminal polish for position PnL and close controls. */
.future-trading-main .future-position-table-desktop {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

.future-trading-main .future-position-table-desktop tbody tr {
  background: transparent !important;
  box-shadow: none;
}

.future-trading-main .future-position-table-desktop tbody tr:hover {
  background: rgba(255, 255, 255, 0.015) !important;
}

.future-trading-main .future-position-table-desktop tbody td {
  border-top: 0 !important;
  border-bottom: 1px solid rgba(142, 160, 189, 0.10) !important;
}

.future-trading-main .future-position-table-desktop tbody td:first-child {
  border-left: 0 !important;
  border-radius: 0;
}

.future-trading-main .future-position-table-desktop tbody td:last-child {
  border-right: 0 !important;
  border-radius: 0;
}

.future-trading-main .future-position-table-desktop .xl-futures-position-pnl-cell {
  min-width: 214px !important;
}

.future-trading-main .xl-futures-position-pnl {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 2px !important;
  max-width: 205px !important;
  min-width: 188px !important;
  padding: 0;
}

.future-trading-main .xl-futures-pnl-line {
  min-height: 16px;
}

.future-trading-main .xl-futures-pnl-line span {
  color: #8ea0bd !important;
  font-size: 9.5px !important;
  text-transform: none;
}

.future-trading-main .xl-futures-pnl-line strong {
  font-size: 10.5px !important;
  font-weight: 700;
}

.future-trading-main .xl-futures-pnl-line:first-child strong,
.future-trading-main .xl-futures-pnl-line--net strong {
  font-size: 11.5px !important;
}

.future-trading-main .xl-futures-pnl-line--net {
  border-top: 1px solid rgba(142, 160, 189, 0.10);
  margin-top: 3px;
  padding-top: 4px;
}

.future-trading-main .xl-futures-position-fees {
  color: #7f8da6 !important;
  font-size: 9px !important;
  line-height: 1.25;
  margin-top: 2px;
}

.future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
  min-width: 398px !important;
}

.future-trading-main .xl-futures-position-close-form {
  width: 100%;
}

.future-trading-main .close-position--professional {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  column-gap: 6px !important;
  display: grid !important;
  grid-template-areas:
    "action size preset price"
    "hint hint hint hint";
  grid-template-columns: 54px minmax(118px, 1fr) 76px minmax(112px, 1fr);
  max-width: 398px;
  padding: 0;
  row-gap: 4px !important;
  width: 100%;
}

.future-trading-main .close-position__row {
  display: contents !important;
}

.future-trading-main .closePositionBtn {
  align-items: center;
  background: #00b879;
  border: 1px solid #00b879;
  border-radius: 6px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  grid-area: action;
  justify-content: center;
  min-height: 28px;
  min-width: 54px;
  padding: 0 9px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.future-trading-main .closePositionBtn:hover,
.future-trading-main .closePositionBtn:focus {
  background: #07966a;
  border-color: #07966a;
  color: #fff !important;
}

.future-trading-main .close-position__input-group {
  display: grid !important;
  grid-area: size;
  grid-template-columns: minmax(72px, 1fr) 42px !important;
  min-width: 0;
}

.future-trading-main .close-position-input,
.future-trading-main .close-position-unit,
.future-trading-main .close-position__preset-toggle {
  background-color: rgba(16, 26, 43, 0.52) !important;
  border: 1px solid rgba(142, 160, 189, 0.14) !important;
  color: #e4edf9 !important;
  font-size: 10px !important;
  font-weight: 700;
  min-height: 28px !important;
}

.future-trading-main .close-position-input::placeholder {
  color: #8b98ad !important;
}

.future-trading-main .close-position-input:focus,
.future-trading-main .close-position-unit:focus,
.future-trading-main .close-position__preset-toggle:focus {
  border-color: rgba(0, 184, 121, 0.58) !important;
  box-shadow: 0 0 0 2px rgba(0, 184, 121, 0.12) !important;
}

.future-trading-main .close-position__preset-wrap {
  align-items: center;
  display: block;
  grid-area: preset;
  position: relative;
  width: 100%;
}

.future-trading-main .close-position__preset-label {
  display: none;
}

.future-trading-main .close-position__preset-toggle {
  align-items: center;
  border-radius: 6px !important;
  cursor: pointer;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 0 8px !important;
  position: relative;
  width: 100%;
}

.future-trading-main .close-position__preset-toggle::after {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #8ea0bd;
  content: "";
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.future-trading-main .close-position__preset-wrap.is-open .close-position__preset-toggle::after {
  transform: rotate(180deg);
}

.future-trading-main .close-position__preset-toggle:hover {
  border-color: rgba(0, 184, 121, 0.34) !important;
}

.future-trading-main .close-position__preset-menu {
  background: #0b1320;
  border: 1px solid rgba(142, 160, 189, 0.16);
  border-radius: 6px;
  bottom: calc(100% + 4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  display: none;
  min-width: 78px;
  padding: 4px;
  position: absolute;
  right: 0;
  z-index: 90;
}

.future-trading-main .close-position__preset-wrap.is-open .close-position__preset-menu {
  display: grid;
  gap: 1px;
}

.future-trading-main .close-position__preset-option {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #dbe7ff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  min-height: 24px;
  padding: 0 8px;
  text-align: left;
}

.future-trading-main .close-position__preset-option:hover,
.future-trading-main .close-position__preset-option:focus,
.future-trading-main .close-position__preset-option.is-active {
  background: rgba(0, 184, 121, 0.13);
  color: #00d68f;
}

.future-trading-main .closePositionTriggerPrice {
  grid-area: price;
  min-width: 0;
}

.future-trading-main .close-position__hint {
  color: #8ea0bd !important;
  grid-area: hint;
  font-size: 8.5px !important;
  line-height: 1.25 !important;
  margin-top: 0;
  opacity: 0.82;
  text-align: right !important;
  white-space: nowrap;
}

.future-trading-main .future-position-card__close .close-position__preset-wrap {
  grid-template-columns: 64px minmax(0, 1fr);
}

.future-trading-main .future-trade-data {
  background: rgba(7, 13, 24, 0.28);
  border-top: 1px solid rgba(142, 160, 189, 0.1);
}

.future-trading-main .future-trade-data-item {
  gap: 7px;
}

.future-trading-main .future-trade-data-item__single {
  align-items: center;
  border-bottom: 1px solid rgba(142, 160, 189, 0.08);
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
}

.future-trading-main .future-trade-data-item__single span:first-child {
  color: #98a8c1 !important;
}

.future-trading-main .future-trade-data-item__single span:last-child {
  color: #eef5ff !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 1399.98px) {
  .future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
    min-width: 386px !important;
  }

  .future-trading-main .close-position--professional {
    grid-template-columns: 52px minmax(108px, 1fr) 74px minmax(104px, 1fr);
    max-width: 386px;
  }
}

@media (max-width: 767.98px) {
  .future-trading-main .future-position-card__pnl {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .future-trading-main .future-position-card__close {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .future-trading-main .future-position-card__close .close-position__preset-toggle,
  .future-trading-main .future-position-card__close .close-position-input,
  .future-trading-main .future-position-card__close .close-position-unit {
    min-height: 40px !important;
  }

  .future-trading-main .future-position-card__close .close-position__input-group,
  .future-trading-main .future-position-card__close .close-position__preset-wrap,
  .future-trading-main .future-position-card__close .closePositionTriggerPrice,
  .future-trading-main .future-position-card__close .close-position__hint,
  .future-trading-main .future-position-card__close .closePositionBtn {
    grid-area: auto;
  }

  .future-trading-main .future-position-card__close .close-position__preset-menu {
    bottom: auto;
    left: 0;
    right: auto;
    top: calc(100% + 4px);
  }
}

/* XLBITS Futures Close Professional Reset
   Keeps the position table compact and moves advanced close controls to a modal. */
.future-trading-main .positionedTable .prep-table.future-position-table-desktop {
  min-width: 1040px !important;
}

.future-trading-main .future-position-table-desktop .xl-futures-position-close-head,
.future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
  min-width: 104px !important;
  width: 104px !important;
  text-align: right !important;
}

.future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
  padding-right: 12px !important;
}

.future-trading-main .openPositionClosePanel {
  align-items: center;
  background: rgba(0, 184, 121, 0.12) !important;
  border: 1px solid rgba(0, 184, 121, 0.42) !important;
  border-radius: 7px !important;
  color: #00d68f !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 58px;
  padding: 0 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.future-trading-main .openPositionClosePanel:hover,
.future-trading-main .openPositionClosePanel:focus {
  background: #00b879 !important;
  border-color: #00b879 !important;
  color: #ffffff !important;
}

.future-trading-main .future-position-card__close {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.future-trading-main .future-position-card__close .close-position__hint {
  flex: 1;
  font-size: 10px !important;
  line-height: 1.35 !important;
  margin: 0;
  text-align: left !important;
  white-space: normal;
}

.future-trading-main .future-position-card__close .openPositionClosePanel {
  min-height: 34px;
  min-width: 112px;
}

.futures-close-modal.custom--modal .modal-dialog {
  max-width: 430px;
}

.futures-close-modal.custom--modal .modal-content {
  background: #0f1726 !important;
  border: 1px solid rgba(142, 160, 189, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
  color: #f4f7fb;
  padding: 18px !important;
}

.futures-close-modal .modal-title {
  color: #f4f7fb !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.futures-close-modal .modal-close-btn {
  align-items: center;
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 8px;
  color: #c9d6ea !important;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.futures-close-panel__subtitle {
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  margin-top: 4px;
}

.futures-close-panel__meta {
  align-items: center;
  background: rgba(5, 10, 18, 0.36);
  border: 1px solid rgba(142, 160, 189, 0.12);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 9px 10px;
}

.futures-close-panel__meta span {
  color: #8ea0bd;
  font-size: 11px;
  font-weight: 700;
}

.futures-close-panel__meta strong {
  color: #f4f7fb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.futures-close-panel__field {
  margin-bottom: 14px;
}

.futures-close-panel__field label,
.futures-close-panel__label-row label {
  color: #aebbd0;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 7px;
}

.futures-close-panel__label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.futures-close-panel__label-row label {
  margin-bottom: 0;
}

.futures-close-panel__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
}

.futures-close-modal .close-position-input,
.futures-close-modal .close-position-unit {
  background: #111d2f !important;
  border: 1px solid rgba(142, 160, 189, 0.2) !important;
  color: #e8f0fb !important;
  font-size: 12px !important;
  font-weight: 700;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 11px !important;
}

.futures-close-panel__input-row .closePositionAmount {
  border-bottom-right-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.futures-close-panel__input-row .closeAmountUnit {
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
  border-top-left-radius: 0 !important;
  text-align: center;
}

.futures-close-modal .close-position-input::placeholder {
  color: #75849a !important;
}

.futures-close-modal .close-position-input:focus,
.futures-close-modal .close-position-unit:focus {
  border-color: rgba(0, 184, 121, 0.64) !important;
  box-shadow: 0 0 0 2px rgba(0, 184, 121, 0.14) !important;
}

.futures-close-panel__quick {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 8px;
}

.futures-close-panel__quick .closePercentBtn {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 7px;
  color: #aebbd0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 6px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.futures-close-panel__quick .closePercentBtn:hover,
.futures-close-panel__quick .closePercentBtn:focus,
.futures-close-panel__quick .closePercentBtn.is-active {
  background: rgba(0, 184, 121, 0.14);
  border-color: rgba(0, 184, 121, 0.42);
  color: #00d68f;
}

.futures-close-modal .closeUseMarkBtn {
  background: transparent;
  border: 0;
  color: #00d68f;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 0;
}

.futures-close-modal .closeUseMarkBtn:hover,
.futures-close-modal .closeUseMarkBtn:focus {
  color: #37f2b0;
}

.futures-close-panel__help {
  color: #7f8da6;
  font-size: 10.5px;
  line-height: 1.45;
}

.futures-close-modal .modal-footer {
  gap: 8px;
}

.futures-close-modal .modal-footer .btn {
  border-radius: 8px !important;
  font-size: 12px;
  font-weight: 800;
  min-height: 36px;
  min-width: 96px;
}

.futures-close-modal .modal-footer .btn--base {
  background: #00b879 !important;
  border-color: #00b879 !important;
  color: #ffffff !important;
}

.futures-close-modal .modal-footer .btn--base:hover,
.futures-close-modal .modal-footer .btn--base:focus {
  background: #07966a !important;
  border-color: #07966a !important;
}

@media (max-width: 575.98px) {
  .futures-close-modal.custom--modal .modal-dialog {
    margin: 12px;
  }

  .futures-close-panel__quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .futures-close-panel__input-row {
    grid-template-columns: minmax(0, 1fr) 78px;
  }
}

/* XLBITS Futures Compact UX Pass
   Removes desktop table scrollbar, tightens futures density, and fixes close modal input sizing. */
@media (min-width: 768px) {
  .future-trading-main {
    font-size: 11px;
  }

  .future-trading-main .positionedTable {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
    scrollbar-width: none;
  }

  .future-trading-main .positionedTable::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  .future-trading-main .positionedTable .prep-table.future-position-table-desktop,
  .future-trading-main .future-position-table-desktop {
    min-width: 0 !important;
    table-layout: fixed !important;
    width: 100% !important;
  }

  .future-trading-main .future-position-table-desktop th,
  .future-trading-main .future-position-table-desktop td {
    min-width: 0 !important;
    padding: 7px 4px !important;
    vertical-align: middle !important;
  }

  .future-trading-main .future-position-table-desktop th {
    color: #b8c7dd !important;
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0.01em !important;
    line-height: 1.15;
    white-space: normal !important;
  }

  .future-trading-main .future-position-table-desktop td {
    color: #f2f6fb !important;
    font-size: 10.5px !important;
    line-height: 1.18;
    text-align: center !important;
    white-space: normal !important;
  }

  .future-trading-main .future-position-table-desktop small {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(1),
  .future-trading-main .future-position-table-desktop td:nth-child(1) {
    text-align: left !important;
    width: 14%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(2),
  .future-trading-main .future-position-table-desktop td:nth-child(2) {
    width: 13%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(3),
  .future-trading-main .future-position-table-desktop td:nth-child(3) {
    width: 7%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(4),
  .future-trading-main .future-position-table-desktop td:nth-child(4) {
    width: 11%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(5),
  .future-trading-main .future-position-table-desktop td:nth-child(5) {
    width: 10%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(6),
  .future-trading-main .future-position-table-desktop td:nth-child(6),
  .future-trading-main .future-position-table-desktop .xl-futures-position-margin-head,
  .future-trading-main .future-position-table-desktop .xl-futures-position-margin-cell {
    width: 8%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(7),
  .future-trading-main .future-position-table-desktop td:nth-child(7),
  .future-trading-main .future-position-table-desktop .xl-futures-position-pnl-head,
  .future-trading-main .future-position-table-desktop .xl-futures-position-pnl-cell {
    width: 27%;
  }

  .future-trading-main .future-position-table-desktop th:nth-child(8),
  .future-trading-main .future-position-table-desktop td:nth-child(8),
  .future-trading-main .future-position-table-desktop .xl-futures-position-close-head,
  .future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
    min-width: 0 !important;
    text-align: center !important;
    width: 10% !important;
  }

  .future-trading-main .future-symbol {
    gap: 5px;
    min-width: 0 !important;
    padding-left: 0;
  }

  .future-trading-main .future-symbol__inner {
    min-width: 0;
  }

  .future-trading-main .future-symbol .title {
    font-size: 11px !important;
    line-height: 1.08;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
  }

  .future-trading-main .future-symbol .sub-title {
    font-size: 8.5px !important;
    line-height: 1.1;
  }

  .future-trading-main .future-symbol__badge {
    border-radius: 5px;
    font-size: 8.5px !important;
    min-width: 25px;
    padding: 3px 5px;
  }

  .future-trading-main .tp-add-btn {
    border-radius: 6px !important;
    font-size: 10px !important;
    min-height: 25px;
    padding: 4px 8px !important;
  }

  .future-trading-main .xl-futures-position-margin {
    font-size: 10px;
    line-height: 1.15;
  }

  .future-trading-main .xl-futures-position-pnl {
    gap: 1px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .future-trading-main .xl-futures-pnl-line {
    gap: 5px;
    min-height: 13px;
  }

  .future-trading-main .xl-futures-pnl-line span {
    font-size: 8.5px !important;
  }

  .future-trading-main .xl-futures-pnl-line strong {
    font-size: 9.5px !important;
  }

  .future-trading-main .xl-futures-pnl-line:first-child strong,
  .future-trading-main .xl-futures-pnl-line--net strong {
    font-size: 10px !important;
  }

  .future-trading-main .xl-futures-position-fees {
    font-size: 7.8px !important;
    line-height: 1.15;
    white-space: normal !important;
  }

  .future-trading-main .openPositionClosePanel {
    border-radius: 7px !important;
    font-size: 9.5px;
    min-height: 26px;
    min-width: 50px;
    padding: 0 9px;
  }

  .future-trading-main .xl-futures-position-close-head.closeAllPosition {
    background: rgba(255, 77, 90, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 77, 90, 0.22);
    color: #ffb86b !important;
    cursor: pointer;
    text-align: center !important;
  }

  .future-trading-main .xl-futures-position-close-head.closeAllPosition:hover {
    background: rgba(255, 77, 90, 0.13) !important;
    color: #ffd29a !important;
  }
}

.futures-close-modal .futures-close-panel__input-row {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 70px;
  width: 100%;
}

.futures-close-modal .close-position-input,
.futures-close-modal .close-position-unit {
  max-width: none !important;
  min-width: 0 !important;
  width: 100% !important;
}

.futures-close-modal .closePositionTriggerPrice {
  display: block;
  width: 100% !important;
}

.futures-close-modal .futures-close-panel__field {
  margin-bottom: 11px;
}

.futures-close-modal .futures-close-panel__quick {
  gap: 5px;
  margin-top: 7px;
}

.futures-close-modal .futures-close-panel__quick .closePercentBtn {
  border-radius: 6px;
  min-height: 29px;
}

.futures-close-modal .futures-close-panel__help {
  border-top: 1px solid rgba(142, 160, 189, 0.16);
  padding-top: 8px;
}

/* XLBITS Minimal Financial UI Cleanup
   Reduces nested cards and replaces internal boxes with compact separators. */
.future-trading-main,
.dashboard-fluid,
.trading-section .custom--container {
  --xl-minimal-panel: #101827;
  --xl-minimal-panel-soft: #121c2d;
  --xl-minimal-line: rgba(142, 160, 189, 0.12);
  --xl-minimal-line-soft: rgba(142, 160, 189, 0.08);
  --xl-minimal-text: #f4f7fb;
  --xl-minimal-muted: #95a4ba;
}

.future-trading-main .future-trading-content__chart,
.future-trading-main .future-trading-content__history,
.future-trading-main .trading-bottom,
.future-trading-main .trading-table,
.future-trading-main .trading-asset,
.trading-section .custom--container .trading-left,
.trading-section .custom--container .trading-bottom,
.trading-section .custom--container .trading-table,
.dashboard-fluid .dashboard-card,
.dashboard-fluid .transection,
.dashboard-fluid .right-sidebar {
  background: var(--xl-minimal-panel) !important;
  border: 1px solid var(--xl-minimal-line) !important;
  box-shadow: none !important;
}

.future-trading-main .trading-right__bottom,
.future-trading-main .trading-history.trading-left__top,
.future-trading-main .trading-left__top,
.future-trading-main .trading-left__header,
.future-trading-main .trading-market__header,
.future-trading-main .trading-table__header,
.future-trading-main .trading-bottom__header,
.future-trading-main .trading-asset__header {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-minimal-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .trading-right__bottom {
  margin-top: 8px;
  padding-top: 2px;
}

.future-trading-main .trading-history.trading-left__top,
.future-trading-main .trading-left__top {
  margin-bottom: 4px !important;
  padding: 7px 10px !important;
}

.future-trading-main .trading-left__top-title,
.future-trading-main .trading-history__title,
.future-trading-main .trading-asset__header h4,
.future-trading-main .trading-table__header h4,
.future-trading-main .trading-bottom__header h4 {
  color: var(--xl-minimal-text) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

.future-trading-main .trading-left__header,
.future-trading-main .trading-market__header {
  margin-bottom: 0 !important;
  padding: 5px 10px !important;
}

.future-trading-main .trading-market__header-one,
.future-trading-main .trading-market__header-two,
.future-trading-main .trading-market__header-three,
.future-trading-main .price__item,
.future-trading-main .amount__item,
.future-trading-main .total__item,
.future-trading-main .history__price-item,
.future-trading-main .history__date-item {
  font-size: 10px !important;
}

.future-trading-main .history__list,
.future-trading-main .trading-left__list,
.future-trading-main .order-book-list,
.future-trading-main .trading-asset-info__item,
.future-trading-main .future-trade-data-item__single {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-minimal-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .history__list,
.future-trading-main .trading-left__list {
  margin: 0 !important;
  min-height: 24px;
  padding: 3px 10px !important;
}

.future-trading-main .history__list:hover,
.future-trading-main .trading-left__list:hover,
.future-trading-main .trading-asset-info__item:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

.future-trading-main .market-wrapper,
.future-trading-main .history,
.future-trading-main .order-book,
.future-trading-main .future-order-book-wrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .trading-asset-info {
  gap: 0 !important;
  padding: 0 !important;
}

.future-trading-main .trading-asset-info__item {
  align-items: center;
  font-size: 11px !important;
  gap: 8px;
  min-height: 27px;
  padding: 4px 0 !important;
}

.future-trading-main .trading-asset-info__item span:first-child,
.future-trading-main .future-trade-data-item__single span:first-child {
  color: var(--xl-minimal-muted) !important;
}

.future-trading-main .trading-asset-info__item span:last-child,
.future-trading-main .future-trade-data-item__single span:last-child {
  color: var(--xl-minimal-text) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.future-trading-main .future-trade-data {
  background: transparent !important;
  border: 0 !important;
  padding: 6px 0 0 !important;
}

.future-trading-main .future-trade-data-item {
  gap: 0 !important;
}

.future-trading-main .future-trade-data-item__single {
  padding: 4px 0 !important;
}

.future-trading-main .custom--tab {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-minimal-line-soft) !important;
  border-radius: 0 !important;
  gap: 14px;
  padding: 0 !important;
}

.future-trading-main .custom--tab .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--xl-minimal-muted) !important;
  min-height: 30px;
  padding: 6px 0 !important;
}

.future-trading-main .custom--tab .nav-link.active {
  background: transparent !important;
  border-bottom-color: #00b978 !important;
  color: #00d68f !important;
}

.future-trading-main .future-trade-tab-content {
  padding: 0 10px 10px !important;
}

.future-trading-main .positionedTable,
.future-trading-main .openOrderTable,
.future-trading-main .future-trade-tab-content .table-responsive {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .future-trade-tab-content .prep-table thead tr th {
  background: transparent !important;
  border-bottom: 1px solid var(--xl-minimal-line) !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr td {
  background: transparent !important;
  border-bottom: 1px solid var(--xl-minimal-line-soft) !important;
}

.dashboard-fluid .transection__item,
.dashboard-fluid .right-sidebar__item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-minimal-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 10px 0 !important;
}

.dashboard-fluid .transection__item:hover,
.dashboard-fluid .right-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.025) !important;
  transform: none !important;
}

.dashboard-fluid .transection__title,
.dashboard-fluid .right-sidebar__header h4 {
  color: var(--xl-minimal-text) !important;
  font-size: 15px !important;
  font-weight: 800;
}

.dashboard-fluid .transection__date {
  flex: 0 0 34px;
}

.dashboard-fluid .transection__date::before {
  right: -18px;
  width: 2px;
}

.dashboard-fluid .transection__content {
  padding-left: 34px;
}

.dashboard-fluid .transection__content-title {
  font-size: 12px !important;
  font-weight: 800;
}

.dashboard-fluid .transection__content-desc {
  color: var(--xl-minimal-muted) !important;
  font-size: 11px !important;
  line-height: 1.35;
}

.dashboard-fluid .right-sidebar__item-icon {
  background: rgba(0, 185, 120, 0.08) !important;
  border-color: rgba(0, 185, 120, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.dashboard-fluid .right-sidebar__button {
  box-shadow: none !important;
}

.trading-section .custom--container .table-wrapper-two,
.trading-section .custom--container .trading-left__top,
.trading-section .custom--container .trading-bottom__header,
.trading-section .custom--container .trading-table__header {
  background: transparent !important;
  border-color: var(--xl-minimal-line-soft) !important;
  box-shadow: none !important;
}

.table-section .table-wrapper__item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.table-section .coin-pair-list-table tbody tr td {
  border-bottom: 1px solid rgba(142, 160, 189, 0.12) !important;
}

.account .account-content,
.account .account-form {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.account .account-right {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 767.98px) {
  .future-trading-main .future-position-card,
  .dashboard-fluid .dashboard-card,
  .dashboard-fluid .transection,
  .dashboard-fluid .right-sidebar {
    border-radius: 10px !important;
  }

  .dashboard-fluid .transection__content {
    padding-left: 12px;
  }

  .dashboard-fluid .transection__date::before {
    display: none;
  }
}

/* XLBITS Minimal Financial UI Phase M2
   Final scoped cleanup: main panels stay; internal boxes become technical rows. */
.future-trading-main,
.trading-section .custom--container,
.dashboard-fluid,
.table-section,
.market-overview,
.currency-section {
  --xl-m2-bg: #070b13;
  --xl-m2-panel: #101827;
  --xl-m2-panel-soft: #111a27;
  --xl-m2-line: rgba(148, 163, 184, 0.13);
  --xl-m2-line-soft: rgba(148, 163, 184, 0.075);
  --xl-m2-text: #f4f7fb;
  --xl-m2-muted: #95a4ba;
  --xl-m2-green: #00b978;
  --xl-m2-red: #ff4d5a;
}

.future-trading-main {
  font-size: 12px;
}

.future-trading-main .future-trading-content__chart,
.future-trading-main .future-trading-content__history,
.future-trading-main > .future-trading-right,
.future-trading-main .trading-table,
.future-trading-main .trading-asset,
.trading-section .custom--container .trading-left,
.trading-section .custom--container .trading-bottom,
.trading-section .custom--container .trading-table,
.dashboard-fluid .dashboard-card,
.dashboard-fluid .transection,
.dashboard-fluid .right-sidebar {
  background: var(--xl-m2-panel) !important;
  border: 1px solid var(--xl-m2-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.future-trading-main .future-trade-header,
.future-trading-main .trading-header-wrapper,
.future-trading-main .trading-left__top,
.future-trading-main .trading-history.trading-left__top,
.future-trading-main .trading-left__header,
.future-trading-main .trading-market__header,
.future-trading-main .trading-bottom__header,
.future-trading-main .trading-table__header,
.future-trading-main .trading-asset__header,
.trading-section .custom--container .trading-left__top,
.trading-section .custom--container .trading-bottom__header,
.trading-section .custom--container .trading-table__header {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .future-trade-header,
.future-trading-main .trading-header-wrapper {
  padding: 8px 10px !important;
}

.future-trading-main .trading-left__top,
.future-trading-main .trading-history.trading-left__top,
.future-trading-main .trading-left__header,
.future-trading-main .trading-market__header {
  margin: 0 !important;
  padding: 6px 10px !important;
}

.future-trading-main .trading-left__top-title,
.future-trading-main .trading-history__title,
.future-trading-main .trading-asset__header h4,
.future-trading-main .trading-table__header h4,
.future-trading-main .trading-bottom__header h4,
.future-trading-main .xl-futures-position-close-head.closeAllPosition {
  color: var(--xl-m2-text) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.future-trading-main .xl-futures-position-close-head.closeAllPosition {
  color: #00d68f !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.future-trading-main .market-wrapper,
.future-trading-main .history,
.future-trading-main .order-book,
.future-trading-main .future-order-book-wrapper,
.future-trading-main .future-trade-data,
.future-trading-main .trading-asset-info,
.trading-section .custom--container .table-wrapper-two {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .future-order-book-wrapper {
  align-items: center;
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
  gap: 8px;
  margin: 0 !important;
  padding: 6px 10px !important;
}

.future-trading-main .history__list,
.future-trading-main .trading-left__list,
.future-trading-main .order-book-list,
.future-trading-main .trading-asset-info__item,
.future-trading-main .future-trade-data-item__single,
.trading-section .custom--container .history__list,
.trading-section .custom--container .trading-left__list {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.future-trading-main .history__list,
.future-trading-main .trading-left__list,
.trading-section .custom--container .history__list,
.trading-section .custom--container .trading-left__list {
  min-height: 22px;
  padding: 3px 10px !important;
}

.future-trading-main .history__list:hover,
.future-trading-main .trading-left__list:hover,
.future-trading-main .trading-asset-info__item:hover,
.trading-section .custom--container .history__list:hover,
.trading-section .custom--container .trading-left__list:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

.future-trading-main .trading-market__header-one,
.future-trading-main .trading-market__header-two,
.future-trading-main .trading-market__header-three,
.future-trading-main .price__item,
.future-trading-main .amount__item,
.future-trading-main .total__item,
.future-trading-main .history__price-item,
.future-trading-main .history__date-item,
.future-trading-main .trading-asset-info__item,
.future-trading-main .future-trade-data-item__single {
  color: var(--xl-m2-muted) !important;
  font-size: 10px !important;
}

.future-trading-main .history__amount-item,
.future-trading-main .price__item,
.future-trading-main .amount__item,
.future-trading-main .total__item,
.future-trading-main .history__price-item,
.future-trading-main .history__date-item,
.future-trading-main .trading-asset-info__item span:last-child {
  font-variant-numeric: tabular-nums;
}

.future-trading-main .trading-asset-info__item,
.future-trading-main .future-trade-data-item__single {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 24px;
  padding: 4px 0 !important;
}

.future-trading-main .trading-asset-info__item span:first-child,
.future-trading-main .future-trade-data-item__single span:first-child {
  color: var(--xl-m2-muted) !important;
}

.future-trading-main .trading-asset-info__item span:last-child,
.future-trading-main .future-trade-data-item__single span:last-child {
  color: var(--xl-m2-text) !important;
  font-weight: 700;
  text-align: right;
}

.future-trading-main .custom--tab,
.future-trading-main .trading-dropdown-box .custom--tab {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
  border-radius: 0 !important;
  gap: 14px;
  padding: 0 !important;
}

.future-trading-main .custom--tab .nav-link,
.future-trading-main .trading-dropdown-box .custom--tab .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--xl-m2-muted) !important;
  min-height: 28px;
  padding: 6px 0 !important;
}

.future-trading-main .custom--tab .nav-link.active,
.future-trading-main .trading-dropdown-box .custom--tab .nav-link.active {
  background: transparent !important;
  border-bottom-color: var(--xl-m2-green) !important;
  color: #00d68f !important;
}

.future-trading-main .positionedTable,
.future-trading-main .openOrderTable,
.future-trading-main .future-trade-tab-content .table-responsive {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.future-trading-main .future-trade-tab-content .prep-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

.future-trading-main .future-trade-tab-content .prep-table thead tr th {
  background: transparent !important;
  border-bottom: 1px solid var(--xl-m2-line) !important;
  color: #b8c5d8 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 8px 6px !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr,
.future-trading-main .future-trade-tab-content .prep-table tbody tr:hover {
  box-shadow: none !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018) !important;
}

.future-trading-main .future-trade-tab-content .prep-table tbody tr td {
  background: transparent !important;
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
  color: var(--xl-m2-text) !important;
  font-size: 11px !important;
  line-height: 1.25;
  padding: 8px 6px !important;
}

.future-trading-main .positionedTable .prep-table.future-position-table-desktop {
  min-width: 980px !important;
  table-layout: fixed;
}

.future-trading-main .future-position-table-desktop th:nth-child(1),
.future-trading-main .future-position-table-desktop td:nth-child(1) {
  width: 112px !important;
}

.future-trading-main .future-position-table-desktop th:nth-child(2),
.future-trading-main .future-position-table-desktop td:nth-child(2) {
  width: 138px !important;
}

.future-trading-main .future-position-table-desktop th:nth-child(3),
.future-trading-main .future-position-table-desktop td:nth-child(3) {
  width: 74px !important;
}

.future-trading-main .future-position-table-desktop th:nth-child(4),
.future-trading-main .future-position-table-desktop td:nth-child(4),
.future-trading-main .future-position-table-desktop th:nth-child(5),
.future-trading-main .future-position-table-desktop td:nth-child(5),
.future-trading-main .future-position-table-desktop th:nth-child(6),
.future-trading-main .future-position-table-desktop td:nth-child(6) {
  width: 104px !important;
}

.future-trading-main .future-position-table-desktop th:nth-child(7),
.future-trading-main .future-position-table-desktop td:nth-child(7) {
  width: 210px !important;
}

.future-trading-main .future-position-table-desktop th:nth-child(8),
.future-trading-main .future-position-table-desktop td:nth-child(8),
.future-trading-main .future-position-table-desktop .xl-futures-position-close-head,
.future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
  width: 96px !important;
  min-width: 96px !important;
}

.future-trading-main .future-symbol {
  min-width: 0;
  padding-left: 0;
}

.future-trading-main .future-symbol .title {
  font-size: 11px !important;
}

.future-trading-main .future-symbol .sub-title,
.future-trading-main .future-symbol .subtitle,
.future-trading-main .trade-margin-left,
.future-trading-main .future-position-table-desktop small {
  font-size: 9.5px !important;
}

.future-trading-main .future-symbol__badge,
.future-trading-main .tp-add-btn,
.future-trading-main .openPositionClosePanel {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.future-trading-main .tp-add-btn {
  min-height: 26px;
  padding: 4px 8px !important;
}

.future-trading-main .openPositionClosePanel {
  min-height: 26px;
  min-width: 54px;
  padding: 0 9px;
}

.future-trading-main .xl-futures-position-pnl {
  max-width: 190px !important;
  min-width: 0 !important;
}

.future-trading-main .xl-futures-pnl-line {
  min-height: 15px;
}

.future-trading-main .xl-futures-pnl-line span {
  font-size: 9px !important;
}

.future-trading-main .xl-futures-pnl-line strong {
  font-size: 10px !important;
}

.future-trading-main .xl-futures-position-fees {
  font-size: 8.5px !important;
  white-space: normal;
}

.future-trading-main .trading-dropdown-box {
  background: #0f1726 !important;
  border: 1px solid var(--xl-m2-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34) !important;
}

.future-trading-main .trading-dropdown-box .table-wrapper-two,
.future-trading-main .trading-dropdown-box .prep-table,
.future-trading-main .trading-dropdown-box .prep-table tbody,
.future-trading-main .trading-dropdown-box .prep-table tr,
.future-trading-main .trading-dropdown-box .prep-table td,
.future-trading-main .trading-dropdown-box .prep-table th {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.future-trading-main .trading-dropdown-box .prep-table td {
  border-bottom: 1px solid var(--xl-m2-line-soft) !important;
}

.future-trading-main .trading-dropdown-box .trading-dropdown-button {
  align-items: center;
  gap: 8px;
}

.future-trading-main .trading-dropdown-button-icon {
  border-radius: 4px !important;
}

.dashboard-fluid .transection {
  padding: 16px !important;
}

.dashboard-fluid .transection__item {
  align-items: center;
  gap: 12px;
}

.dashboard-fluid .transection__date {
  flex: 0 0 30px;
}

.dashboard-fluid .transection__date::before {
  background-color: var(--xl-m2-green) !important;
  opacity: 0.78;
  right: -13px;
  width: 2px;
}

.dashboard-fluid .transection__content {
  padding-left: 22px;
}

.dashboard-fluid .transection .badge,
.dashboard-fluid .transection [class*="badge--"] {
  border-radius: 999px !important;
  font-size: 10px !important;
  min-width: 52px;
  padding: 5px 9px !important;
}

.table-section .table-wrapper {
  border-radius: 12px;
}

.table-section .table-wrapper__item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-bottom: 12px;
}

.table-section .coin-pair-list-table {
  border-collapse: collapse !important;
}

.table-section .coin-pair-list-table thead tr th {
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.table-section .coin-pair-list-table tbody tr td {
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.105) !important;
}

.table-section .coin-pair-list-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.035) !important;
}

.table-section .coin-img-one,
.table-section .coin-img-two,
.market-overview-card__item .coin-name img,
.currency-item__icon img,
.dashboard-fluid .right-sidebar__currency img,
.dashboard-fluid .dashboard-card__icon img {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 50% !important;
  display: inline-flex;
  justify-content: center;
  object-fit: cover;
}

.table-section .coin-img-one img,
.table-section .coin-img-two img,
.market-overview-card__item .coin-name img,
.currency-item__icon img {
  border-radius: 50% !important;
  object-fit: cover;
}

.futures-close-modal .modal-content {
  border-radius: 10px !important;
}

.futures-close-modal .futures-close-panel__meta,
.futures-close-modal .futures-close-panel__input-row,
.futures-close-modal .futures-close-panel__quick .closePercentBtn,
.futures-close-modal .closePositionTriggerPrice {
  box-shadow: none !important;
}

.futures-close-modal .futures-close-panel__input-row {
  grid-template-columns: minmax(0, 1fr) 68px !important;
}

.futures-close-modal .futures-close-panel__quick {
  gap: 6px !important;
}

.futures-close-modal .futures-close-panel__quick .closePercentBtn {
  min-height: 30px !important;
  border-radius: 6px !important;
}

.futures-close-modal .futures-close-panel__help {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 8px;
}

@media (max-width: 1399.98px) {
  .future-trading-main .positionedTable .prep-table.future-position-table-desktop {
    min-width: 940px !important;
  }

  .future-trading-main .future-trade-tab-content .prep-table thead tr th,
  .future-trading-main .future-trade-tab-content .prep-table tbody tr td {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

@media (max-width: 767.98px) {
  .future-trading-main {
    font-size: 12px;
  }

  .future-trading-main .future-position-card {
    background: var(--xl-m2-panel) !important;
    border: 1px solid var(--xl-m2-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .future-trading-main .future-position-card__grid > div,
  .future-trading-main .future-position-card__pnl,
  .future-trading-main .future-position-card__close {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--xl-m2-line-soft) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .dashboard-fluid .transection__content {
    padding-left: 10px;
  }

  .futures-close-modal .futures-close-panel__input-row,
  .futures-close-modal .futures-close-panel__quick {
    grid-template-columns: 1fr !important;
  }
}

/* XLBITS Futures Desktop Layout Pro
   Scoped layout correction for /future/trade desktop and laptop widths. */
.trading-section .future-trading-main {
  --xl-fdlp-gap: 8px;
  --xl-fdlp-max: 1880px;
  --xl-fdlp-side: 310px;
  --xl-fdlp-book: 310px;
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--xl-fdlp-max);
  width: min(100%, var(--xl-fdlp-max));
}

.trading-section .future-trading-main *,
.trading-section .future-trading-main *::before,
.trading-section .future-trading-main *::after {
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .trading-section .future-trading-main {
    align-items: start;
    display: grid !important;
    gap: var(--xl-fdlp-gap) !important;
    grid-template-columns: minmax(0, 1fr) var(--xl-fdlp-side);
  }

  .trading-section .future-trading-main .future-trading-left,
  .trading-section .future-trading-main > .future-trading-right,
  .trading-section .future-trading-main .future-trading-content__chart,
  .trading-section .future-trading-main .future-trading-content__history {
    min-width: 0;
    width: auto !important;
  }

  .trading-section .future-trading-main .future-trading-content {
    align-items: stretch;
    display: grid !important;
    gap: var(--xl-fdlp-gap) !important;
    grid-template-columns: minmax(0, 1fr) var(--xl-fdlp-book);
    min-width: 0;
  }

  .trading-section .future-trading-main .future-trading-content__history {
    display: grid !important;
    gap: var(--xl-fdlp-gap);
    grid-template-rows: minmax(300px, auto) minmax(190px, auto);
  }

  .trading-section .future-trading-main .future-trading-content__chart,
  .trading-section .future-trading-main .trading-bottom__tab,
  .trading-section .future-trading-main .trading-chart,
  .trading-section .future-trading-main #tradingview_92622 {
    min-width: 0;
    overflow: hidden;
  }

  .trading-section .future-trading-main .future-trade-header__chart {
    gap: 14px;
  }

  .trading-section .future-trading-main .trading-header-wrapper {
    align-items: center !important;
    gap: 8px 14px !important;
  }

  .trading-section .future-trading-main .trading-header-wrapper-left {
    gap: 8px !important;
    min-width: 0;
  }

  .trading-section .future-trading-main .future-trading-header {
    gap: clamp(12px, 1vw, 18px) !important;
    min-width: 0;
  }

  .trading-section .future-trading-main .future-trading-header > div {
    min-width: 64px;
  }

  .trading-section .future-trading-main .trading-header__number {
    font-size: 11px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .trading-section .future-trading-main .future-trade-tab-content {
    overflow: hidden;
  }

  .trading-section .future-trading-main .positionedTable {
    overflow-x: hidden !important;
    scrollbar-width: none;
  }

  .trading-section .future-trading-main .positionedTable::-webkit-scrollbar {
    display: none;
  }

  .trading-section .future-trading-main .positionedTable .prep-table.future-position-table-desktop,
  .trading-section .future-trading-main .future-position-table-desktop {
    min-width: 0 !important;
    table-layout: fixed;
    width: 100% !important;
  }

  .trading-section .future-trading-main .future-position-table-desktop th,
  .trading-section .future-trading-main .future-position-table-desktop td {
    font-size: 10px !important;
    letter-spacing: 0;
    padding-left: 5px !important;
    padding-right: 5px !important;
    vertical-align: middle;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(1),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(1) {
    width: 13.5%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(2),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(2) {
    width: 13.5%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(3),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(3) {
    width: 7.5%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(4),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(4) {
    width: 12%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(5),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(5) {
    width: 10%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(6),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(6) {
    width: 9%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(7),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(7) {
    width: 19%;
  }

  .trading-section .future-trading-main .future-position-table-desktop th:nth-child(8),
  .trading-section .future-trading-main .future-position-table-desktop td:nth-child(8),
  .trading-section .future-trading-main .future-position-table-desktop .xl-futures-position-close-head,
  .trading-section .future-trading-main .future-position-table-desktop .xl-futures-position-close-cell {
    width: 15.5%;
  }

  .trading-section .future-trading-main .future-symbol .title,
  .trading-section .future-trading-main .future-symbol__inner,
  .trading-section .future-trading-main .xl-futures-position-pnl,
  .trading-section .future-trading-main .trade-margin-left {
    max-width: 100% !important;
    min-width: 0;
  }

  .trading-section .future-trading-main .future-symbol .title,
  .trading-section .future-trading-main .future-symbol .sub-title,
  .trading-section .future-trading-main .future-position-table-desktop small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trading-section .future-trading-main .xl-futures-position-close-head.closeAllPosition {
    color: #00c278 !important;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-align: right;
    text-decoration: none !important;
    white-space: nowrap;
  }
}

@media (min-width: 1600px) {
  .trading-section .future-trading-main {
    --xl-fdlp-book: 310px;
    --xl-fdlp-side: 310px;
  }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
  .trading-section .future-trading-main {
    --xl-fdlp-book: 270px;
    --xl-fdlp-max: calc(100vw - 20px);
    --xl-fdlp-side: 286px;
  }

  .trading-section .future-trading-main .trading-bottom,
  .trading-section .future-trading-main .trading-asset {
    padding-inline: 10px !important;
  }
}

@media (min-width: 1280px) and (max-width: 1399.98px) {
  .trading-section .future-trading-main {
    --xl-fdlp-book: 250px;
    --xl-fdlp-max: calc(100vw - 18px);
    --xl-fdlp-side: 266px;
  }

  .trading-section .future-trading-main .future-trading-header > div {
    min-width: 58px;
  }

  .trading-section .future-trading-main .trading-header-wrapper,
  .trading-section .future-trading-main .future-trade-header,
  .trading-section .future-trading-main .trading-table__header {
    padding-inline: 8px !important;
  }

  .trading-section .future-trading-main .future-position-table-desktop th,
  .trading-section .future-trading-main .future-position-table-desktop td {
    font-size: 9.5px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .trading-section .future-trading-main .xl-futures-pnl-line span {
    font-size: 8.5px !important;
  }

  .trading-section .future-trading-main .xl-futures-pnl-line strong,
  .trading-section .future-trading-main .openPositionClosePanel {
    font-size: 9px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1279.98px) {
  .trading-section .future-trading-main {
    --xl-fdlp-max: calc(100vw - 16px);
    --xl-fdlp-side: 258px;
  }

  .trading-section .future-trading-main .future-trading-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .trading-section .future-trading-main .future-trading-content__history {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }
}

@media (min-width: 1200px) and (max-height: 820px) {
  .trading-section .future-trading-main .trading-bottom__tab,
  .trading-section .future-trading-main #tradingview_92622,
  .trading-section .future-trading-main #tradingview_92622 > div {
    max-height: calc(100vh - 260px) !important;
    min-height: 460px;
  }
}

@media (max-width: 1199.98px) {
  .trading-section .future-trading-main {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    width: 100%;
  }

  .trading-section .future-trading-main .future-trading-left,
  .trading-section .future-trading-main > .future-trading-right,
  .trading-section .future-trading-main .future-trading-content__chart,
  .trading-section .future-trading-main .future-trading-content__history {
    min-width: 0;
    width: 100% !important;
  }

  .trading-section .future-trading-main .future-trading-content {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .trading-section .future-trading-main .future-trading-content__history {
    display: grid !important;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .trading-section .future-trading-main .positionedTable {
    overflow-x: auto !important;
  }
}

@media (max-width: 767.98px) {
  .trading-section .future-trading-main .future-trading-content__history {
    grid-template-columns: minmax(0, 1fr);
  }

  .trading-section .future-trading-main .future-trade-header__chart {
    gap: 10px;
  }

  .trading-section .future-trading-main .trading-header-wrapper-left,
  .trading-section .future-trading-main .future-trading-header {
    min-width: 0;
    width: 100%;
  }
}

/* XLBITS Futures 1366 Compact Pass
   Optimizes low-height laptop desktop view without touching trading logic. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  body:has(.future-trading-main) .header {
    min-height: 54px;
  }

  body:has(.future-trading-main) .navbar {
    min-height: 54px;
    padding-bottom: 4px !important;
    padding-top: 4px !important;
  }

  body:has(.future-trading-main) .navbar-brand.logo img {
    max-height: 50px;
    width: auto;
  }

  body:has(.future-trading-main) .nav-menu .nav-item .nav-link,
  body:has(.future-trading-main) .header-right .nav-item > a,
  body:has(.future-trading-main) .header-right .sign-in {
    font-size: 13px !important;
    line-height: 1.2;
    padding-bottom: 8px !important;
    padding-top: 8px !important;
  }

  body:has(.future-trading-main) .header-right .dashboard-btn,
  body:has(.future-trading-main) .header-right .btn {
    min-height: 34px;
    padding: 8px 14px !important;
  }

  .trading-section:has(.future-trading-main) {
    padding-bottom: 8px !important;
    padding-top: 6px !important;
  }

  .trading-section:has(.future-trading-main) > .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .trading-section .future-trading-main {
    --xl-fdlp-book: 236px;
    --xl-fdlp-gap: 6px;
    --xl-fdlp-max: calc(100vw - 20px);
    --xl-fdlp-side: 250px;
    font-size: 10.5px !important;
  }

  .trading-section .future-trading-main .future-trading-content__chart,
  .trading-section .future-trading-main .future-trading-content__history,
  .trading-section .future-trading-main > .future-trading-right,
  .trading-section .future-trading-main .trading-table,
  .trading-section .future-trading-main .trading-asset {
    border-radius: 7px !important;
  }

  .trading-section .future-trading-main .future-trade-header {
    min-height: 0;
    padding: 5px 8px !important;
  }

  .trading-section .future-trading-main .future-trade-header__chart {
    gap: 10px;
    min-height: 20px;
  }

  .trading-section .future-trading-main .future-trade-header__chart a,
  .trading-section .future-trading-main .future-trade-header__chart a span {
    font-size: 11px !important;
    line-height: 1.15;
  }

  .trading-section .future-trading-main .trading-header-wrapper {
    gap: 6px 10px !important;
    margin-top: 6px !important;
    min-height: 72px;
    padding: 6px 8px !important;
  }

  .trading-section .future-trading-main .trading-dropdown-button {
    gap: 5px !important;
    min-height: 30px;
    padding: 4px 8px !important;
  }

  .trading-section .future-trading-main .trading-dropdown-button-title {
    font-size: 16px !important;
    line-height: 1.1;
  }

  .trading-section .future-trading-main .badge-prep {
    font-size: 9px !important;
    padding: 3px 5px !important;
  }

  .trading-section .future-trading-main .trading-price h4 {
    font-size: 21px !important;
    line-height: 1.1;
    margin-bottom: 0 !important;
  }

  .trading-section .future-trading-main .future-trading-header {
    display: grid !important;
    gap: 6px 10px !important;
    grid-template-columns: repeat(7, minmax(52px, 1fr));
  }

  .trading-section .future-trading-main .future-trading-header > div {
    min-width: 0 !important;
  }

  .trading-section .future-trading-main .future-trading-header .fs-12,
  .trading-section .future-trading-main .future-trading-header .text--base {
    display: block;
    font-size: 9px !important;
    line-height: 1.05;
    white-space: nowrap;
  }

  .trading-section .future-trading-main .trading-header__number {
    font-size: 10px !important;
    line-height: 1.12;
    margin-bottom: 0 !important;
  }

  .trading-section .future-trading-main .trading-bottom__tab {
    margin-top: 6px !important;
  }

  .trading-section .future-trading-main .trading-left__top,
  .trading-section .future-trading-main .trading-history.trading-left__top,
  .trading-section .future-trading-main .trading-left__header,
  .trading-section .future-trading-main .trading-market__header,
  .trading-section .future-trading-main .trading-bottom__header,
  .trading-section .future-trading-main .trading-asset__header {
    padding: 5px 8px !important;
  }

  .trading-section .future-trading-main .trading-left__top-title,
  .trading-section .future-trading-main .trading-history__title,
  .trading-section .future-trading-main .trading-asset__header h4,
  .trading-section .future-trading-main .trading-bottom__header h4 {
    font-size: 10px !important;
  }

  .trading-section .future-trading-main .future-order-book-wrapper {
    gap: 5px !important;
    padding: 5px 8px !important;
  }

  .trading-section .future-trading-main .trading-left__list,
  .trading-section .future-trading-main .history__list,
  .trading-section .future-trading-main .order-book-list {
    min-height: 18px;
    padding: 2px 8px !important;
  }

  .trading-section .future-trading-main .trading-market__header-one,
  .trading-section .future-trading-main .trading-market__header-two,
  .trading-section .future-trading-main .trading-market__header-three,
  .trading-section .future-trading-main .price__item,
  .trading-section .future-trading-main .amount__item,
  .trading-section .future-trading-main .total__item,
  .trading-section .future-trading-main .history__amount-item,
  .trading-section .future-trading-main .history__price-item,
  .trading-section .future-trading-main .history__date-item {
    font-size: 9px !important;
    line-height: 1.15;
  }

  .trading-section .future-trading-main .buy-sell__wrapper,
  .trading-section .future-trading-main .future-trade-data,
  .trading-section .future-trading-main .custom--range,
  .trading-section .future-trading-main .buy-sell__price,
  .trading-section .future-trading-main .trading-bottom__button {
    padding: 8px !important;
  }

  .trading-section .future-trading-main .future-trade-btn,
  .trading-section .future-trading-main .custom--tab .nav-link {
    font-size: 10px !important;
    min-height: 26px;
    padding: 5px 8px !important;
  }

  .trading-section .future-trading-main .future-trade-data-item,
  .trading-section .future-trading-main .future-trade-data-item__single,
  .trading-section .future-trading-main .trading-asset-info__item {
    font-size: 10px !important;
    margin-bottom: 5px !important;
    min-height: 18px;
    padding-bottom: 2px !important;
    padding-top: 2px !important;
  }

  .trading-section .future-trading-main .form--control,
  .trading-section .future-trading-main .form-control,
  .trading-section .future-trading-main .form-select,
  .trading-section .future-trading-main select,
  .trading-section .future-trading-main input {
    font-size: 10.5px !important;
    min-height: 34px !important;
    padding-bottom: 7px !important;
    padding-top: 7px !important;
  }

  .trading-section .future-trading-main .future-trading-right .btn,
  .trading-section .future-trading-main .future-trading-right button,
  .trading-section .future-trading-main .trading-bottom__button .btn {
    min-height: 36px !important;
    padding-bottom: 8px !important;
    padding-top: 8px !important;
  }

  .trading-section .future-trading-main .trading-asset {
    margin-top: 6px !important;
  }

  .trading-section .future-trading-main .positionedTable .prep-table.future-position-table-desktop,
  .trading-section .future-trading-main .future-position-table-desktop {
    table-layout: fixed;
  }

  .trading-section .future-trading-main .future-position-table-desktop th,
  .trading-section .future-trading-main .future-position-table-desktop td {
    font-size: 9px !important;
    height: 38px;
    padding: 4px 4px !important;
  }

  .trading-section .future-trading-main .future-symbol .title,
  .trading-section .future-trading-main .future-symbol__badge,
  .trading-section .future-trading-main .tp-add-btn,
  .trading-section .future-trading-main .openPositionClosePanel {
    font-size: 9px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) and (max-height: 780px) {
  .trading-section .future-trading-main {
    --xl-fdlp-book: 232px;
    --xl-fdlp-side: 246px;
  }

  .trading-section .future-trading-main .trading-bottom__tab,
  .trading-section .future-trading-main #tradingview_92622,
  .trading-section .future-trading-main #tradingview_92622 > div,
  .trading-section .future-trading-main #tradingview_92622 iframe,
  .trading-section .future-trading-main .trading-chart,
  .trading-section .future-trading-main .trading-chart > div {
    height: clamp(300px, calc(100vh - 315px), 345px) !important;
    max-height: 345px !important;
    min-height: 300px !important;
  }

  .trading-section .future-trading-main .future-trading-content__history {
    grid-template-rows: minmax(170px, 1fr) minmax(130px, auto);
  }

  .trading-section .future-trading-main .market-wrapper,
  .trading-section .future-trading-main .history,
  .trading-section .future-trading-main .order-book {
    max-height: none !important;
  }

  .trading-section .future-trading-main .trading-table {
    margin-top: 6px !important;
  }

  .trading-section .future-trading-main .trading-table__header {
    padding-bottom: 5px !important;
    padding-top: 5px !important;
  }

  .trading-section .future-trading-main .future-trade-tab-content {
    min-height: 78px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) and (max-height: 700px) {
  .trading-section .future-trading-main .trading-bottom__tab,
  .trading-section .future-trading-main #tradingview_92622,
  .trading-section .future-trading-main #tradingview_92622 > div,
  .trading-section .future-trading-main #tradingview_92622 iframe,
  .trading-section .future-trading-main .trading-chart,
  .trading-section .future-trading-main .trading-chart > div {
    height: clamp(260px, calc(100vh - 300px), 310px) !important;
    max-height: 310px !important;
    min-height: 260px !important;
  }
}

/* XLBITS Trading Shell Compact Header
   Route-scoped from header.blade.php; keeps Spot/Futures focused and removes public-page chrome. */
.trading-shell-header {
  background: #000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  min-height: 50px;
  position: sticky;
  top: 0;
  z-index: 10020;
}

.trading-shell-header .container {
  max-width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.trading-shell-header .navbar {
  gap: 14px;
  min-height: 50px;
  padding: 0 !important;
}

.trading-shell-header .navbar-brand {
  flex: 0 0 auto;
  margin-right: 22px !important;
}

.trading-shell-header .navbar-brand.logo img {
  max-height: 42px !important;
  max-width: 156px !important;
  object-fit: contain;
  width: auto;
}

.trading-shell-header .navbar-collapse {
  min-width: 0;
}

.trading-shell-header + .trading-section {
  padding-bottom: 8px !important;
  padding-top: 8px !important;
}

body:has(.trading-shell-header) .scroll-top {
  display: none !important;
}

@media (min-width: 992px) {
  .trading-shell-header .nav-menu {
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px;
  }

  .trading-shell-header .nav-menu .nav-item {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .trading-shell-header .nav-menu .nav-item .nav-link {
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.1;
    padding-bottom: 14px !important;
    padding-top: 14px !important;
    white-space: nowrap;
  }

  .trading-shell-header .nav-menu .nav-item .nav-link::before {
    bottom: 8px !important;
    height: 1px;
  }

  .trading-shell-header .header-right {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .trading-shell-header .header-right .top-button {
    gap: 8px;
  }

  .trading-shell-header .login-registration-list {
    margin-left: -5px;
    margin-right: -5px;
    padding-right: 0 !important;
  }

  .trading-shell-header .login-registration-list__item {
    padding-left: 5px;
    padding-right: 5px;
  }

  .trading-shell-header .login-registration-list .btn {
    border-radius: 8px;
    font-size: 12px !important;
    font-weight: 700;
    min-height: 34px;
    padding: 8px 18px !important;
  }

  .trading-shell-header .login-registration-list .sign-in {
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.2;
  }

  .trading-shell-header .custom--dropdown > .custom--dropdown__selected {
    min-height: 34px;
    padding: 7px 10px !important;
  }

  .trading-shell-header .custom--dropdown > .custom--dropdown__selected .text {
    font-size: 12px;
  }

  .trading-shell-header .mega-menu {
    top: calc(100% - 1px) !important;
  }
}

@media (max-width: 991.98px) {
  .trading-shell-header {
    max-height: none !important;
    overflow: visible !important;
    padding: 6px 0 !important;
    position: sticky !important;
  }

  .trading-shell-header .navbar {
    min-height: 44px;
  }

  .trading-shell-header .navbar-brand.logo img {
    max-height: 38px !important;
    max-width: 132px !important;
  }

  .trading-shell-header .navbar-toggler.header-button i {
    font-size: 22px;
  }

  .trading-shell-header .navbar-collapse {
    background: #05080f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .trading-shell-header .nav-menu {
    margin-top: 0 !important;
  }

  .trading-shell-header .nav-item .nav-link {
    font-size: 13px !important;
    padding: 8px 0 !important;
  }
}

@media (max-width: 575.98px) {
  .trading-shell-header .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .trading-shell-header .navbar-brand.logo img {
    max-height: 34px !important;
    max-width: 118px !important;
  }

  .trading-shell-header + .trading-section {
    padding-top: 6px !important;
  }
}
