/*
Theme Name: Market95
Author: Jack ((https://t.me/sergphpbb))
Version: 1.0
*/

:root {
    --bg: #0b0f14;
    --bg2: #0f1620;
    --panel: #0f1722;
    --panel2: #0c111a;
    --text: #e7eef7;
    --muted: #9aa7b6;
    --border: rgba(255, 255, 255, .08);
    --accent: #b993ff;
    --good: #2fd67d;
    --bad: #ff4d5e;
    --chip: #121b28;
    --shadow: 0 10px 35px rgba(0, 0, 0, .35);
    --header-h: 80px;
    --footer-h: 60px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: radial-gradient(clamp(760px, 72vw, 1500px) clamp(380px, 52vh, 900px) at 30% 0%, rgba(185, 147, 255, .12), transparent 55%),
        radial-gradient(clamp(620px, 58vw, 1280px) clamp(340px, 48vh, 820px) at 80% 30%, rgba(47, 214, 125, .10), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.m95h-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    max-width: 320px;
}

.m95h-subRow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.header-right .m95p-user__sub {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.m95h-copy {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .05s ease, background .2s ease, border-color .2s ease, color .2s ease;
    flex: 0 0 auto;
}

.m95h-copy:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(185, 147, 255, .35);
    color: var(--text);
}

.m95h-copy:active {
    transform: translateY(1px);
}

.m95h-copy:focus-visible {
    outline: 2px solid rgba(185, 147, 255, .55);
    outline-offset: 2px;
}

.m95h-copy[data-copied="1"] {
    border-color: rgba(47, 214, 125, .55);
    color: rgba(47, 214, 125, .95);
}

.header-right .m95p-user__name {
    font-weight: 900;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.header-right .m95p-user__sub {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(185, 147, 255, .18);
    border: 1px solid rgba(185, 147, 255, .35);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
}

.nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.m95h-burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.m95h-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.filters-toggle,
.m95-sheet-close {
    display: none;
}

button.btn.btn-icon.m95-sheet-close {
    display: none;
}

.m95h-mobile {
    display: none;
}

.m95h-mobile[hidden] {
    display: none !important;
}

.m95h-mobile__nav {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.m95h-mobile__profile {
    padding: 2px 2px 10px;
}

.m95h-mobile__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.m95h-mobile__identity {
    min-width: 0;
    flex: 1;
}

.m95h-mobile__name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.m95h-mobile__subrow {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.m95h-mobile__sub {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.m95h-mobile__auth {
    flex: 0 0 auto;
}

.m95h-mobile__auth .btn {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

.m95h-mobile__nav {
    display: grid;
    gap: 8px;
}

.m95h-mobile__nav a {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
}

.m95h-mobile__nav a.active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .12);
}

.btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .05s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(185, 147, 255, .35)
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: rgba(185, 147, 255, .20);
    border-color: rgba(185, 147, 255, .55);
}

.main {
    flex: 1;
    display: grid;
    grid-template-columns: 52px 1.25fr 1fr;
    gap: 12px;
    padding: 14px;
}

.sidebar {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    border-radius: 16px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.sb-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.sb-btn:hover {
    background: rgba(255, 255, 255, .04);
}

.sb-btn:active {
    transform: translateY(1px);
}

.sb-btn:focus-visible {
    outline: 2px solid rgba(185, 147, 255, .55);
    outline-offset: 2px;
}

.sb-btn.active {
    border-color: rgba(185, 147, 255, .55);
    background: rgba(185, 147, 255, .15);
}

.panel {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    border-radius: 16px;
    overflow: hidden;
    min-height: calc(100vh - var(--header-h) - 28px);
}

.panel-head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .7);
    color: var(--muted);
}

.market-search__input {
    width: 220px;
    max-width: 40vw;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.market-search__input::placeholder {
    color: var(--muted);
}

.m95-loading {
    min-height: 140px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 18px 12px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    letter-spacing: .2px;
}

.m95-loading.m95-loading--more {
    min-height: 0;
    padding: 12px 12px 16px;
    font-size: 12.5px;
    font-weight: 700;
}

.m95-loading.m95-loading--empty-filter {
    gap: 12px;
}

.m95-empty-filter-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.m95-empty-filter-reset {
    min-height: 34px;
}

.m95-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m95-dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(185, 147, 255, .65);
    opacity: .25;
    animation: m95dot 1s infinite ease-in-out;
}

.m95-dots i:nth-child(2) {
    animation-delay: .15s;
}

.m95-dots i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes m95dot {

    0%,
    100% {
        transform: translateY(0);
        opacity: .25;
    }

    50% {
        transform: translateY(-3px);
        opacity: .85;
    }
}

.graph-box {
    height: 100%;
    min-height: 0;
    min-width: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
}

.btn-icon[aria-busy="true"] {
    opacity: .75;
    cursor: default;
}

.btn-icon.is-spinning i {
    animation: m95spin .8s linear infinite;
}

@keyframes m95spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orderbookWrap {
    --ob-row-h: 34px;
    --ob-cols: minmax(86px, 110px) minmax(0, 1fr) minmax(96px, 140px);
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(12, 17, 26, .35);
}

.orderbook {
    display: flex;
    flex-direction: column;
}

.orderbook__head {
    /* Keep header columns aligned with scrollable sections (account for scrollbar width) */
    padding: 10px 22px 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    background: rgba(12, 17, 26, .25);
}

.orderbook__cols {
    display: grid;
    grid-template-columns: var(--ob-cols);
    gap: 10px;
    min-width: 0;
}

.orderbook__cols>div:nth-child(2),
.orderbook__cols>div:nth-child(3) {
    text-align: right;
}

.orderbook__section {
    display: flex;
    flex-direction: column;
    /* each side scrolls independently */
    max-height: calc(var(--ob-row-h) * 5);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.orderbook__row {
    position: relative;
    display: grid;
    grid-template-columns: var(--ob-cols);
    gap: 10px;
    height: var(--ob-row-h);
    align-items: center;
    padding: 0 12px;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}

/* The bar is a real DOM child; in CSS Grid it would take the first cell unless we place it explicitly. */
.orderbook__row>.orderbook__bar {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 0;
}

.orderbook__row>.orderbook__cell {
    grid-row: 1;
    z-index: 1;
}

.orderbook__row>.orderbook__cell:nth-child(2) {
    grid-column: 1;
}

.orderbook__row>.orderbook__cell:nth-child(3) {
    grid-column: 2;
}

.orderbook__row>.orderbook__cell:nth-child(4) {
    grid-column: 3;
}

.orderbook__row:hover {
    background: rgba(255, 255, 255, .03);
}

.orderbook__row[data-placeholder] {
    cursor: default;
}

.orderbook__row[data-placeholder]:hover {
    background: transparent;
}

.orderbook__row[data-placeholder] .orderbook__bar {
    opacity: .10;
}

.orderbook__row[data-placeholder] .orderbook__cell:last-child {
    justify-self: end;
}

.orderbook__row[data-placeholder] .orderbook__cell {
    color: rgba(154, 167, 182, .95);
    font-weight: 700;
}

.orderbook__row[data-placeholder] .orderbook__price--ask,
.orderbook__row[data-placeholder] .orderbook__price--bid {
    color: rgba(154, 167, 182, .95);
}

.orderbook__bar {
    position: absolute;
    inset: 0;
    width: var(--w, 0%);
    opacity: .18;
    pointer-events: none;
}

.orderbook__section--asks .orderbook__bar {
    left: 0;
    background: rgba(255, 77, 94, .55);
}

.orderbook__section--bids .orderbook__bar {
    left: 0;
    background: rgba(47, 214, 125, .55);
}

.orderbook__cell {
    position: relative;
    z-index: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Align like the header: price left, shares/total right */
.orderbook__row>.orderbook__cell:nth-child(3),
.orderbook__row>.orderbook__cell:nth-child(4) {
    justify-self: end;
    text-align: right;
}

.orderbook__price--ask {
    color: rgba(255, 77, 94, .95);
}

.orderbook__price--bid {
    color: rgba(47, 214, 125, .95);
}

.orderbook__mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.orderbook__mid span {
    color: var(--text);
    font-weight: 700;
}

.orderbook__top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .7);
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.chip.active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.chip b {
    color: var(--text);
    font-weight: 700
}

.markets-categories {
    position: relative;
}

.chip--categories {
    font: inherit;
}

.chip--categories .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(185, 147, 255, .45);
    color: var(--text);
    background: rgba(185, 147, 255, .16);
    font-size: 11px;
    font-weight: 700;
}

.categories-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 35;
    width: min(360px, 82vw);
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(10, 15, 23, .98);
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}

.categories-search {
    display: block;
    margin-bottom: 8px;
}

.categories-search__input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(18, 27, 40, .75);
    color: var(--text);
    font-size: 12.5px;
    outline: none;
}

.categories-list {
    max-height: 240px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

.categories-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 7px 8px;
    background: rgba(18, 27, 40, .5);
}

.categories-item input {
    margin: 0;
}

.categories-item__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 12.5px;
}

.categories-item__count {
    color: var(--muted);
    font-size: 11.5px;
}

.categories-empty {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    padding: 12px 8px;
}

.categories-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.categories-actions .btn {
    min-height: 32px;
}

.market-list {
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    padding: 10px;
}

/* Custom scrollbar (cross-browser) for the markets list */
#marketList {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

#marketList::-webkit-scrollbar {
    width: 10px;
}

#marketList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
}

#marketList::-webkit-scrollbar-thumb {
    background: rgba(185, 147, 255, .45);
    border: 2px solid rgba(255, 255, 255, .04);
    border-radius: 999px;
}

#marketList::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 147, 255, .65);
}

/* Custom scrollbar (cross-browser) for the orderbook scroll zones */
.orderbook__section {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

.orderbook__section::-webkit-scrollbar {
    width: 10px;
}

.orderbook__section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.orderbook__section::-webkit-scrollbar-thumb {
    background: rgba(185, 147, 255, .45);
    border: 2px solid rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.orderbook__section::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 147, 255, .65);
}

.market-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(12, 17, 26, .65);
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    cursor: pointer;
}

.market-card:hover {
    border-color: rgba(255, 255, 255, .14)
}

.market-card.selected::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.m-ico {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.m-ico.has-img {
    background: rgba(255, 255, 255, .02);
}

.m-ico__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m-ico.has-img span {
    display: none;
}

.m-ico span {
    font-weight: 900;
    color: var(--muted)
}

.m-title {
    font-weight: 750;
    line-height: 1.2;
}

.m-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.m-sub .m-sub__time {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
}

.badge.good {
    color: rgba(47, 214, 125, .95);
    border-color: rgba(47, 214, 125, .25)
}

.badge.bad {
    color: rgba(255, 77, 94, .95);
    border-color: rgba(255, 77, 94, .25)
}

.badge strong {
    color: var(--text)
}

/* Market list: emphasize Hot YES/NO badge */
.badge.hot {
    font-weight: 850;
    letter-spacing: .2px;
    border-width: 1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset;
}

.badge.hot strong {
    color: inherit;
}

.badge.hot.hot--yes {
    color: rgba(47, 214, 125, 1);
    border-color: rgba(47, 214, 125, .65);
    background: rgba(47, 214, 125, .16);
}

.badge.hot.hot--no {
    color: rgba(255, 77, 94, 1);
    border-color: rgba(255, 77, 94, .65);
    background: rgba(255, 77, 94, .14);
}

.m-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

.price-row {
    display: flex;
    gap: 8px;
}

.price {
    min-width: 66px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 800;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    line-height: 1.1;
    appearance: none;
}

.price.yes {
    background: rgba(47, 214, 125, .10);
    border-color: rgba(47, 214, 125, .25)
}

.price.no {
    background: rgba(255, 77, 94, .08);
    border-color: rgba(255, 77, 94, .25)
}

.right {
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    cursor: pointer;
}

.tab.active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.right-body {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12px;
    padding: 12px;
    align-items: start;
}

/* Right terminal (front-page): left tabs + (orderbook/graph), right trade always visible */
.right-split {
    display: grid;
    grid-template-columns: 1fr .95fr;
    column-gap: 0;
    row-gap: 12px;
    padding: 12px;
    min-height: 0;
}

.right-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding-right: 12px;
}

.right-split .tabs {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.m95-ob-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m95-ob-status .badge {
    margin: 0;
    opacity: .9;
}

.right-left-content {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.right-tabpane {
    min-height: 0;
    min-width: 0;
    overflow: auto;
}

.right-trade {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.right-trade-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-top: 12px;
}

.trade-tab {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    user-select: none;
}

.trade-order-type {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trade-order-type__label {
    font-size: 12px;
    color: var(--muted, #9aa4b2);
}

.trade-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text, #e5e7eb);
    text-align: center;
}

.trade-status.is-error {
    color: #f87171;
}

.trade-tab.trade-tab--active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.right-rules {
    grid-column: 1 / -1;
    min-height: 0;
}

.box {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(12, 17, 26, .65);
    padding: 12px;
}

.box h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 750;
    letter-spacing: .3px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.table th,
.table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    text-align: right;
}

.table th:first-child,
.table td:first-child {
    text-align: left
}

.table tr:last-child td {
    border-bottom: none
}

.buy {
    color: rgba(47, 214, 125, .95)
}

.sell {
    color: rgba(255, 77, 94, .95)
}

.trade {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.trade-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-badge {
    width: 100%;
}

.trade-mode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .45);
    color: var(--muted);
    width: 100%;
    justify-content: space-between;
}

.trade-mode__switch {
    margin: 0 auto;
}

.trade-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-row .price-row {
    flex: 1 1 auto;
}

.trade-mode__label {
    font-size: 12px;
    letter-spacing: .2px;
    color: var(--muted);
}

.trade-mode__label.is-active {
    color: var(--text);
    font-weight: 700;
}

.trade-limit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .4);
    color: var(--muted);
}

.trade-limit[hidden] {
    display: none !important;
}

.trade-limit__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--muted);
}

.trade-limit__control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(10, 14, 22, .5);
}

.trade-limit__btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.trade-limit__btn:hover {
    background: rgba(255, 255, 255, .12);
}

.trade-limit__value {
    min-width: 70px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.trade-field {
    display: grid;
    gap: 6px;
}

.trade-summary {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .45);
    color: var(--muted);
    font-size: 12px;
    transform: translateY(-4px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .2s ease, transform .2s ease, max-height .2s ease;
}

.trade-summary.is-visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 140px;
}

.trade-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-summary__value {
    color: var(--text);
    font-weight: 700;
}

.trade-info {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .35);
    color: var(--muted);
    font-size: 12px;
}

.trade-info__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(9, 12, 18, .35);
    opacity: 0.7;
    transition: opacity .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.trade-info__item.is-active {
    opacity: 1;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(18, 27, 40, .65);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.trade-info__item--yes.is-active {
    border-color: rgba(47, 214, 125, .45);
    background: rgba(47, 214, 125, .12);
}

.trade-info__item--no.is-active {
    border-color: rgba(255, 77, 94, .45);
    background: rgba(255, 77, 94, .12);
}

.trade-info__label {
    font-size: 11px;
    letter-spacing: .2px;
    color: var(--muted);
    text-transform: uppercase;
}

.trade-info__value {
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.trade-info__split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--muted);
    font-size: 12px;
    width: fit-content;
}

.trade-balance__label {
    color: var(--muted);
}

.trade-balance__value {
    color: var(--text);
    font-weight: 700;
}

.trade-field__label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .2px;
}

/* Trade outcome buttons (Yes/No) */
.trade .price-row {
    gap: 10px;
}

.trade .price {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    line-height: 1;
}

.trade .price span {
    color: inherit;
}

.trade-upd {
    margin-left: 8px;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
    text-transform: uppercase;
}

.trade .price:focus-visible {
    outline: 2px solid rgba(185, 147, 255, .55);
    outline-offset: 2px;
}

.trade .price.active.yes {
    background: rgba(47, 214, 125, .16);
    border-color: rgba(47, 214, 125, .45);
}

.trade .price.active.no {
    background: rgba(255, 77, 94, .14);
    border-color: rgba(255, 77, 94, .45);
}

/* Trade gating for trade panel */
body.trade-locked .trade .trade-content,
.trade.is-locked .trade-content {
    filter: blur(7px);
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
}

body:not(.trade-locked) .trade .trade-content {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

.trade-lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(12, 17, 26, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.trade-lock.is-hidden {
    display: none;
}

.trade-lock__inner {
    width: min(92%, 320px);
    text-align: center;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(11, 15, 20, .65);
    box-shadow: var(--shadow);
}

.trade-lock__pane {
    display: none;
}

.trade-lock__pane.is-active {
    display: block;
}

.trade-lock__title {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--text);
}

.trade-lock__sub {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}

.trade-lock .btn {
    margin-top: 10px;
    width: 100%;
}

.trade-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toggle {
    display: flex;
    gap: 6px;
}

.pill {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    color: var(--muted);
}

.pill.active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--text);
}

.trade-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.trade-actions .btn {
    flex: 0 1 auto;
    min-width: 220px;
}

.trade-actions .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.trade-actions .btn.is-loading {
    position: relative;
    pointer-events: none;
}

.trade-actions .btn.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: rgba(255, 255, 255, .9);
    animation: m95spin .8s linear infinite;
    display: inline-block;
}

.trade-guard {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 77, 94, .45);
    background: rgba(255, 77, 94, .08);
    color: rgba(255, 198, 202, .95);
    font-size: 12px;
    line-height: 1.4;
}

.trade-guard[hidden] {
    display: none;
}

.rules {
    padding: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    max-height: 240px;
    overflow: auto;
}

/* Rules: split header (fixed) + body (scroll) */
.rules.rules--split {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.rules.rules--split .rules__head {
    flex: 0 0 auto;
}

.rules.rules--split .rules__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Custom scrollbar (cross-browser) for the rules body */
.rules.rules--split .rules__body {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

.rules.rules--split .rules__body::-webkit-scrollbar {
    width: 10px;
}

.rules.rules--split .rules__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.rules.rules--split .rules__body::-webkit-scrollbar-thumb {
    background: rgba(185, 147, 255, .45);
    border: 2px solid rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.rules.rules--split .rules__body::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 147, 255, .65);
}

.footer {
    padding: 10px 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
    border-top: 1px solid var(--border);
    height: 60px;
}

/* ===== Front page: everything fits viewport (footer always visible) ===== */

body.home {
    overflow: visible;
}

/* WP admin bar (logged-in): hide and show on hover; remove html push-down */
body.home.admin-bar {
    --adminbar-h: 32px;
}

body.home.admin-bar #wpadminbar {
    top: calc(-1 * var(--adminbar-h)) !important;
    transition: top .15s ease;
}

body.home.admin-bar #wpadminbar:hover,
body.home.admin-bar #wpadminbar:focus-within {
    top: 0 !important;
}

body.home .container {
    height: 100vh;
    min-height: 100vh;
}

body.home .main {
    height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    align-items: stretch;
    overflow: hidden;
    background: transparent;
}

body.home .footer {
    padding: 0 14px;
    background: transparent;
}

body.home .panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .02);
}

body.home .panel.right {
    display: block;
}

body.home .panel.right .right-split {
    min-height: 0;
    flex: 1;
}

body.home .market-list {
    flex: 1;
    min-height: 0;
    max-height: none;
}

body.home .panel.right .right-split {
    /* Top (orderbook/graph + trade) ~70%, bottom rules ~30% */
    grid-template-rows: minmax(0, 8fr) minmax(0, 3fr);
}

body.home .panel.right .right-left-content {
    min-height: 0;
    flex: 1;
}

body.home .panel.right #tab-orderbook.right-tabpane,
body.home .panel.right #tab-graph.right-tabpane {
    height: 100%;
    min-height: 0;
}

body.home .panel.right #tab-graph.right-tabpane .box {
    min-height: 0;
}

body.home .panel.right #tab-graph.right-tabpane .graph-box {
    min-height: 0;
}

body.home .panel.right .right-rules.rules.rules--split {
    max-height: none;
    overflow: hidden;
}

.footer a {
    opacity: .9
}

.footer a:hover {
    opacity: 1;
    color: var(--text)
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, .75);
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 6000;
}

.modal.open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(460px, 100%);
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(15, 22, 32, .98);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-head {
    padding: 14px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head .x {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    color: white;
}

.modal-body {
    padding: 14px;
}

.m95p-modalTitle {
    font-weight: 800;
    letter-spacing: .2px;
}

.m95p-modalText {
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
}

.m95p-modalLoader {
    margin-top: 12px;
}

.m95p-modalLoader[hidden] {
    display: none;
}

.m95-trade-result-card {
    width: min(520px, 100%);
}

.m95-trade-result-media {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 4px auto 10px;
}

.m95-trade-result-thumb {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
}

.m95-trade-result-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m95-trade-result-thumb-fallback {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.m95-trade-result-badge {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    line-height: 1;
    font-weight: 800;
    border: 1px solid rgba(15, 22, 32, .98);
}

.m95-trade-result-badge.is-success {
    background: #22c55e;
    color: #ffffff;
}

.m95-trade-result-badge.is-error {
    background: #ef4444;
    color: #ffffff;
}

.m95-trade-result-status {
    margin: 0 0 12px;
    text-align: center;
}

.m95-trade-result-status.is-success {
    color: #9bf2c6;
}

.m95-trade-result-status.is-error {
    color: #ffd3d3;
}

.m95-trade-result-lines {
    display: grid;
    gap: 8px;
}

.m95-trade-result-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

.m95-trade-result-k {
    font-size: 12px;
    color: var(--muted);
}

.m95-trade-result-v {
    font-size: 14px;
    color: var(--text);
}

.m95-trade-result-error {
    margin-top: 10px;
    color: #ffd3d3;
}

.m95p-modalError {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 94, .35);
    background: rgba(255, 77, 94, .12);
    color: rgba(255, 198, 202, .95);
    font-size: 12.5px;
}

.m95p-modalError[hidden] {
    display: none;
}

.m95p-modalActions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.login-brand {
    display: grid;
    place-items: center;
    padding: 10px 0 14px;
}

.login-brand .logo95 {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: rgba(185, 147, 255, .16);
    border: 1px solid rgba(185, 147, 255, .45);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 28px;
}

.provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    padding: 12px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.provider:hover {
    border-color: rgba(255, 255, 255, .14);
}

.provider small {
    color: var(--muted);
}

/* =========================
   Profile page (profile.php)
   ========================= */

.m95-profile {
    --m95-radius: 16px;
    min-height: 100vh;
}

.m95-profile.m95-guest-locked .m95p-header,
.m95-profile.m95-guest-locked .m95p-main {
    filter: blur(14px);
    opacity: .9;
    pointer-events: none;
    user-select: none;
}

.m95p-authgate {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: transparent;
}

.m95p-authgate__card {
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(15, 23, 34, .92);
    box-shadow: var(--shadow);
    padding: 18px;
}

.m95p-authgate__title {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 16px;
}

.m95p-authgate__sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.m95p-authgate__actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.m95p-wallet-lock-target {
    position: relative;
}

.m95p-wallet-lock-target.is-locked>*:not(.m95p-wallet-lock) {
    filter: blur(7px);
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
}

.m95p-wallet-lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 16px;
    background: rgba(12, 17, 26, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px;
    z-index: 2;
}

.m95p-wallet-lock__title {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--text);
}

.m95p-wallet-lock__sub {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}

.m95p-wallet-lock__sub:first-child {
    margin-top: 0;
}

.m95p-btn-deposit:disabled,
.m95p-btn-withdraw:disabled {
    opacity: .55;
    pointer-events: none;
    cursor: not-allowed;
}

.m95p-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}

.m95p-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.m95p-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, border-color .2s ease, transform .05s ease;
}

.m95p-iconbtn:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(185, 147, 255, .35);
}

.m95p-iconbtn:active {
    transform: translateY(1px);
}

.m95p-user {
    min-width: 240px;
}

.m95p-user__name {
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.1;
}

.m95p-user__sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.m95p-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m95p-btn-deposit {
    background: rgba(47, 214, 125, .14);
    border-color: rgba(47, 214, 125, .35);
}

.m95p-btn-deposit:hover {
    border-color: rgba(47, 214, 125, .55);
}

.m95p-btn-withdraw {
    background: rgba(255, 77, 94, .10);
    border-color: rgba(255, 77, 94, .25);
}

.m95p-btn-withdraw:hover {
    border-color: rgba(255, 77, 94, .45);
}

.m95p-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m95p-stat {
    min-width: 128px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
}

.m95p-stat__label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

.m95p-stat__value {
    margin-top: 4px;
    font-weight: 800;
}

[data-poly-profile-username] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m95p-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.m95p-main {
    padding: 14px;
    display: grid;
    grid-template-columns: 70% 28%;
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
}

.m95p-main.m95p-main--new {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    align-items: stretch;
}

.m95p-providerSidebar {
    position: sticky;
    top: 14px;
    align-self: stretch;
    height: calc(100vh - var(--header-h));
}

.m95p-main--new .m95p-providerSidebar .m95p-providerSelect {
    margin-bottom: 0;
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.m95p-main--new .m95p-providerSidebar .m95p-providerSelect .m95p-card__head {
    display: none;
}

.m95p-main--new .m95p-providerSidebar .m95p-providerStrip {
    margin-top: 0;
    border-top: 0;
    padding: 10px 8px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
}

.m95p-main--new .m95p-providerSidebar .m95p-provBtn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.m95p-overviewRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 10px;
    margin-bottom: 10px;
}

.m95p-overviewRow>.m95p-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m95p-right {
    position: sticky;
    top: 14px;
}

.m95p-right.right-graff>.m95p-card {
    height: 100%;
}

.m95p-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    border-radius: var(--m95-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.m95p-card__head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Mini profile (right column) */

.m95p-mini {
    margin-bottom: 12px;
}

.m95p-mini__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m95p-mini__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.m95p-mini__identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(12, 17, 26, .35);
}

.m95p-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.m95p-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.m95p-mini__avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(185, 147, 255, .35);
    background: rgba(185, 147, 255, .14);
    display: grid;
    place-items: center;
    color: rgba(214, 199, 255, .95);
    font-size: 22px;
}

.m95p-mini__identityText {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.m95p-mini__identityMain {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.m95p-mini__name {
    font-weight: 900;
    font-size: 20px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m95p-mini__wallet {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.m95p-mini__heroActions {
    justify-content: flex-start;
}

.m95p-mini__heroActions .btn {
    min-width: 116px;
}

.m95p-mini__heroRow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.m95p-mini__connectInline {
    width: 250px;
    flex: 0 0 305px;
    min-width: 0;
}

.m95p-mini__connectInline .m95p-provider,
.m95p-mini__connectInline .m95p-connections__hint {
    width: 100%;
    margin: 0;
}

.m95p-mini__heroStats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.m95p-mini__heroStats .m95p-stat {
    min-width: 0;
    background: rgba(12, 17, 26, .35);
}

.m95p-mini__connectWrap {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(12, 17, 26, .28);
}

.m95p-mini__connectHead {
    margin-bottom: 10px;
}

.m95p-mini__connectWrap .m95p-title__meta {
    margin-top: 2px;
}

.m95p-mini__hidden {
    display: none;
}

.m95p-mini__top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.m95p-mini .m95p-user {
    min-width: 0;
    flex: 1 1 auto;
}

.m95p-mini .m95p-user__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m95p-mini__actions .btn {
    flex: 1 1 0;
}

.m95p-mini__balance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(12, 17, 26, .35);
    min-width: 160px;
}

.m95p-mini__balanceLabel {
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
}

.m95p-mini__balanceValue {
    font-weight: 800;
}

.m95p-mini__balanceSub {
    font-size: 11px;
    color: var(--muted);
}

.m95p-mini__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.m95p-mini__stats .m95p-stat {
    min-width: 0;
    padding: 10px 12px;
    background: rgba(12, 17, 26, .35);
}


/* Providers / Connections (Profile) */

.m95p-connections {
    margin-bottom: 12px;
}

.m95p-connections__body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.m95p-provider {
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .05s ease;
}

.m95p-provider:hover {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(18, 27, 40, .62);
}

.m95p-provider:active {
    transform: translateY(1px);
}

.m95p-provider--active {
    border-color: rgba(185, 147, 255, .45);
    box-shadow: 0 0 0 1px rgba(185, 147, 255, .18) inset;
}

.m95p-provider__left {
    min-width: 0;
}

.m95p-provider__name {
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.15;
}

.m95p-provider__sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.m95p-provider__actions {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.m95p-provider__actions .btn {
    padding: 9px 12px;
    border-radius: 12px;
}

.m95p-connections__hint {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .12);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    background: rgba(12, 17, 26, .35);
}

.m95p-title__main {
    font-weight: 800;
}

.m95p-title__meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* Profile: Select provider (icons strip) */

.m95p-providerSelect {
    margin-bottom: 12px;
}

.m95p-providerSelect .m95p-card__head {
    padding: 10px 12px 0;
    border-bottom: 0;
}

.m95p-providerSelect .m95p-title__meta {
    max-width: 46ch;
}

.m95p-providerStrip {
    padding: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    background: rgba(12, 17, 26, .18);
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

.m95p-providerStrip::-webkit-scrollbar {
    height: 10px;
}

.m95p-providerStrip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.m95p-providerStrip::-webkit-scrollbar-thumb {
    background: rgba(185, 147, 255, .45);
    border: 2px solid rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.m95p-providerStrip::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 147, 255, .65);
}

.m95p-providerStrip__empty {
    padding: 10px 12px;
    width: 100%;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .12);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    background: rgba(12, 17, 26, .35);
}

.m95p-provBtn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--text);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.m95p-provBtn:hover {
    background: rgba(18, 27, 40, .62);
    border-color: rgba(255, 255, 255, .14);
}

.m95p-provBtn:active {
    transform: translateY(1px);
}

.m95p-provBtn:focus-visible {
    outline: 2px solid rgba(185, 147, 255, .55);
    outline-offset: 2px;
}

.m95p-provBtn.is-active {
    border-color: rgba(185, 147, 255, .55);
    background: rgba(185, 147, 255, .14);
}

.m95p-provBtn .polywpss-ico {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.m95p-pnl {
    color: var(--good);
    font-weight: 800;
}

.m95p-pnlDelta {
    color: var(--good);
}

.m95p-pnl.m95p-bad,
.m95p-pnlDelta.m95p-bad {
    color: var(--bad);
}

.m95p-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m95p-range__btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--text);
    cursor: pointer;
}

.m95p-range__seg {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
}

.m95p-pnlUnits {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
}

.m95p-pnlUnit {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 6px 9px;
    border-radius: 10px;
    cursor: pointer;
}

.m95p-pnlUnit--active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.m95p-seg {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.m95p-seg--active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .45);
    background: rgba(185, 147, 255, .14);
}

.m95p-chart {
    height: 360px;
    padding: 18px;
    position: relative;
    background: radial-gradient(900px 500px at 20% 0%, rgba(185, 147, 255, .08), transparent 60%),
        radial-gradient(700px 420px at 90% 40%, rgba(47, 214, 125, .07), transparent 62%),
        rgba(12, 17, 26, .40);
    overflow: hidden;
}

.m95p-chart__host {
    position: absolute;
    inset: 18px;
}

.m95p-chart__tip {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 14, 22, .85);
    color: var(--text);
    font-size: 12px;
    pointer-events: none;
    z-index: 3;
}

.m95p-empty {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    color: var(--muted);
    position: relative;
    z-index: 2;
}

.m95p-empty[hidden] {
    display: none !important;
}

.m95p-empty__title {
    font-weight: 800;
    color: var(--text);
    opacity: .8;
}

.m95p-empty__sub {
    margin-top: 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.m95p-pnlStats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border);
    background: rgba(12, 17, 26, .25);
}

.m95p-pnlStat {
    display: grid;
    gap: 4px;
}

.m95p-pnlStat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.m95p-pnlStat__value {
    font-weight: 700;
    color: var(--text);
}

.m95p-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 17, 26, .35);
}

.m95p-tabs__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.m95p-tabs__right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.m95p-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.m95p-tab--active {
    color: var(--text);
    border-color: rgba(185, 147, 255, .35);
    background: rgba(185, 147, 255, .12);
}

.m95p-tab__refresh {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
}

.m95p-tab__refresh i {
    font-size: 12px;
}

.m95p-tab__refresh.is-loading {
    cursor: default;
    opacity: .9;
}

.m95p-tab__refresh.is-loading i {
    animation: m95spin .8s linear infinite;
}

/* Show refresh icon for non-active tabs while loading */
.m95p-tab.is-loading .m95p-tab__refresh {
    display: inline-flex;
}

.m95p-tab--active .m95p-tab__refresh {
    display: inline-flex;
}

.m95p-tab__refresh:hover {
    color: var(--text);
    border-color: rgba(185, 147, 255, .35);
    background: rgba(185, 147, 255, .12);
}

.m95p-tab__refresh:active {
    transform: translateY(1px);
}

.m95p-autorefresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .02em;
}


.m95p-autorefresh__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.m95p-autorefresh__ui {
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    position: relative;
    display: inline-block;
    transition: background .2s ease, border-color .2s ease;
}

.m95p-autorefresh__ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    transition: transform .2s ease, background .2s ease;
}

.m95p-autorefresh__input:checked+.m95p-autorefresh__ui {
    background: rgba(185, 147, 255, .25);
    border-color: rgba(185, 147, 255, .55);
}

.m95p-autorefresh__input:checked+.m95p-autorefresh__ui::after {
    transform: translateX(20px);
    background: rgba(255, 255, 255, .95);
}

.m95p-autorefresh__input:focus-visible+.m95p-autorefresh__ui {
    outline: 2px solid rgba(185, 147, 255, .45);
    outline-offset: 2px;
}

.m95p-autorefresh__input:disabled+.m95p-autorefresh__ui {
    opacity: .45;
}

.m95p-autorefresh__input:disabled~.m95p-autorefresh__label {
    opacity: .6;
}

.m95p-pill {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: var(--text);
}

.m95p-tabPanels {
    width: 100%;
}

.m95p-tabPanel {
    display: none;
}

.m95p-tabPanel.is-active {
    display: block;
}

.m95p-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.m95p-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--muted);
}

.m95p-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.m95p-select {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.m95p-select__ico {
    color: var(--text);
    opacity: .8;
}

.m95p-tableWrap {
    overflow: auto;
    background: rgba(12, 17, 26, .28);
    height: 600px;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 147, 255, .55) rgba(255, 255, 255, .04);
}

.m95p-tableWrap::-webkit-scrollbar {
    width: 10px;
}

.m95p-tableWrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.m95p-tableWrap::-webkit-scrollbar-thumb {
    background: rgba(185, 147, 255, .45);
    border: 2px solid rgba(255, 255, 255, .04);
    border-radius: 999px;
}

.m95p-tableWrap::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 147, 255, .65);
}

.m95p-emptyRow td {
    text-align: center;
    color: var(--muted);
}

.m95p-loadMore {
    margin: 12px auto 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--text);
    cursor: pointer;
}

.m95p-loadMore:disabled {
    opacity: .6;
    cursor: default;
}

.m95p-loaderRow td {
    padding: 0;
}

.m95-loading.m95-loading--table {
    min-height: 120px;
    font-size: 13px;
    font-weight: 700;
}

.m95p-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    background: rgba(12, 17, 26, .28);
}

.m95p-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--panel2);
}

.m95p-table thead tr {
    background: var(--panel2);
}

.m95p-table thead th {
    background: rgba(12, 17, 26, .9);
}

.m95p-table tbody tr {
    background: rgba(12, 17, 26, .18);
}

.m95p-table tbody tr:nth-child(even) {
    background: rgba(12, 17, 26, .26);
}

.m95p-table th,
.m95p-table td {
    padding: 12px;
    border-bottom: 0;
    text-align: left;
    vertical-align: middle;
    height: 56px;
    line-height: 1.2;
}

.m95p-table thead tr {
    box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
}

.m95p-table tbody tr {
    height: 56px;
    box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
}

.m95p-table th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
}

.m95p-market {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 420px;
}

.m95p-market__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: radial-gradient(12px 12px at 30% 30%, rgba(185, 147, 255, .55), rgba(185, 147, 255, 0)),
        rgba(255, 255, 255, .06);
    border: 1px solid rgba(185, 147, 255, .35);
    background-size: cover;
    background-position: center;
}

.m95p-market__avatar--image {
    background-color: rgba(255, 255, 255, .06);
}

.m95p-market__title {
    font-weight: 700;
}

.m95p-market__sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.m95p-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

.m95p-activityType {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m95p-activityIcon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .05);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--text);
}

.m95p-activityIcon.is-buy {
    color: #64d98c;
    border-color: rgba(100, 217, 140, .45);
    background: rgba(100, 217, 140, .12);
}

.m95p-activityIcon.is-sell {
    color: #ff8d8d;
    border-color: rgba(255, 141, 141, .45);
    background: rgba(255, 141, 141, .12);
}

.m95p-activityLabel {
    font-weight: 700;
}

.m95p-activityMeta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .02em;
}

.m95p-value {
    font-weight: 800;
}

.m95p-actionsCol {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m95p-trade {
    border: 1px solid rgba(185, 147, 255, .55);
    background: rgba(185, 147, 255, .20);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.m95p-trade:hover {
    border-color: rgba(185, 147, 255, .85);
    background: rgba(185, 147, 255, .32);
}

.m95p-trade:active {
    transform: translateY(1px);
}

.m95p-orderCancel {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 94, .35);
    background: rgba(255, 77, 94, .10);
    color: rgba(255, 150, 160, .95);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, border-color .2s ease, transform .05s ease;
}

.m95p-orderCancel:hover {
    border-color: rgba(255, 77, 94, .6);
    background: rgba(255, 77, 94, .18);
    color: #ffd7db;
}

.m95p-orderCancel:active {
    transform: translateY(1px);
}

.m95p-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 40, .55);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.m95p-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}

.m95p-metric {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(12, 17, 26, .45);
    padding: 12px;
}

.m95p-metric__label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

.m95p-metric__value {
    margin-top: 8px;
    font-weight: 900;
    font-size: 18px;
}

.m95p-metric__sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.m95p-good {
    color: var(--good);
}

.m95p-bad {
    color: var(--bad);
}

.badge.all_markets {
    padding: 10px 10px;
    border-radius: 12px;
}

a.brand img {
    width: 200px;
}

button[data-toggle-value="yes"] {
    background: rgba(47, 214, 125, .10) !important;
    border-color: rgba(47, 214, 125, .25) !important;
}

button#categoriesClear {
    width: 50%;
}

button#categoriesShowMore {
    width: 50%;
}