/* ══════════════════════════════════════════════════════════════
   Shared DataTable Styling — blockspot.io
   All DataTable card components use these classes.
   Scoped under .bs-dt root class.
   ══════════════════════════════════════════════════════════════ */

/* ── Card Container ── */
.bs-dt {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e7ed;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}

.bs-dt--homepage {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.bs-dt--homepage .bs-dt-native-ad {
    border-top: none;
}

.bs-dt--homepage .bs-dt-table thead th {
    border-bottom: none;
}

.bs-dt-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 28px;
}

.bs-dt * { box-sizing: border-box; }

/* ── Card Header ── */
.bs-dt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
}

.bs-dt-title {
    font-size: 20px;
    font-weight: 700;
    color: #111318;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 !important;
    padding: 0 !important;
}

.bs-dt-subtitle {
    font-size: 13px;
    color: #333;
    font-weight: 400;
    margin-top: 4px;
    max-width: 680px;
}

.bs-dt-viewall {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}

.bs-dt-viewall:hover { color: #2563eb; }

/* ── Native Ad ── */
/* min-height keeps the slot reserved before Sevio injects content. 80px on ALL
 * breakpoints: mobile because long PR copy wraps to two lines on iPhone SE width
 * (375px); desktop raised 57->80 on 2026-07-12 because measured Sevio fill grows
 * to 60-77px, so 57px under-reserved and shifted the table (archive CLS, todo
 * #275). The critical CSS in inc/assets.php must set the same value at first
 * paint — keep both in sync. */
.bs-dt-native-ad {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    min-height: 80px;
    font-size: 14px;
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bs-dt-native-ad a { color: #206389; font-weight: 600; }

.bs-dt-ad-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    background: #f0f1f3;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

.bs-dt-ad-slot {
    flex: 1;
    min-width: 0;
}

.bs-dt-ad-slot .sevioads {
    width: 100%;
}

/* ── Description Block ── */
.bs-dt-description-body {
    padding: 0 28px 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.bs-dt-description-body p {
    margin: 0 0 16px;
}

.bs-dt-description-body p:last-child {
    margin-bottom: 0;
}

.bs-dt-viewall svg {
    width: 14px;
    height: 14px;
}

/* ── Custom Toolbar ── */
.bs-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
}

.bs-dt-toolbar label {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.bs-dt-toolbar select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    outline: none;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #111318;
}

.bs-dt-toolbar select:focus {
    border-color: #3b82f6;
}

.bs-dt .bs-dt-clear-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border: 1.5px solid #e4e7ed;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.bs-dt .bs-dt-clear-btn:hover {
    background: #111318;
    color: #fff;
    border-color: #111318;
}

/* ── Table Base ── */
.bs-dt-table {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
}

/* Opt-in fixed table layout for serverSide DataTables. Without this,
   `table-layout: auto` (browser default) recomputes column widths as
   AJAX rows arrive, shifting THs 15-50px and contributing to CLS.
   Homepage tables that don't ship TH widths must NOT receive this class. */
.bs-dt-fixed { table-layout: fixed; }

/* Mobile override: a fixed-layout 8-10 column table with percentage widths
   gets crushed into the viewport, making headers unreadable and disabling
   the .bs-table-scroll wrapper (nothing overflows so overflow-x:auto is
   inert). Restore auto layout + a min-width so the table is naturally
   wider than a phone viewport and scrolls horizontally like before. */
@media (max-width: 767px) {
    .bs-dt-fixed {
        table-layout: auto;
        min-width: 760px;
    }
}

/* Column headers */
.bs-dt-table thead th {
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 20px;
    text-align: right;
    border-bottom: 1px solid #eef0f4;
    border-top: none;
    border-left: none;
    border-right: none;
    background: transparent;
    cursor: default;
}

.bs-dt-table thead th:first-child {
    padding-left: 28px;
}

.bs-dt-table thead th:last-child {
    padding-right: 28px;
}

/* Alignment utilities — apply to th and td */
.bs-col-left { text-align: left !important; }
.bs-col-right { text-align: right !important; }
.bs-col-center { text-align: center !important; }
.bs-col-nowrap { white-space: nowrap; }

/* Rows */
.bs-dt-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
    min-height: 57px;
}

.bs-dt-table tbody tr:hover {
    background: #f8f9fb;
}

.bs-dt-table tbody td {
    padding: 11px 20px;
    font-size: 14px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    background: transparent !important;
}

.bs-dt-table tbody tr:last-child td {
    border-bottom: none !important;
}

.bs-dt-table tbody td:first-child {
    padding-left: 28px;
}

.bs-dt-table tbody td:last-child {
    padding-right: 28px;
}

/* Remove odd row striping from DataTables defaults */
.bs-dt-table tbody tr:nth-child(odd) td {
    background: transparent !important;
}

/* ── Column Filters ── */
.bs-dt-table thead tr.bs-filter-row th {
    padding: 8px 16px 14px;
    border-bottom: 1px solid #eef0f4 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent;
}

.bs-dt-table thead tr.bs-filter-row th:first-child {
    padding-left: 28px;
}

.bs-dt-table thead tr.bs-filter-row th:last-child {
    padding-right: 28px;
}

.bs-dt .bs-filter-input,
.bs-dt .bs-filter-select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    background: #f9fafb;
    color: #111318;
    -webkit-appearance: none;
    appearance: none;
}

.bs-dt .bs-filter-select {
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.bs-dt .bs-filter-input:focus,
.bs-dt .bs-filter-select:focus {
    border-color: #3b82f6;
    background: #fff;
}

.bs-dt .bs-filter-input::placeholder {
    color: #9ca3af;
}

/* ── Custom Select Dropdown ── */
.bs-select-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.bs-select-wrap .bs-filter-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.bs-dt button.bs-select-btn,
.bs-dt button.bs-select-btn:visited,
.bs-dt button.bs-select-btn:focus,
button.bs-select-btn,
button.bs-select-btn:visited,
button.bs-select-btn:focus {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding: 7px 32px 7px 12px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    color: #111318;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    margin: 0;
    min-height: 0;
    transition: border-color 0.2s, background-color 0.2s;
}
.bs-dt button.bs-select-btn:hover,
button.bs-select-btn:hover {
    border-color: #c7cbd4;
    background-color: #f9fafb;
    color: #111318;
    box-shadow: none;
    transform: none;
}
.bs-select-wrap.open button.bs-select-btn {
    border-color: #3b82f6;
    background-color: #fff;
}
.bs-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    z-index: 100;
    padding: 4px;
    text-align: left;
}
.bs-select-wrap.open .bs-select-list {
    display: block;
}
.bs-select-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    white-space: nowrap;
    transition: background 0.12s;
}
.bs-select-item:hover {
    background: #f3f4f6;
}
.bs-select-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* ── Entity Cell (logo + name) ── */
.bs-entity-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bs-entity-cell img:not(.bs-verified-badge) {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.06);
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.bs-entity-cell a,
.bs-entity-cell a:visited {
    font-weight: 600;
    color: #111318;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.bs-entity-cell a:hover {
    color: #3b82f6;
}

.bs-entity-ticker {
    color: #6b7280;
    font-weight: 400;
}

/* Small variant — 28px square logos for exchanges/wallets/companies */
.bs-entity-cell--sm img:not(.bs-verified-badge) {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px;
    border-width: 1px;
}

.bs-entity-cell--sm {
    gap: 10px;
    min-width: 160px;
}

/* Exchange list: centre plain-row names in the space after the logo so they
   line up with the featured row's centred name (logos stay left-aligned). */
#tbl-exchange .bs-entity-cell--sm > a,
#tbl-exchange .bs-entity-cell--sm > span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
/* Tighter first-column inset so the centred name/CTA has less flanking space
   (header + filter + body kept in step). Exchange table only. */
#tbl-exchange thead th:first-child,
#tbl-exchange thead tr.bs-filter-row th:first-child,
#tbl-exchange tbody td:first-child {
    padding-left: 14px;
}
/* Trim the space flanking the name/CTA to ~5px: smaller logo gap + smaller
   right cell padding. */
#tbl-exchange .bs-entity-cell--sm {
    gap: 4px;
}
#tbl-exchange tbody td:first-child {
    padding-right: 4px;
}

/* Optional entity info column (name + CTA) */
.bs-entity-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;           /* fill the space after the logo so the centred name lines up with plain rows */
    align-items: center;      /* centre the exchange name above the CTA */
    text-align: center;
}

.bs-entity-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: center; /* content-width, centred in the column (name centres over it) */
    background: linear-gradient(90deg, #1793bd, #1DB0E1, #48cdf3, #1DB0E1, #1793bd);
    background-size: 300% 100%;
    animation: bsEctaGrad 3.4s linear infinite;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    padding: 3px 10px;
    border-radius: 6px;
    border: none;
    max-width: 100%;
    text-decoration: none;
    transition: filter 0.15s;
}
@keyframes bsEctaGrad {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-entity-cta { animation: none; }
}
.bs-entity-cell a.bs-entity-cta,
.bs-entity-cell a.bs-entity-cta:visited,
.bs-entity-cell a.bs-entity-cta:hover {
    color: #fff;
}
a.bs-entity-cta:hover {
    background: #206389; /* darken to solid brand-dark on hover (keeps the animated gradient at rest) */
}
/* "opens in a new tab" indicator (anchor CTAs only — they carry target=_blank) */
a.bs-entity-cta::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    opacity: .85;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8 8'/%3E%3Cpath d='M18 13v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8 8'/%3E%3Cpath d='M18 13v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Rank Badges ── */
.bs-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1;
}

.bs-rank-1 { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #78350f; }
.bs-rank-2 { background: linear-gradient(135deg, #cbd5e1, #7c8ca2); color: #0f172a; }
.bs-rank-3 { background: linear-gradient(135deg, #fdba74, #b45309); color: #fff; }
.bs-rank-default { background: #e2e5eb; color: #374151; }

/* ── Price ── */
.bs-price {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    font-size: 14px;
    color: #111318;
    white-space: nowrap;
}

/* ── Change Pills ── */
.bs-change {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.bs-change-up {
    color: #047857;
    background: #d1fae5;
}

.bs-change-down {
    color: #b91c1c;
    background: #fee2e2;
}

/* ── Monospace Numeric Values ── */
.bs-mcap, .bs-vol, .bs-supply, .bs-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #111318;
    font-weight: 600;
    white-space: nowrap;
}

.bs-num {
    text-align: right;
}

/* ── Yes/No Pills ── */
.bs-pill-yes {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    color: #047857;
    background: #d1fae5;
}

.bs-pill-no {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    color: #6b7280;
    background: #f3f4f6;
}

/* ── Status Indicators ── */
.bs-status-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #047857;
}

.bs-status-online::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.bs-status-offline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
}

.bs-status-offline::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.bs-status-other {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* ── Type Badge ── */
.bs-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: #1e40af;
    background: #dbeafe;
    white-space: nowrap;
    text-decoration: none;
    /* In fixed-layout tables the cell has a definite width; cap the badge to it
       and ellipsize so a long type name (e.g. "Aggregation Platform") truncates
       inside its cell instead of overflowing into the next column. Inert when
       the name already fits. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

a.bs-type-badge,
a.bs-type-badge:visited,
a.bs-type-badge:hover,
a.bs-type-badge:active {
    color: #1e40af;
    text-decoration: none;
}

/* ── Buy/Trade Button ── */
.bs-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    border: 1.5px solid #e4e7ed;
    background: #fff;
    color: #1a1d29;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}

.bs-buy-btn svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
    transition: color 0.2s;
}

a.bs-buy-btn:hover {
    background: #1DB0E1;
    color: #fff;
    border-color: #1DB0E1;
    text-decoration: none !important;
}

.bs-buy-btn:hover svg {
    color: #fff;
}

.bs-dt-table tbody tr:hover .bs-buy-btn {
    border-color: #c7cbd4;
}

/* ── Skeleton Loading ── */
.bs-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bs-shimmer 1.5s infinite;
    border-radius: 4px;
    height: 16px;
    display: inline-block;
}

@keyframes bs-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Scrollable Table Wrapper ── */
.bs-dt .bs-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── DataTables Overrides (1.x class names) ── */

.bs-dt .dataTables_processing {
    display: none !important;
}

.bs-dt .dataTables_filter {
    padding: 0 28px 16px;
}

.bs-dt .dataTables_filter label {
    font-size: 0;
    display: flex;
    align-items: center;
}

.bs-dt .dataTables_filter input[type="search"] {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 10px 16px;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    outline: none;
    width: 100%;
    max-width: 320px;
    transition: border-color 0.2s;
    background: #f9fafb;
    color: #111318;
}

.bs-dt .dataTables_filter input[type="search"]:focus {
    border-color: #3b82f6;
    background: #fff;
}

.bs-dt .dataTables_length {
    display: none;
}

.bs-dt .dataTables_info {
    font-size: 12px;
    color: #6b7280;
    padding: 16px 28px;
}

.bs-dt .dataTables_paginate {
    padding: 16px 28px;
    text-align: center;
}

.bs-dt .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1DB0E1 !important;
    background: transparent !important;
    border: 1.5px solid #1DB0E1 !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s !important;
    text-decoration: none;
    box-shadow: none !important;
}

.bs-dt .dataTables_paginate .paginate_button:hover {
    background: #1DB0E1 !important;
    border-color: #1DB0E1 !important;
    color: #fff !important;
}

.bs-dt .dataTables_paginate .paginate_button.current {
    background: #1DB0E1 !important;
    border-color: #1DB0E1 !important;
    color: #fff !important;
}

.bs-dt .dataTables_paginate .paginate_button.disabled {
    opacity: 0.35;
    cursor: default;
    border-color: #c0c0c0 !important;
    color: #c0c0c0 !important;
}

.bs-dt .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    border-color: #c0c0c0 !important;
    color: #c0c0c0 !important;
}

/* Bottom bar (DT 1.x) */
.bs-dt .dataTables_wrapper .dataTables_info,
.bs-dt .dataTables_wrapper .dataTables_paginate {
    display: inline-block;
}

.bs-dt .dataTables_wrapper > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
}

/* Remove DT 1.x sorting icons */
.bs-dt-table thead th.sorting,
.bs-dt-table thead th.sorting_asc,
.bs-dt-table thead th.sorting_desc {
    background-image: none !important;
}

/* ── DataTables Overrides (2.x class names) ── */

.bs-dt .dt-processing {
    display: none !important;
}

.bs-dt .dt-length {
    display: none !important;
}

/* DT 2.x search input styling (mirrors 1.x .dataTables_filter) */
.bs-dt .dt-search {
    padding: 0 28px 16px;
}

.bs-dt .dt-search label {
    font-size: 0;
    display: flex;
    align-items: center;
}

.bs-dt .dt-search input[type="search"] {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 10px 16px;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    outline: none;
    width: 100%;
    max-width: 320px;
    transition: border-color 0.2s;
    background: #f9fafb;
    color: #111318;
}

.bs-dt .dt-search input[type="search"]:focus {
    border-color: #3b82f6;
    background: #fff;
}

.bs-dt .dt-info {
    font-size: 12px;
    color: #6b7280;
    padding: 16px 28px;
}

.bs-dt .dt-paging {
    padding: 16px 28px;
    text-align: center;
}

.bs-dt .dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1DB0E1 !important;
    background: transparent !important;
    border: 1.5px solid #1DB0E1 !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s !important;
    text-decoration: none;
    box-shadow: none !important;
}

.bs-dt .dt-paging .dt-paging-button:hover {
    background: #1DB0E1 !important;
    border-color: #1DB0E1 !important;
    color: #fff !important;
}

.bs-dt .dt-paging .dt-paging-button.current {
    background: #1DB0E1 !important;
    border-color: #1DB0E1 !important;
    color: #fff !important;
}

.bs-dt .dt-paging .dt-paging-button.disabled {
    opacity: 0.35;
    cursor: default;
    border-color: #c0c0c0 !important;
    color: #c0c0c0 !important;
}

.bs-dt .dt-paging .dt-paging-button.disabled:hover {
    background: transparent !important;
    border-color: #c0c0c0 !important;
    color: #c0c0c0 !important;
}

/* Bottom bar (DT 2.x) */
.bs-dt .dt-layout-row:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
}

/* Remove DT 2.x sorting icons */
.bs-dt-table thead th.dt-orderable-none::after,
.bs-dt-table thead th.dt-orderable-none::before {
    content: none !important;
}

/* ── Responsive (max-width: 767px) ── */
@media (max-width: 767px) {
    .bs-dt { border-radius: 14px; }

    .bs-dt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 16px 16px;
    }

    .bs-dt-native-ad { padding: 8px 16px; }

    .bs-dt-title { font-size: 26px; }

    .bs-dt-table thead th,
    .bs-dt-table tbody td {
        padding: 12px 10px;
    }

    .bs-dt-table thead th:first-child,
    .bs-dt-table tbody td:first-child {
        padding-left: 14px;
    }

    .bs-dt-table thead th:last-child,
    .bs-dt-table tbody td:last-child {
        padding-right: 14px;
    }

    .bs-entity-cell img:not(.bs-verified-badge) {
        width: 28px !important;
        height: 28px !important;
    }

    .bs-entity-cell { gap: 8px; }

    .bs-entity-cell--sm img:not(.bs-verified-badge) {
        width: 24px !important;
        height: 24px !important;
    }

    .bs-entity-cell--sm {
        gap: 8px;
        min-width: 140px;
    }

    .bs-rank {
        width: 26px;
        height: 26px;
        font-size: 11px;
        border-radius: 7px;
    }

    .bs-change {
        padding: 4px 8px;
        font-size: 11px;
    }

    .bs-buy-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* DT 1.x mobile */
    .bs-dt .dataTables_filter {
        padding: 0 16px 12px;
    }

    .bs-dt .dataTables_filter input[type="search"] {
        max-width: 100%;
    }

    .bs-dt .dataTables_info {
        padding: 12px 16px;
        font-size: 11px;
    }

    .bs-dt .dataTables_paginate {
        padding: 12px 16px;
    }

    .bs-dt .dataTables_paginate .paginate_button {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        margin: 0 2px;
    }

    .bs-dt .dataTables_wrapper > div:last-child {
        flex-direction: column;
        gap: 4px;
    }

    /* DT 2.x mobile */
    .bs-dt .dt-search {
        padding: 0 16px 12px;
    }

    .bs-dt .dt-search input[type="search"] {
        max-width: 100%;
    }

    .bs-dt .dt-info {
        padding: 12px 16px;
        font-size: 11px;
    }

    .bs-dt .dt-paging {
        padding: 12px 16px;
    }

    .bs-dt .dt-paging .dt-paging-button {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        margin: 0 2px;
    }

    .bs-dt .dt-layout-row:last-child {
        flex-direction: column;
        gap: 4px;
    }

    /* Scrollbar styling */
    .bs-dt .bs-table-scroll {
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }

    .bs-dt .bs-table-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .bs-dt .bs-table-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .bs-dt .bs-table-scroll::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

    .bs-filter-input,
    .bs-filter-select {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ── Archive page enhancements ── */
.bs-archive-header {
    margin: 0 0 32px;
}
.bs-archive-h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 14px;
    line-height: 1.3;
}
p.bs-archive-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 18px;
    max-width: 720px;
}
.bs-archive-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}
.bs-archive-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.bs-archive-meta-sep {
    color: #d1d5db;
}
.bs-archive-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 14px;
}
.bs-archive-featured {
    margin: 0 0 24px;
}
.bs-archive-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.bs-archive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 14px;
    text-decoration: none;
    color: #111318;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.bs-archive-card:visited {
    color: #111318;
}
.bs-archive-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.bs-archive-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #2563eb;
}
.bs-archive-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bs-archive-card-count {
    font-size: 12px;
    color: #6b7280;
}
.bs-archive-categories {
    margin: 0 0 24px;
}
.bs-archive-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bs-archive-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f9fb;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
}
.bs-archive-cat-tag:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.bs-archive-cat-tag.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.bs-archive-cat-tag.active .bs-archive-cat-icon svg {
    stroke: #fff;
}
.bs-archive-cat-icon {
    display: inline-flex;
}
.bs-archive-cat-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}
.bs-archive-cat-count {
    font-size: 11px;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
}
.bs-archive-cat-tag.active .bs-archive-cat-count {
    background: rgba(0,0,0,0.15);
    color: #fff;
}

@media (max-width: 768px) {
    .bs-archive-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .bs-archive-cat-grid {
        gap: 6px;
    }
    .bs-archive-cat-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ── Table cell links ── */
.bs-dt-table tbody td a {
    color: #111318;
    text-decoration: none;
    font-weight: 600;
}
.bs-dt-table tbody td a:visited {
    color: #111318;
}
.bs-dt-table tbody td a:hover {
    color: #2563eb;
}
.bs-dt-table tbody td a.bs-buy-btn:hover {
    color: #fff;
}

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

/* ── Archive tables (name + description + count) ── */
#tbl-proof-types td:last-child,
#tbl-proof-types th:last-child,
#tbl-algorithms td:last-child,
#tbl-algorithms th:last-child {
    width: 100px;
}
/* Description column styling */
.bs-dt-desc-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* CPT description + blockchains section */
.bs-cpt-description {
    margin: 32px 0 0;
    padding: 24px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.75;
}

.bs-cpt-description h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-cpt-description h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #2563eb;
    border-radius: 2px;
    flex-shrink: 0;
}

.bs-cpt-description p {
    margin: 0 0 14px;
    color: #4b5563;
}

.bs-cpt-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .bs-cpt-description {
        padding: 18px 16px;
        margin: 24px 0 0;
    }
}

.bs-cpt-blockchains {
    margin: 0 0 20px;
}

.bs-cpt-blockchains h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111318;
    margin: 0 0 10px;
}

.bs-cpt-chain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bs-cpt-chain-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.bs-cpt-chain-tag:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

.bs-cpt-chain-more {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* ── Dead Pages Nav Bar ── */

.bs-dt-navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #eaeaea;
    border-radius: 19px 19px 0 0;
}

.bs-dt-navbar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.bs-dt-navbar__item:hover {
    color: #1DB0E1;
    border-bottom-color: #1DB0E1;
}

.bs-dt-navbar__item--active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 500;
}

.bs-dt-navbar__item--active:hover {
    color: #111;
    border-bottom-color: #111;
}

.bs-dt-navbar__icon {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.bs-dt-navbar__icon svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

/* ── Low Liquidity Warning Badge ── */
.bs-liq-warn{display:inline-flex;align-items:center;margin-left:5px;color:#d97706;cursor:help;vertical-align:middle}
.bs-liq-warn .bs-liq-ico{stroke:currentColor;fill:none;stroke-width:2}
html.bs-dark .bs-liq-warn{color:#fbbf24}
.bs-liq-tip-popup{position:absolute;z-index:9999;max-width:240px;background:#1c1c30;color:#e4e4ed;font-size:11px;line-height:1.45;padding:8px 10px;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.25);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s}
.bs-liq-tip-popup.is-visible{opacity:1;visibility:visible}
