/* ── KALSHI VS POLYMARKET TABLE STYLES ── */
:root {
    --bx-bg-primary: #191A1E;
    --bx-bg-surface: #313447;
    --bx-accent-purple: #A183E0;
    --bx-violet-primary: #4E1FA3;
    --bx-violet-electric: #661EB9;
    --bx-highlight-yellow: #F5D255;
    --bx-accent-cyan: #36E7C4;
    --bx-white: #FFFFFF;
    --bx-text-body: rgba(210, 218, 235, 0.82);
    --bx-text-secondary: rgba(214, 220, 235, 0.72);
    --bx-border-card: rgba(161, 131, 224, 0.18);
    --bx-border-row: rgba(161, 131, 224, 0.07);
    --bx-grad-text: linear-gradient(90deg, #36E7C4 0%, #A183E0 50%, #661EB9 100%);
    --bx-grad-primary: linear-gradient(135deg, #4E1FA3 0%, #661EB9 100%);
    --bx-grad-secondary: linear-gradient(135deg, #F5D255 0%, #36E7C4 100%);
    --bx-font-primary: 'Exo 2', sans-serif;
    --bx-font-secondary: 'Epilogue', sans-serif;
}

/* ── TABLE WRAPPER ── */
.bx-table-wrap {
    background: rgba(49, 52, 71, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--bx-border-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 48px rgba(102, 30, 185, 0.13), 0 1px 4px rgba(0, 0, 0, 0.45);
}

.bx-table-wrap::before {
    content: '';
    display: block;
    height: 2px;
    background: var(--bx-grad-secondary);
}

.bx-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bx-table-wrap--center-outer {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bx-table-wrap--auto {
    display: inline-block;
    width: auto;
    min-width: min(100%, 700px);
    max-width: 100%;
}

/* ── TABLE ── */
.bx-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--bx-font-secondary);
    font-size: 0.9rem;
    table-layout: auto;
}

/* THEAD */
.bx-table thead tr {
    background: linear-gradient(135deg, rgba(78, 31, 163, 0.55) 0%, rgba(102, 30, 185, 0.45) 100%);
    border-bottom: 1px solid rgba(54, 231, 196, 0.22);
}

.bx-table thead th {
    font-family: var(--bx-font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bx-white);
    padding: 18px 28px;
    text-align: left;
    border: none !important;
    white-space: nowrap;
}

/* Feature col header — cyan */
.bx-table thead th:first-child {
    color: var(--bx-accent-cyan);
}

/* Kalshi col header — yellow */
.bx-table thead th:nth-child(2) {
    color: var(--bx-highlight-yellow);
}

/* Polymarket col header — purple */
.bx-table thead th:nth-child(3) {
    color: var(--bx-accent-purple);
}

/* TBODY */
.bx-table tbody tr {
    border-bottom: 1px solid var(--bx-border-row) !important;
    transition: background 0.18s ease;
    background: transparent;
}

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

.bx-table tbody tr:hover {
    background: rgba(161, 131, 224, 0.055) !important;
}

.bx-table tbody tr:nth-child(even) {
    background: #e0d5f7 !important;
}

.bx-table tbody tr:nth-child(even):hover {
    background: #e0d5f7 !important;
}

.bx-table tbody td {
    padding: 15px 28px;
    color: var(--bx-text-body) !important;
    vertical-align: top;
    border: none !important;
    line-height: 1.65;
    text-align: left !important;
}

/* Feature column */
.bx-table tbody td:first-child {
    font-family: var(--bx-font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bx-white) !important;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(161, 131, 224, 0.09) !important;
    white-space: nowrap;
    vertical-align: middle;
}

/* Kalshi col */
.bx-table tbody td:nth-child(2) {
    border-right: 1px solid rgba(161, 131, 224, 0.06) !important;
}

/* ── ICON CELL ── */
.bx-cell-icon {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bx-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.bx-icon--cyan {
    background: rgba(54, 231, 196, 0.08);
    border: 1px solid rgba(54, 231, 196, 0.18);
    color: var(--bx-accent-cyan);
}

.bx-icon--purple {
    background: rgba(161, 131, 224, 0.08);
    border: 1px solid rgba(161, 131, 224, 0.18);
    color: var(--bx-accent-purple);
}

.bx-icon--yellow {
    background: rgba(245, 210, 85, 0.08);
    border: 1px solid rgba(245, 210, 85, 0.18);
    color: var(--bx-highlight-yellow);
}

.bx-table tbody tr:hover .bx-icon--cyan {
    background: rgba(54, 231, 196, 0.14);
    border-color: rgba(54, 231, 196, 0.32);
}

.bx-table tbody tr:hover .bx-icon--purple {
    background: rgba(161, 131, 224, 0.14);
    border-color: rgba(161, 131, 224, 0.32);
}

.bx-table tbody tr:hover .bx-icon--yellow {
    background: rgba(245, 210, 85, 0.14);
    border-color: rgba(245, 210, 85, 0.32);
}

/* ── RESPONSIVE ── */
@media (max-width: 1199px) {

    .bx-table thead th,
    .bx-table tbody td {
        padding: 16px 20px;
    }
}

@media (max-width: 991px) {
    .bx-table {
        font-size: 0.85rem;
    }

    .bx-table thead th,
    .bx-table tbody td {
        padding: 14px 16px;
    }

    .bx-cost-card {
        padding: 22px 20px;
    }
}

@media (max-width: 767px) {
    .bx-table {
        font-size: 0.8rem;
    }

    .bx-table thead th,
    .bx-table tbody td {
        padding: 12px 14px;
    }

    .bx-table tbody td:first-child {
        white-space: normal;
    }

    .bx-icon {
        width: 26px;
        height: 26px;
    }

    .bx-table-wrap--auto {
        min-width: 0;
    }

    .bx-cost-row {
        grid-template-columns: 1fr;
    }
}



/* ── COST CARDS ROW ── */
.bx-cost-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.bx-cost-card {
    background: rgba(49, 52, 71, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bx-border-card);
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bx-cost-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bx-grad-secondary);
}

.bx-cost-card:hover {
    transform: translateY(-5px);
    border-color: rgba(161, 131, 224, 0.4);
    box-shadow: 0 8px 40px rgba(102, 30, 185, 0.22);
}

.bx-cost-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(54, 231, 196, 0.08);
    border: 1px solid rgba(54, 231, 196, 0.2);
    color: var(--bx-accent-cyan);
}

.bx-cost-card__tier {
    font-family: var(--bx-font-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bx-accent-cyan);
}

.bx-cost-card__name {
    font-family: var(--bx-font-primary);
    font-size: 1rem;
    font-weight: 800;
    color: var(--bx-white);
    line-height: 1.3;
}

.bx-cost-card__value {
    font-family: var(--bx-font-primary);
    font-size: 1.35rem !important;
    font-weight: 900;
    background: var(--bx-grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* icon color variants */
.bx-cost-card--purple .bx-cost-card__icon {
    background: rgba(161, 131, 224, 0.08);
    border-color: rgba(161, 131, 224, 0.2);
    color: var(--bx-accent-purple);
}

.bx-cost-card--yellow .bx-cost-card__icon {
    background: rgba(245, 210, 85, 0.08);
    border-color: rgba(245, 210, 85, 0.2);
    color: var(--bx-highlight-yellow);
}

@media (max-width: 480px) {
    .bx-table {
        font-size: 0.75rem;
    }

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

    .bx-cost-card {
        padding: 18px 16px;
    }

    .bx-cost-card__value {
        font-size: 1.2rem !important;
    }

    .bx-cost-card__name {
        font-size: 0.7rem !important;
    }
}