/* ── Exchange type page layout ── */
.bs-et-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}
.bs-et-main { min-width: 0; }
.bs-et-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Sidebar ── */
.bs-et-sidebar-list,
.bs-et-sidebar .bs-et-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bs-et-sidebar-list li,
.bs-et-sidebar .bs-et-sidebar-list li {
    list-style: none;
    border-bottom: 1px solid #f0f1f3;
}
.bs-et-sidebar-list li:last-child {
    border-bottom: none;
}
.bs-et-sidebar-list a,
.bs-et-sidebar-list a:link,
.bs-et-sidebar-list a:visited,
.bs-et-sidebar .bs-et-sidebar-list a:visited {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.bs-et-sidebar-list a:hover,
.bs-et-sidebar .bs-et-sidebar-list a:visited:hover {
    background: #f5f7fa;
    color: #2563eb;
}

/* ── Sidebar icons ── */
.bs-et-sidebar-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
}
.bs-et-sidebar-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ── Sidebar count badge ── */
.bs-et-sidebar-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ── Collapsible overflow ── */
.bs-et-sidebar-list li[data-overflow] {
    display: none;
}
.bs-et-sidebar-list.bs-et-sidebar-expanded li[data-overflow] {
    display: list-item;
}
.bs-et-sidebar-toggle-li {
    border-bottom: none;
    padding: 4px 0;
}
.bs-et-sidebar-list a.bs-et-sidebar-toggle,
.bs-et-sidebar-list a.bs-et-sidebar-toggle:visited {
    justify-content: center;
    gap: 6px;
    margin: 4px 20px;
    padding: 8px 16px;
    background: #1DB0E1;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.bs-et-sidebar-list a.bs-et-sidebar-toggle:hover {
    background: #206389;
    color: #fff;
}
.bs-et-sidebar-toggle-icon {
    display: inline-flex;
    transition: transform 0.2s;
}
.bs-et-sidebar-toggle-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.bs-et-sidebar-expanded .bs-et-sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* ── Sidebar group titles (wallet categories) ── */
.bs-et-sidebar-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 12px 16px 4px;
    margin: 0;
}
.bs-et-sidebar-group-title:first-of-type {
    padding-top: 4px;
}

/* ── Sidebar active state ── */
.bs-et-sidebar-active a,
.bs-et-sidebar-active a:link,
.bs-et-sidebar-active a:visited {
    background: #f0f7ff;
    color: #1DB0E1;
    font-weight: 600;
}

/* ── View all link ── */
.bs-et-sidebar-view-all,
.bs-et-sidebar-list a.bs-et-sidebar-view-all:visited {
    font-weight: 600;
    color: #2563eb;
}

/* ── New Coins sidebar widget ── */
.bs-et-sidebar-coins {
    margin-bottom: 24px;
}
.bs-et-sidebar-coins .bs-lw-header {
    padding: 14px 20px 10px;
}
.bs-et-sidebar-coins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bs-et-sidebar-coins-list li {
    border-bottom: 1px solid #f0f1f3;
}
.bs-et-sidebar-coins-list li:last-child {
    border-bottom: none;
}
.bs-et-sidebar-coins-list a,
.bs-et-sidebar-coins-list a:link,
.bs-et-sidebar-coins-list a:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}
.bs-et-sidebar-coins-list a:hover {
    background: #f5f7fa;
}
.bs-et-sidebar-coins-list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.bs-et-sidebar-coins-ticker {
    color: #64748b;
    font-size: 11px;
}
.bs-et-sidebar-coins-price {
    margin-left: auto;
    font-size: 12px;
    color: #1e293b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bs-et-layout {
        grid-template-columns: 1fr;
    }
    .bs-et-sidebar {
        display: none;
    }
}
