
/* =====================================================
   BT DEMO — FINAL RESPONSIVE THEME
   Reference: Navy Sidebar + White Topbar + Blue/Green
   ===================================================== */

:root {
    --sidebar-bg: #0B1D3A;
    --sidebar-hover: #152D50;
    --sidebar-active: #1B3B67;
    --sidebar-text: #E5EDF8;
    --topbar-bg: #FFFFFF;
    --topbar-text: #0B1D3A;
    --page-bg: #F1F5FB;
    --card-bg: #FFFFFF;
    --primary: #1877F2;
    --primary-light: #E8F1FF;
    --success: #16B364;
    --danger: #F04438;
    --text: #101828;
    --muted: #667085;
    --border: #EAECF0;
    --sidebar-width: 260px;
    --topbar-height: 66px;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* MAIN LAYOUT */

.app-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.main-area {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    padding: 18px 12px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #294469 var(--sidebar-bg);
}

/* BRAND */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px 19px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #20C997, #1877F2);
    color: #FFFFFF;
}

.bt-txt {
    color: #38BDF8;
}

.demo-txt {
    color: #22C55E;
}

/* SIDEBAR MENU */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

    .nav-link i {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 22px;
        flex-shrink: 0;
        color: #D4E3F7;
        font-size: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--sidebar-hover);
        color: #FFFFFF;
    }

    .nav-link.active {
        box-shadow: inset 3px 0 0 #38BDF8;
    }

        .nav-link:hover i,
        .nav-link.active i {
            color: #FFFFFF;
        }

/* TOPBAR */

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--topbar-height);
    width: 100%;
    padding: 10px 18px;
    background: var(--topbar-bg);
    color: var(--topbar-text);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 7px rgba(11, 29, 58, .025);
    position: relative;
    z-index: 10;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--sidebar-bg);
    font-size: 21px;
}

    .menu-toggle:hover {
        background: var(--primary-light);
    }

.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.topbar-brand {
    color: var(--topbar-text);
    font-size: 18px;
    font-weight: 800;
}

.topbar-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.topbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #FFFFFF;
    color: var(--sidebar-bg);
}

    .topbar-icon:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

/* PAGE CONTENT */

.page-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 25px;
    background: var(--page-bg);
}

    .page-content h1 {
        margin: 0 0 12px;
        color: var(--sidebar-bg);
        font-size: 27px;
        font-weight: 800;
    }

    .page-content p {
        line-height: 1.6;
    }

/* CARDS */

.card {
    padding: 18px;
    margin-bottom: 16px;
    background: var(--card-bg);
    border: 1px solid #EDF0F5;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .035);
}

/* DASHBOARD BALANCE */

.balance-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 165px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(115deg, #0B1D3A, #164E63);
    color: #FFFFFF;
}

.bal-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #D4E3F7;
}

.pill-gain {
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(22, 179, 100, .20);
    color: #4ADE80;
    font-size: 12px;
    white-space: nowrap;
}

.bal-val {
    position: relative;
    z-index: 1;
    margin: 15px 0 5px;
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 800;
}

.bal-sub {
    position: relative;
    z-index: 1;
    color: #4ADE80;
    font-size: 13px;
}

.bal-chart {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 70px;
    pointer-events: none;
}

/* QUICK ACTIONS */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
}

.quick-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #EDF0F5;
    border-radius: 13px;
    color: var(--sidebar-bg);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .035);
}

    .quick-card i {
        color: var(--primary);
        font-size: 20px;
    }

    .quick-card:hover {
        background: #F8FBFF;
        transform: translateY(-1px);
    }

/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 19px;
    background: #FFFFFF;
    border: 1px solid #EDF0F5;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .035);
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    color: var(--sidebar-bg);
    font-size: 21px;
}

/* SECTION HEADING */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

    .section-heading h2 {
        color: var(--sidebar-bg);
        font-size: 18px;
        font-weight: 800;
    }

    .section-heading a {
        color: var(--primary);
        font-weight: 600;
    }

/* COINS */

.coin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

    .coin-row:last-child {
        border-bottom: 0;
    }

.coin-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--sidebar-bg);
    font-weight: 600;
}

.coin-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #FFFFFF;
    font-weight: 800;
}

    .coin-symbol.btc {
        background: #F7931A;
    }

    .coin-symbol.eth {
        background: #627EEA;
    }

    .coin-symbol.bnb {
        background: #F0B90B;
    }

.up {
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.down {
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

/* PLAN */

.plan-card {
    display: flex;
    align-items: center;
    gap: 13px;
}

.plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1877F2, #0756C9);
    color: #FFFFFF;
    font-size: 23px;
}

.plan-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .plan-details .muted {
        color: var(--muted);
        font-size: 12px;
    }

    .plan-details b {
        color: var(--sidebar-bg);
        font-size: 17px;
    }

.btn-view {
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* FOOTER — KEEP EXISTING COLOR */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

/* OVERLAY AND MOBILE NAV */

.sidebar-overlay {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* TABLET + MOBILE */

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(290px, 85vw);
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(7, 18, 38, .55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-area {
        width: 100%;
        padding-bottom: 70px;
    }

    .topbar {
        min-height: 62px;
        padding: 9px 12px;
        gap: 9px;
    }

    .topbar-icon {
        width: 37px;
        height: 37px;
    }

    .page-content {
        padding: 20px 15px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 2px;
        width: 100%;
        min-height: 64px;
        padding: 6px 5px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        background: #FFFFFF;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 15px rgba(11, 29, 58, .07);
        z-index: 80;
    }

    .mobile-nav-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 48px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 600;
    }

        .mobile-nav-item i {
            font-size: 19px;
        }

        .mobile-nav-item.active,
        .mobile-nav-item:hover {
            color: var(--primary);
        }

    .trade-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-top: -17px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1598FF, #1877F2);
        color: #FFFFFF;
        box-shadow: 0 3px 9px rgba(24, 119, 242, .3);
    }

        .trade-nav-icon i {
            font-size: 17px;
        }

    .site-footer {
        padding: 14px 15px;
    }
}

/* SMALL MOBILE */

@media (max-width: 600px) {
    .topbar-subtitle {
        display: none;
    }

    .topbar-brand {
        font-size: 16px;
    }

    .page-content {
        padding: 15px 12px;
    }

        .page-content h1 {
            font-size: 23px;
        }

    .balance-card {
        min-height: 158px;
        padding: 16px;
    }

    .bal-val {
        font-size: 28px;
    }

    .bal-chart {
        width: 43%;
        height: 62px;
    }

    .quick-card {
        justify-content: flex-start;
        min-height: 62px;
        padding: 12px;
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .stat-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px;
    }

        .stat-card strong {
            font-size: 19px;
            text-align: right;
        }

    .coin-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .coin-name {
        grid-row: 1 / span 2;
        font-size: 12px;
    }

    .coin-row strong {
        grid-column: 2;
        grid-row: 1;
        font-size: 11px;
        text-align: right;
    }

    .coin-row .up,
    .coin-row .down {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .site-footer {
        padding: 13px 12px;
        font-size: 11px;
    }
}

/* EXTRA SMALL MOBILE */

@media (max-width: 380px) {
    .page-content {
        padding-right: 9px;
        padding-left: 9px;
    }

    .bal-val {
        font-size: 25px;
    }

    .quick-card {
        gap: 7px;
        padding: 10px;
        font-size: 12px;
    }

    .mobile-nav-item {
        font-size: 9px;
    }
}

/* DESKTOP */

@media (min-width: 901px) {
    .sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
    }

    .menu-toggle,
    .mobile-bottom-nav {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .main-area {
        padding-bottom: 0;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =====================================
   BT DEMO - MARKET PAGE
===================================== */

.market-page {
    width: 100%;
    min-width: 0;
    color: #0B1D3A;
}

    /* Search bar */

    .market-page .market-search {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 0 13px;
        margin-bottom: 14px;
        border: 1px solid #E4EAF3;
        border-radius: 12px;
        background: #FFFFFF;
        color: #526A91;
        box-shadow: 0 2px 8px rgba(15, 35, 70, .035);
    }

        .market-page .market-search i {
            flex-shrink: 0;
            font-size: 15px;
        }

        .market-page .market-search input {
            width: 100%;
            min-width: 0;
            padding: 10px 0;
            border: 0;
            outline: none;
            background: transparent;
            color: #0B1D3A;
            font-family: inherit;
            font-size: 13px;
        }

            .market-page .market-search input::placeholder {
                color: #64748B;
            }

    /* Tabs */

    .market-page .market-tabs {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        margin-bottom: 17px;
        border-bottom: 1px solid #E4EAF3;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .market-page .market-tabs::-webkit-scrollbar {
            display: none;
        }

    .market-page .market-tab {
        position: relative;
        flex: 1 0 auto;
        min-width: 56px;
        padding: 10px 9px 12px;
        border: 0;
        background: transparent;
        color: #526A91;
        font-family: inherit;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
    }

        .market-page .market-tab.active {
            color: #0756D8;
            font-weight: 800;
        }

            .market-page .market-tab.active::after {
                position: absolute;
                right: 8px;
                bottom: -1px;
                left: 8px;
                height: 3px;
                border-radius: 3px 3px 0 0;
                background: #1877F2;
                content: "";
            }

    /* Table heading */

    .market-page .market-table-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto 50px;
        align-items: center;
        gap: 10px;
        padding: 0 10px 10px;
        color: #64748B;
        font-size: 11px;
    }

        .market-page .market-table-heading span:nth-child(2),
        .market-page .market-table-heading span:nth-child(3) {
            text-align: right;
            white-space: nowrap;
        }

    /* Coin list */

    .market-page .market-coin-list {
        overflow: hidden;
        padding: 2px 12px;
        border: 1px solid #E9EEF5;
        border-radius: 14px;
        background: #FFFFFF;
        box-shadow: 0 3px 12px rgba(16, 24, 40, .035);
    }

    .market-page .market-coin {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto 50px;
        align-items: center;
        gap: 10px;
        min-height: 55px;
        padding: 8px 0;
        border-bottom: 1px solid #EDF1F6;
        color: #0B1D3A;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
    }

        .market-page .market-coin:last-of-type {
            border-bottom: 0;
        }

        .market-page .market-coin:hover {
            background: #F8FAFE;
        }

        .market-page .market-coin[hidden],
        .market-page .market-empty[hidden] {
            display: none !important;
        }

    .market-page .market-coin-name {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        white-space: nowrap;
    }

    .market-page .coin-symbol {
        font-size: 12px;
        font-weight: 800;
    }

    .market-page .market-coin-name small {
        color: #64748B;
        font-size: 10px;
    }

    .market-page .market-coin-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 31px;
        height: 31px;
        flex-shrink: 0;
        margin-right: 2px;
        border-radius: 50%;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: 800;
    }

        .market-page .market-coin-icon.btc {
            background: #F7931A;
        }

        .market-page .market-coin-icon.eth {
            background: #627EEA;
            font-size: 17px;
        }

        .market-page .market-coin-icon.bnb {
            background: #F0B90B;
        }

        .market-page .market-coin-icon.sol {
            background: linear-gradient(135deg, #14F195, #9945FF, #00C2FF);
            color: #FFFFFF;
            font-size: 16px;
        }

        .market-page .market-coin-icon.xrp {
            background: #23292F;
        }

        .market-page .market-coin-icon.doge {
            background: #C5A044;
        }

        .market-page .market-coin-icon.trx {
            background: #E50932;
        }

        .market-page .market-coin-icon.ada {
            background: #1769FF;
        }

    .market-page .market-price {
        color: #0B1D3A;
        font-size: 11px;
        font-weight: 800;
        text-align: right;
        white-space: nowrap;
    }

    .market-page .market-change {
        font-size: 11px;
        font-weight: 700;
        text-align: right;
        white-space: nowrap;
    }

        .market-page .market-change.up {
            color: #16A36A;
        }

        .market-page .market-change.down {
            color: #F04438;
        }

    .market-page .market-spark {
        display: block;
        width: 50px;
        height: 20px;
    }

    .market-page .market-empty {
        padding: 25px 10px;
        color: #64748B;
        font-size: 13px;
        text-align: center;
    }

/* Tablet and mobile */

@media (max-width: 600px) {
    .market-page .market-search {
        min-height: 42px;
        margin-bottom: 10px;
    }

    .market-page .market-tabs {
        margin-bottom: 13px;
    }

    .market-page .market-tab {
        padding: 10px 8px 11px;
        font-size: 11px;
    }

    .market-page .market-table-heading {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10px;
    }

        .market-page .market-table-heading .spark-heading {
            display: none;
        }

    .market-page .market-coin-list {
        padding: 2px 9px;
    }

    .market-page .market-coin {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        min-height: 53px;
    }

    .market-page .market-coin-name {
        gap: 4px;
    }

    .market-page .market-coin-icon {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }

        .market-page .market-coin-icon.eth {
            font-size: 15px;
        }

    .market-page .coin-symbol {
        font-size: 11px;
    }

    .market-page .market-coin-name small {
        font-size: 9px;
    }

    .market-page .market-price,
    .market-page .market-change {
        font-size: 10px;
    }

    .market-page .market-spark {
        display: none;
    }
}

@media (max-width: 350px) {
    .market-page .market-coin {
        gap: 4px;
    }

    .market-page .market-coin-icon {
        width: 25px;
        height: 25px;
    }

    .market-page .market-coin-name small {
        display: none;
    }

    .market-page .market-price,
    .market-page .market-change {
        font-size: 9px;
    }
}

/* Dashboard content layout */
.page-content .page-heading {
    margin-bottom: 18px;
}

    .page-content .page-heading h1 {
        margin: 0 0 8px;
        color: #0b1f3a;
        font-size: 26px;
        font-weight: 800;
    }

    .page-content .page-heading p {
        margin: 0;
        color: #64748b;
        font-size: 14px;
    }

.page-content .balance-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(115deg, #0b1f3a, #164e63);
}

.page-content .bal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-content .bal-val {
    margin-top: 18px;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.page-content .bal-sub {
    margin-top: 6px;
    color: #22c55e;
    font-size: 12px;
}

.page-content .bal-chart {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
    height: 65px;
    pointer-events: none;
}

.page-content .quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.page-content .quick-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px;
    padding: 16px 12px;
    border-radius: 13px;
    background: #fff;
    color: #0b1f3a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(15, 35, 65, .04);
}

    .page-content .quick-card i {
        color: #1677ff;
        font-size: 19px;
    }

.page-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

    .page-content .stats-grid .stat-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
        padding: 20px;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 4px 15px rgba(15, 35, 65, .04);
    }

.page-content .stat-card span {
    color: #64748b;
    font-size: 13px;
}

.page-content .stat-card strong {
    color: #0b1f3a;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.page-content .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 10px;
}

    .page-content .section-heading h2 {
        margin: 0;
        color: #0b1f3a;
        font-size: 19px;
    }

    .page-content .section-heading a {
        color: #1677ff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }

.page-content .coin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
    font-size: 13px;
}

    .page-content .coin-row:last-child {
        border-bottom: 0;
    }

.page-content .up {
    color: #16a765;
    font-weight: 700;
}

.page-content .down {
    color: #ef4444;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-content .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-content .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-content .balance-card {
        padding: 18px;
    }

    .page-content .coin-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        padding: 14px 12px;
        font-size: 12px;
    }
}


/* ==========================================
   BT DEMO - TRADE PAGE
   Responsive Desktop + Mobile
   ========================================== */

.trade-page {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    color: #0b1f3a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}

    .trade-page *,
    .trade-page *::before,
    .trade-page *::after {
        box-sizing: border-box;
    }

    .trade-page button,
    .trade-page a {
        -webkit-tap-highlight-color: transparent;
    }

    .trade-page button {
        font: inherit;
        cursor: pointer;
    }

    /* Main panel */
    .trade-page .trade-panel {
        width: 100%;
        min-width: 0;
        padding: 22px;
        overflow: hidden;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 5px 20px rgba(15, 35, 65, .055);
    }

    /* Pair header */
    .trade-page .trade-pair-row,
    .trade-page .trade-price-summary,
    .trade-page .trade-tools {
        display: flex;
        align-items: center;
    }

    .trade-page .trade-pair-row {
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .trade-page .pair-selector {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #0b1f3a;
    }

        .trade-page .pair-selector strong {
            font-size: 16px;
            font-weight: 750;
        }

        .trade-page .pair-selector > i {
            color: #718096;
            font-size: 12px;
        }

    .trade-page .pair-coin {
        display: inline-grid;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        place-items: center;
        border-radius: 50%;
        background: #f7931a;
        color: #ffffff;
        font-size: 17px;
        font-weight: 800;
    }

    .trade-page .trade-tools {
        gap: 16px;
    }

    .trade-page .trade-icon-btn {
        padding: 4px;
        border: 0;
        background: transparent;
        color: #2563eb;
        font-size: 20px;
    }

        .trade-page .trade-icon-btn:first-child,
        .trade-page .trade-icon-btn.is-favorite {
            color: #f5a900;
        }

        .trade-page .trade-icon-btn.is-favorite {
            transform: scale(1.08);
        }

    /* Price summary */
    .trade-page .trade-price-summary {
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    .trade-page .trade-price-main {
        min-width: 0;
    }

        .trade-page .trade-price-main h1 {
            margin: 0;
            color: #07152b;
            font-size: clamp(26px, 2.2vw, 34px);
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -.6px;
        }

    .trade-page .trade-price-change {
        margin-top: 7px;
        color: #16a765;
        font-size: 14px;
    }

    .trade-page .trade-market-stats {
        display: grid;
        flex: 0 0 245px;
        gap: 6px;
        padding-top: 4px;
    }

        .trade-page .trade-market-stats div {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            font-size: 13px;
        }

        .trade-page .trade-market-stats span {
            color: #718096;
        }

        .trade-page .trade-market-stats strong {
            color: #0b1f3a;
            font-weight: 650;
            white-space: nowrap;
        }

    /* Timeframe buttons */
    .trade-page .trade-timeframes {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: 18px;
        padding: 12px 0;
        border-top: 1px solid #edf1f7;
    }

        .trade-page .trade-timeframes button {
            padding: 7px 12px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #64748b;
            font-size: 13px;
            white-space: nowrap;
        }

            .trade-page .trade-timeframes button.active {
                background: #1677ff;
                color: #ffffff;
                font-weight: 700;
            }

    /* Chart */
    .trade-page .trade-chart-wrap {
        width: 100%;
        min-width: 0;
        margin: 6px 0 14px;
        overflow: hidden;
    }

    .trade-page .trade-chart {
        display: block;
        width: 100%;
        height: auto;
    }

    .trade-page .chart-grid line {
        stroke: #edf1f7;
        stroke-width: 1;
    }

    .trade-page .chart-labels,
    .trade-page .chart-dates {
        fill: #718096;
        font-size: 10px;
    }

    .trade-page .wick {
        stroke-width: 1.5;
    }

    .trade-page .up-wick {
        stroke: #16b86a;
    }

    .trade-page .down-wick {
        stroke: #f04438;
    }

    .trade-page .candle-up {
        fill: #16b86a;
    }

    .trade-page .candle-down {
        fill: #f04438;
    }

    .trade-page .current-price-line {
        stroke: #16b86a;
        stroke-width: 1;
        stroke-dasharray: 3 3;
    }

    .trade-page .current-price-tag {
        fill: #16b86a;
    }

    .trade-page .current-price-text {
        fill: #ffffff;
        font-size: 9px;
        font-weight: 700;
    }

    /* Order book / recent trades tabs */
    .trade-page .trade-detail-tabs {
        display: flex;
        align-items: center;
        gap: 28px;
        border-bottom: 1px solid #e9eef5;
    }

        .trade-page .trade-detail-tabs button {
            padding: 12px 3px 10px;
            border: 0;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: #64748b;
            font-size: 14px;
            white-space: nowrap;
        }

            .trade-page .trade-detail-tabs button.active {
                border-bottom-color: #1677ff;
                color: #1677ff;
                font-weight: 700;
            }

    /* Order book table */
    .trade-page .trade-table-wrap {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
    }

    .trade-page .trade-table-heading,
    .trade-page .trade-table-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
        align-items: center;
        gap: 12px;
    }

    .trade-page .trade-table-heading {
        padding: 14px 0 9px;
        color: #64748b;
        font-size: 13px;
    }

        .trade-page .trade-table-heading span:nth-child(n+2),
        .trade-page .trade-table-row > :nth-child(n+2) {
            text-align: right;
        }

    .trade-page .trade-table-row {
        padding: 10px 0;
        font-size: 13px;
    }

        .trade-page .trade-table-row strong {
            color: #0b1f3a;
            font-size: inherit;
            font-weight: 650;
        }

    .trade-page .sell-row > span {
        color: #f04438;
    }

    .trade-page .buy-row > span {
        color: #16a765;
    }

    /* Buy / Sell buttons */
    .trade-page .trade-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 12px;
    }

        .trade-page .trade-actions a {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            min-height: 48px;
            padding: 10px;
            border-radius: 9px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 750;
            text-decoration: none;
            transition: filter .2s ease;
        }

            .trade-page .trade-actions a:hover {
                filter: brightness(.95);
            }

    .trade-page .trade-buy-btn {
        background: #16b364;
    }

    .trade-page .trade-sell-btn {
        background: #f04438;
    }

/* ==========================================
   TABLET
   ========================================== */
@media (max-width: 900px) {
    .trade-page .trade-panel {
        padding: 16px;
    }

    .trade-page .trade-market-stats {
        flex-basis: 205px;
    }

        .trade-page .trade-market-stats div {
            font-size: 11px;
        }

    .trade-page .trade-chart {
        max-height: 300px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 768px) {
    .trade-page {
        max-width: 100%;
        font-size: 12px;
    }

        .trade-page .trade-panel {
            padding: 12px;
            border-radius: 14px;
        }

        .trade-page .trade-pair-row {
            gap: 8px;
            margin-bottom: 12px;
        }

        .trade-page .pair-selector {
            gap: 7px;
        }

            .trade-page .pair-selector strong {
                font-size: 13px;
            }

        .trade-page .pair-coin {
            flex-basis: 25px;
            width: 25px;
            height: 25px;
            font-size: 14px;
        }

        .trade-page .trade-tools {
            gap: 10px;
        }

        .trade-page .trade-icon-btn {
            font-size: 17px;
        }

        .trade-page .trade-price-summary {
            gap: 10px;
        }

        .trade-page .trade-price-main h1 {
            font-size: 23px;
            letter-spacing: -.4px;
        }

        .trade-page .trade-price-change {
            margin-top: 4px;
            font-size: 11px;
        }

        .trade-page .trade-market-stats {
            flex: 0 1 125px;
            min-width: 0;
            gap: 3px;
            padding-top: 2px;
        }

            .trade-page .trade-market-stats div {
                gap: 5px;
                font-size: 9px;
            }

            .trade-page .trade-market-stats span {
                white-space: nowrap;
            }

        .trade-page .trade-timeframes {
            gap: 2px;
            margin-top: 12px;
            padding: 8px 0;
        }

            .trade-page .trade-timeframes button {
                padding: 5px 7px;
                font-size: 11px;
            }

        .trade-page .trade-chart-wrap {
            margin: 4px 0 8px;
        }

        .trade-page .trade-chart {
            max-height: 240px;
        }

        .trade-page .chart-labels,
        .trade-page .chart-dates {
            font-size: 9px;
        }

        .trade-page .trade-detail-tabs {
            gap: 18px;
        }

            .trade-page .trade-detail-tabs button {
                padding: 9px 2px 8px;
                font-size: 12px;
            }

        .trade-page .trade-table-heading,
        .trade-page .trade-table-row {
            gap: 6px;
        }

        .trade-page .trade-table-heading {
            padding: 10px 0 7px;
            font-size: 10px;
        }

        .trade-page .trade-table-row {
            padding: 7px 0;
            font-size: 10px;
        }

        .trade-page .trade-actions {
            gap: 9px;
            margin-top: 9px;
        }

            .trade-page .trade-actions a {
                min-height: 40px;
                padding: 8px;
                font-size: 12px;
            }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */
@media (max-width: 380px) {
    .trade-page .trade-panel {
        padding: 9px;
    }

    .trade-page .trade-price-summary {
        gap: 6px;
    }

    .trade-page .trade-price-main h1 {
        font-size: 20px;
    }

    .trade-page .trade-market-stats {
        flex-basis: 112px;
    }

        .trade-page .trade-market-stats div {
            gap: 3px;
            font-size: 8px;
        }

    .trade-page .trade-timeframes button {
        padding: 5px 4px;
        font-size: 10px;
    }

    .trade-page .trade-detail-tabs {
        gap: 12px;
    }

    .trade-page .trade-table-heading,
    .trade-page .trade-table-row {
        gap: 4px;
    }

    .trade-page .trade-table-heading,
    .trade-page .trade-table-row {
        font-size: 9px;
    }
}


/* ==========================================
   BT DEMO - MARKET PAGE MOBILE CHART FIX
   Keep sparkline charts visible on mobile
   ========================================== */

@media (max-width: 600px) {

    /* Table heading: Pair | Price | Change | Chart */
    .market-page .market-table-heading {
        grid-template-columns: minmax(0, 1fr) 62px 66px 42px !important;
        gap: 5px;
        padding: 0 7px 10px;
        font-size: 10px;
    }

        .market-page .market-table-heading span:nth-child(2),
        .market-page .market-table-heading span:nth-child(3) {
            text-align: right;
        }

        .market-page .market-table-heading .spark-heading {
            display: block !important;
        }

    /* Four-column coin row */
    .market-page .market-coin {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 62px 66px 42px !important;
        align-items: center;
        gap: 5px;
        min-height: 53px;
        padding: 8px 0;
    }

    /* Coin name and icon */
    .market-page .market-coin-name {
        min-width: 0;
        gap: 4px;
        overflow: hidden;
        white-space: nowrap;
    }

    .market-page .market-coin-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        margin-right: 1px;
        font-size: 14px;
    }

        .market-page .market-coin-icon.eth {
            font-size: 13px;
        }

    .market-page .coin-symbol {
        font-size: 10px;
        font-weight: 800;
    }

    .market-page .market-coin-name small {
        display: inline;
        font-size: 9px;
    }

    /* Price */
    .market-page .market-price {
        min-width: 0;
        font-size: 10px;
        text-align: right;
        white-space: nowrap;
    }

    /* 24-hour percentage */
    .market-page .market-change {
        font-size: 10px;
        text-align: right;
        white-space: nowrap;
    }

    /* Mini line charts */
    .market-page .market-spark {
        display: block !important;
        width: 42px;
        max-width: 100%;
        height: 18px;
        justify-self: end;
        overflow: visible;
    }
}

/* Extra narrow phones */
@media (max-width: 360px) {

    .market-page .market-table-heading {
        grid-template-columns: minmax(0, 1fr) 55px 57px 32px !important;
        gap: 3px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 9px;
    }

    .market-page .market-coin {
        grid-template-columns: minmax(0, 1fr) 55px 57px 32px !important;
        gap: 3px;
    }

    .market-page .market-coin-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .market-page .market-coin-name {
        gap: 3px;
    }

    .market-page .coin-symbol {
        font-size: 9px;
    }

    .market-page .market-coin-name small {
        font-size: 8px;
    }

    .market-page .market-price,
    .market-page .market-change {
        font-size: 9px;
    }

    .market-page .market-spark {
        width: 32px;
        height: 16px;
    }
}

/* =========================================
   BT DEMO - PLAN PAGE
   Responsive desktop, tablet and mobile
   ========================================= */

.plan-page {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    color: #0b1d3a;
    font-family: inherit;
}

    .plan-page *,
    .plan-page *::before,
    .plan-page *::after {
        box-sizing: border-box;
    }

    .plan-page [hidden] {
        display: none !important;
    }

    /* Promo banner */

    .plan-page .plan-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        min-height: 145px;
        padding: 20px 26px;
        margin-bottom: 17px;
        overflow: hidden;
        border-radius: 16px;
        background: linear-gradient(115deg, #071b3c, #16478d);
        color: #fff;
    }

    .plan-page .plan-banner-copy {
        position: relative;
        z-index: 1;
    }

        .plan-page .plan-banner-copy h2 {
            margin: 0 0 7px;
            color: #fff;
            font-size: clamp(22px, 2.4vw, 32px);
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -.4px;
        }

        .plan-page .plan-banner-copy p {
            margin: 0;
            color: #38bdf8;
            font-size: 14px;
        }

        .plan-page .plan-banner-copy strong {
            color: #20df73;
        }

    .plan-page .plan-banner-image {
        display: flex;
        flex: 0 0 180px;
        align-items: center;
        justify-content: center;
        height: 110px;
        min-width: 0;
    }

        .plan-page .plan-banner-image img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

    /* Tabs */

    .plan-page .plan-tabs {
        display: flex;
        align-items: stretch;
        gap: 22px;
        width: 100%;
        margin-bottom: 15px;
        overflow-x: auto;
        border-bottom: 1px solid #e1e8f2;
        scrollbar-width: none;
    }

        .plan-page .plan-tabs::-webkit-scrollbar {
            display: none;
        }

    .plan-page .plan-tab {
        position: relative;
        flex: 0 0 auto;
        padding: 11px 3px 12px;
        border: 0;
        background: transparent;
        color: #64748b;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
    }

        .plan-page .plan-tab.active {
            color: #0865ec;
            font-weight: 700;
        }

            .plan-page .plan-tab.active::after {
                position: absolute;
                right: 0;
                bottom: -1px;
                left: 0;
                height: 3px;
                border-radius: 3px 3px 0 0;
                background: #1877f2;
                content: "";
            }

    /* Main card */

    .plan-page .plan-card {
        width: 100%;
        min-width: 0;
        padding: 23px;
        border: 1px solid #eaf0f7;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 16px rgba(15, 35, 65, .045);
    }

        .plan-page .plan-card h3 {
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 0 0 15px;
            color: #0b1d3a;
            font-size: 19px;
            font-weight: 800;
        }

    .plan-page .plan-info {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #718096;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        cursor: help;
    }

    /* Table */

    .plan-page .plan-table-wrap {
        width: 100%;
        overflow-x: auto;
        border-radius: 8px;
        scrollbar-width: thin;
    }

    .plan-page .plan-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        color: #0b1d3a;
        font-size: 14px;
        text-align: center;
    }

        .plan-page .plan-table thead {
            background: #f5f8fc;
        }

        .plan-page .plan-table th {
            padding: 12px 8px;
            color: #526782;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.35;
        }

        .plan-page .plan-table td {
            height: 49px;
            padding: 9px 8px;
            border-bottom: 1px solid #e9eef5;
            font-weight: 600;
            line-height: 1.4;
        }

        .plan-page .plan-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .plan-page .plan-table th:first-child,
        .plan-page .plan-table td:first-child {
            width: 16%;
        }

        .plan-page .plan-table th:nth-child(2),
        .plan-page .plan-table td:nth-child(2) {
            width: 56%;
        }

        .plan-page .plan-table th:last-child,
        .plan-page .plan-table td:last-child {
            width: 28%;
        }

    .plan-page .rank-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        color: #fff;
        font-size: 13px;
        font-weight: 800;
    }

    .plan-page .rank-1 {
        background: #10b981;
    }

    .plan-page .rank-2 {
        background: #84cc16;
    }

    .plan-page .rank-3 {
        background: #f59e0b;
    }

    .plan-page .rank-4 {
        background: #f97316;
    }

    .plan-page .rank-5 {
        background: #ef4444;
    }

    .plan-page .plan-green {
        color: #10a765;
        white-space: nowrap;
    }

    /* Disclaimer */

    .plan-page .plan-disclaimer {
        margin: 15px 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.65;
    }

    /* Primary button */

    .plan-page .plan-primary-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 47px;
        padding: 12px 16px;
        border: 0;
        border-radius: 9px;
        background: #1877f2;
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 750;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
    }

        .plan-page .plan-primary-btn:hover {
            background: #075fd5;
        }

        .plan-page .plan-primary-btn:active {
            transform: scale(.99);
        }

    /* Other tab content */

    .plan-page .plan-description {
        margin: -4px 0 16px;
        color: #64748b;
        font-size: 14px;
        line-height: 1.6;
    }

    .plan-page .plan-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 210px;
        padding: 25px;
        margin-bottom: 20px;
        border: 1px dashed #d7e2f0;
        border-radius: 12px;
        background: #f8faff;
        text-align: center;
    }

    .plan-page .plan-placeholder-icon {
        display: grid;
        width: 54px;
        height: 54px;
        place-items: center;
        margin-bottom: 12px;
        border-radius: 15px;
        background: #e6f0ff;
        color: #1877f2;
        font-size: 23px;
    }

    .plan-page .plan-placeholder h4 {
        margin: 0 0 8px;
        font-size: 17px;
    }

    .plan-page .plan-placeholder p {
        max-width: 420px;
        margin: 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.6;
    }

    /* Weekly table */

    .plan-page .bonus-table th,
    .plan-page .bonus-table td {
        width: 33.333% !important;
    }

/* Tablet */

@media (max-width: 900px) {
    .plan-page .plan-banner {
        min-height: 125px;
        padding: 17px 20px;
    }

    .plan-page .plan-banner-image {
        flex-basis: 145px;
        height: 100px;
    }

    .plan-page .plan-card {
        padding: 19px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .plan-page .plan-banner {
        min-height: 80px;
        gap: 8px;
        padding: 12px 13px;
        margin-bottom: 9px;
        border-radius: 12px;
    }

    .plan-page .plan-banner-copy h2 {
        margin-bottom: 3px;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .plan-page .plan-banner-copy p {
        font-size: 10px;
    }

    .plan-page .plan-banner-image {
        flex: 0 0 75px;
        height: 60px;
    }

    .plan-page .plan-tabs {
        justify-content: space-between;
        gap: 13px;
        margin-bottom: 10px;
    }

    .plan-page .plan-tab {
        padding: 9px 2px 10px;
        font-size: 11px;
    }

    .plan-page .plan-card {
        padding: 12px;
        border-radius: 13px;
    }

        .plan-page .plan-card h3 {
            gap: 5px;
            margin-bottom: 10px;
            font-size: 13px;
        }

    .plan-page .plan-info {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .plan-page .plan-table {
        font-size: 11px;
    }

        .plan-page .plan-table th {
            padding: 7px 3px;
            font-size: 10px;
        }

        .plan-page .plan-table td {
            height: 33px;
            padding: 5px 3px;
            font-size: 11px;
        }

            .plan-page .plan-table th:first-child,
            .plan-page .plan-table td:first-child {
                width: 15%;
            }

            .plan-page .plan-table th:nth-child(2),
            .plan-page .plan-table td:nth-child(2) {
                width: 57%;
            }

            .plan-page .plan-table th:last-child,
            .plan-page .plan-table td:last-child {
                width: 28%;
            }

    .plan-page .rank-badge {
        width: 19px;
        height: 19px;
        font-size: 10px;
    }

    .plan-page .plan-disclaimer {
        margin: 10px 0;
        font-size: 9px;
        line-height: 1.5;
    }

    .plan-page .plan-primary-btn {
        min-height: 37px;
        padding: 9px 10px;
        border-radius: 7px;
        font-size: 12px;
    }

    .plan-page .plan-description {
        font-size: 12px;
    }

    .plan-page .plan-placeholder {
        min-height: 180px;
        padding: 18px 12px;
    }

    .plan-page .bonus-table th,
    .plan-page .bonus-table td {
        font-size: 10px;
        overflow-wrap: anywhere;
    }
}

/* Extra-small phones */

@media (max-width: 360px) {
    .plan-page .plan-banner-image {
        flex-basis: 60px;
        height: 53px;
    }

    .plan-page .plan-tabs {
        gap: 8px;
    }

    .plan-page .plan-tab {
        font-size: 10px;
    }

    .plan-page .plan-card {
        padding: 9px;
    }

    .plan-page .plan-table th,
    .plan-page .plan-table td {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 9px;
    }

    .plan-page .rank-badge {
        width: 17px;
        height: 17px;
        font-size: 9px;
    }
}

/* =====================================
   BT DEMO - DEPOSIT PAGE
   ===================================== */

.deposit-page {
    width: 100%;
    margin: 0 auto;
    color: #0b1f3a;
}

    .deposit-page *,
    .deposit-page *::before,
    .deposit-page *::after {
        box-sizing: border-box;
    }

.deposit-card {
    width: 100%;
    padding: 22px;
    border: 1px solid #eaf0f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(15, 35, 65, .045);
}

    .deposit-card h2 {
        margin: 0 0 17px;
        font-size: 22px;
        font-weight: 800;
        color: #0b1f3a;
    }

/* Select rows */

.deposit-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 55px;
    border-bottom: 1px solid #e9eef5;
}

    .deposit-field label {
        flex: 1;
        color: #718096;
        font-size: 14px;
    }

.deposit-select-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.deposit-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.usdt-icon {
    background: #20a77a;
}

.bnb-icon {
    background: #f3b72d;
}

.deposit-select-wrap select {
    max-width: 190px;
    padding: 8px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #0b1f3a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.deposit-select-wrap > i {
    color: #718096;
    font-size: 11px;
    pointer-events: none;
}

/* QR code */

.deposit-qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 14px;
}

.deposit-qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #e9eef5;
    border-radius: 12px;
    background: #fff;
}

.deposit-qr-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deposit-qr-fallback {
    display: none;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

/* Wallet address */

.deposit-address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    background: #f5f8fc;
}

.deposit-address {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #0b1f3a;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
}

.deposit-copy-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: #e6f0ff;
    color: #1877f2;
    font-size: 15px;
    cursor: pointer;
}

/* Instructions */

.deposit-notes {
    display: grid;
    gap: 6px;
    padding-left: 18px;
    margin: 14px 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

    .deposit-notes li::marker {
        color: #718096;
    }

/* Copy button */

.deposit-copy-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    border-radius: 9px;
    background: #1877f2;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease;
}

    .deposit-copy-main:hover {
        background: #0863db;
    }

.deposit-copy-status {
    margin: 8px 0 0;
    color: #109b63;
    font-size: 12px;
    text-align: center;
}

/* Tablet */

@media (max-width: 768px) {
    .deposit-card {
        padding: 17px;
    }

    .deposit-qr-frame {
        width: 165px;
        height: 165px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .deposit-card {
        padding: 12px;
        border-radius: 13px;
    }

        .deposit-card h2 {
            margin-bottom: 11px;
            font-size: 15px;
        }

    .deposit-field {
        min-height: 40px;
        gap: 7px;
    }

        .deposit-field label {
            font-size: 11px;
        }

    .deposit-select-wrap {
        gap: 6px;
    }

    .deposit-coin-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .deposit-select-wrap select {
        max-width: 135px;
        padding: 6px 0;
        font-size: 11px;
    }

    .deposit-select-wrap > i {
        font-size: 9px;
    }

    .deposit-qr-section {
        padding: 14px 0 10px;
    }

    .deposit-qr-frame {
        width: 110px;
        height: 110px;
        padding: 5px;
        border-radius: 9px;
    }

    .deposit-address-box {
        min-height: 43px;
        padding: 6px 8px;
        gap: 6px;
    }

    .deposit-address {
        font-size: 10px;
    }

    .deposit-copy-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .deposit-notes {
        gap: 4px;
        padding-left: 15px;
        margin: 10px 0;
        font-size: 9px;
        line-height: 1.5;
    }

    .deposit-copy-main {
        min-height: 37px;
        padding: 9px 12px;
        border-radius: 7px;
        font-size: 12px;
    }

    .deposit-copy-status {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .deposit-card {
        padding: 10px;
    }

    .deposit-select-wrap select {
        max-width: 115px;
    }

    .deposit-qr-frame {
        width: 100px;
        height: 100px;
    }

    .deposit-address {
        font-size: 9px;
    }
}

/* =====================================
   BT DEMO - WITHDRAW PAGE
   Reuses existing Deposit page styles
   ===================================== */



    .withdraw-page .deposit-card {
        padding: 18px;
    }

        .withdraw-page .deposit-card h2 {
            margin-bottom: 12px;
            font-size: 20px;
        }

/* Wallet and amount field labels */

.withdraw-form-group {
    margin-top: 13px;
}

    .withdraw-form-group > label {
        display: block;
        margin-bottom: 5px;
        color: #718096;
        font-size: 13px;
    }

/* Shared input container */

.withdraw-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid #e5ebf3;
    border-radius: 9px;
    background: #f5f8fc;
}

    .withdraw-input-box:focus-within {
        border-color: #1877f2;
        box-shadow: 0 0 0 2px rgba(24, 119, 242, .08);
    }

    .withdraw-input-box input {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 2px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #0b1f3a;
        font-family: inherit;
        font-size: 13px;
    }

        .withdraw-input-box input::placeholder {
            color: #718096;
            opacity: 1;
        }

.withdraw-input-action {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #718096;
    cursor: pointer;
}

/* Amount and available balance */

.withdraw-amount-box {
    gap: 7px;
}

    .withdraw-amount-box input {
        flex: 1 1 90px;
    }

.withdraw-available {
    flex-shrink: 0;
    color: #718096;
    font-size: 10px;
    white-space: nowrap;
}

.withdraw-all-btn {
    padding: 2px 0 2px 3px;
    border: 0;
    background: transparent;
    color: #1877f2;
    font-size: 12px;
    font-weight: 800;
}

/* Fee and receiving amount */

.withdraw-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #718096;
    font-size: 13px;
}

    .withdraw-summary-row strong {
        color: #101828;
        font-size: 13px;
        font-weight: 750;
        text-align: right;
        overflow-wrap: anywhere;
    }

.withdraw-validation {
    margin: 5px 0 0;
    color: #e04444;
    font-size: 11px;
    line-height: 1.4;
}

/* Submit: reuse existing Deposit button */

.withdraw-page .withdraw-submit {
    min-height: 43px;
    margin-top: 13px;
    font-size: 13px;
}

/* Tablet */

@media (max-width: 768px) {
    .withdraw-page .deposit-card {
        padding: 14px;
    }

        .withdraw-page .deposit-card h2 {
            font-size: 16px;
        }

    .withdraw-form-group {
        margin-top: 12px;
    }
}

/* Mobile: match the provided screenshot */

@media (max-width: 600px) {
    .withdraw-page .deposit-card {
        padding: 12px;
        border-radius: 13px;
    }

        .withdraw-page .deposit-card h2 {
            margin-bottom: 10px;
            font-size: 15px;
        }

    .withdraw-page .deposit-field {
        min-height: 40px;
        gap: 7px;
    }

        .withdraw-page .deposit-field label {
            font-size: 11px;
        }

    .withdraw-page .deposit-coin-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .withdraw-page .deposit-select-wrap {
        gap: 6px;
    }

        .withdraw-page .deposit-select-wrap select {
            max-width: 135px;
            padding: 6px 0;
            font-size: 11px;
        }

    .withdraw-form-group {
        margin-top: 12px;
    }

        .withdraw-form-group > label {
            margin-bottom: 5px;
            font-size: 11px;
        }

    .withdraw-input-box {
        min-height: 34px;
        padding: 6px 9px;
        border-radius: 8px;
    }

        .withdraw-input-box input {
            font-size: 11px;
        }

    .withdraw-available {
        font-size: 9px;
    }

    .withdraw-all-btn {
        font-size: 11px;
    }

    .withdraw-input-action {
        flex-basis: 20px;
        width: 20px;
        height: 22px;
        font-size: 12px;
    }

    .withdraw-summary-row {
        margin-top: 10px;
        font-size: 11px;
    }

        .withdraw-summary-row strong {
            font-size: 11px;
        }

    .withdraw-page .withdraw-submit {
        min-height: 36px;
        margin-top: 12px;
        padding: 9px 12px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .withdraw-page .deposit-card {
        padding: 10px;
    }

    .withdraw-amount-box {
        gap: 5px;
    }

    .withdraw-available {
        font-size: 8px;
    }

    .withdraw-summary-row {
        gap: 7px;
    }
}



/* ---------- TRANSFER PAGE ---------- */

.transfer-page {
    width: 100%;
    margin: 0 auto;
}

.transfer-form-group {
    margin-top: 15px;
}

    .transfer-form-group > label {
        display: block;
        margin-bottom: 6px;
        color: #718096;
        font-size: 13px;
    }

.transfer-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid #e5ebf3;
    border-radius: 9px;
    background: #f5f8fc;
    color: #718096;
}

    .transfer-input-wrap:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(24, 119, 242, .08);
    }

    .transfer-input-wrap > i {
        flex-shrink: 0;
        font-size: 14px;
    }

    .transfer-input-wrap input {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 3px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-family: inherit;
        font-size: 13px;
    }

        .transfer-input-wrap input::placeholder {
            color: #8795a9;
        }

.transfer-all-btn {
    flex-shrink: 0;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.transfer-balance {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

    .transfer-balance strong {
        color: var(--sidebar-bg);
        font-weight: 700;
    }

.transfer-error {
    margin: 5px 0 0;
    color: var(--danger);
    font-size: 11px;
}

.transfer-summary {
    display: grid;
    gap: 12px;
    margin-top: 19px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

    .transfer-summary > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: var(--muted);
        font-size: 13px;
    }

    .transfer-summary strong {
        color: var(--text);
        font-size: 13px;
        text-align: right;
    }

.transfer-page .transfer-submit {
    min-height: 43px;
    margin-top: 5px;
}

.transfer-notice {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- TRANSACTION HISTORY ---------- */

.history-page {
    width: 100%;
    min-width: 0;
    color: var(--sidebar-bg);
}

.history-card {
    min-width: 0;
    padding: 18px;
}

    .history-card h2 {
        margin: 0 0 13px;
        color: var(--sidebar-bg);
        font-size: 20px;
        font-weight: 800;
    }

.history-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

    .history-tabs::-webkit-scrollbar {
        display: none;
    }

.history-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #526a91;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .history-tab.active {
        color: #0756d8;
        font-weight: 800;
    }

        .history-tab.active::after {
            position: absolute;
            right: 10px;
            bottom: -1px;
            left: 10px;
            height: 2px;
            border-radius: 2px 2px 0 0;
            background: var(--primary);
            content: "";
        }

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
}

    .history-item:last-child {
        border-bottom: 0;
    }

    .history-item[hidden] {
        display: none !important;
    }

.history-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    font-size: 17px;
}

    .history-icon.incoming {
        background: #16b364;
    }

    .history-icon.outgoing,
    .history-icon.transfer-out {
        background: #1877f2;
    }

    .history-icon.transfer-in {
        background: #0ea5a4;
    }

.history-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .history-info > strong {
        color: var(--sidebar-bg);
        font-size: 13px;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

    .history-info small {
        color: var(--muted);
        font-size: 10px;
    }

.history-reference {
    color: #8795a9;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.history-amount {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

    .history-amount > strong {
        font-size: 12px;
        font-weight: 800;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .history-amount .positive {
        color: var(--success);
    }

    .history-amount .negative {
        color: var(--danger);
    }

.history-status {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 20px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}

    .history-status.completed {
        background: #dcfce7;
        color: #16a765;
    }

    .history-status.pending {
        background: #fff0c2;
        color: #b77900;
    }

.history-empty {
    padding: 24px 10px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {
    .transfer-page .deposit-card {
        padding: 12px;
        border-radius: 13px;
    }

        .transfer-page .deposit-card h2 {
            margin-bottom: 11px;
            font-size: 15px;
        }

    .transfer-form-group {
        margin-top: 12px;
    }

        .transfer-form-group > label {
            font-size: 11px;
        }

    .transfer-input-wrap {
        min-height: 35px;
        gap: 7px;
        padding: 6px 9px;
        border-radius: 8px;
    }

        .transfer-input-wrap > i {
            font-size: 12px;
        }

        .transfer-input-wrap input {
            font-size: 11px;
        }

    .transfer-balance {
        font-size: 10px;
    }

    .transfer-summary {
        gap: 10px;
        margin-top: 14px;
        padding: 11px 0;
    }

        .transfer-summary > div,
        .transfer-summary strong {
            font-size: 11px;
        }

    .transfer-page .transfer-submit {
        min-height: 37px;
        font-size: 12px;
    }

    .transfer-notice {
        font-size: 10px;
    }

    .history-card {
        padding: 12px;
        border-radius: 13px;
    }

        .history-card h2 {
            margin-bottom: 9px;
            font-size: 15px;
        }

    .history-tab {
        padding: 9px 9px;
        font-size: 11px;
    }

    .history-item {
        gap: 9px;
        padding: 10px 0;
    }

    .history-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 14px;
    }

    .history-info {
        gap: 3px;
    }

        .history-info > strong {
            font-size: 11px;
        }

        .history-info small {
            font-size: 9px;
        }

    .history-reference {
        font-size: 8px;
    }

    .history-amount > strong {
        font-size: 10px;
    }

    .history-status {
        padding: 3px 6px;
        font-size: 8px;
    }
}

/* Extra-small phones */

@media (max-width: 360px) {
    .history-card {
        padding: 10px;
    }

    .history-item {
        gap: 7px;
    }

    .history-icon {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }

    .history-amount > strong {
        font-size: 9px;
    }

    .history-tab {
        padding-right: 7px;
        padding-left: 7px;
    }
}

/* =========================================
   MY TEAM PAGE
   Reuses common card, colors and layout
   ========================================= */

.my-team-page {
    width: 100%;
    min-width: 0;
    color: var(--text);
}

.team-summary-card,
.team-list-card {
    padding: 15px;
    margin-bottom: 12px;
}

.team-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

    .team-summary-heading h2,
    .team-list-heading h2 {
        margin: 0;
        color: var(--sidebar-bg);
        font-size: 17px;
        font-weight: 800;
    }

    .team-summary-heading p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 11px;
    }

.team-summary-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 19px;
}

.team-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.team-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.team-stat-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    font-size: 13px;
}

    .team-stat-icon.blue {
        background: #e8f1ff;
        color: #1877f2;
    }

    .team-stat-icon.green {
        background: #e4f8ed;
        color: #16a765;
    }

    .team-stat-icon.purple {
        background: #f0eaff;
        color: #7956d8;
    }

.team-stat > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.team-stat small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.team-stat strong {
    color: var(--sidebar-bg);
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Member list header */

.team-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.team-count-badge {
    padding: 5px 8px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

/* Search */

.team-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--muted);
}

    .team-search-box:focus-within {
        border-color: var(--primary);
    }

    .team-search-box input {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 9px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 12px;
    }

/* Filter tabs */

.team-filter-tabs {
    display: flex;
    gap: 17px;
    margin-top: 13px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

    .team-filter-tabs::-webkit-scrollbar {
        display: none;
    }

.team-filter {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

    .team-filter.active {
        color: var(--primary);
        font-weight: 800;
    }

        .team-filter.active::after {
            position: absolute;
            right: 0;
            bottom: -1px;
            left: 0;
            height: 2px;
            background: var(--primary);
            content: "";
        }

/* Member row */

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f6;
}

    .team-member:last-of-type {
        border-bottom: 0;
    }

    .team-member[hidden] {
        display: none !important;
    }

.team-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: #1877f2;
    font-size: 13px;
    font-weight: 800;
}

    .team-avatar.avatar-green {
        background: #e3f8ed;
        color: #159b61;
    }

    .team-avatar.avatar-orange {
        background: #fff0db;
        color: #c77b10;
    }

    .team-avatar.avatar-purple {
        background: #f0eaff;
        color: #7956d8;
    }

.team-member-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .team-member-info > strong {
        color: var(--sidebar-bg);
        font-size: 12px;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

    .team-member-info > span {
        color: var(--muted);
        font-size: 10px;
        overflow-wrap: anywhere;
    }

.team-member-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1px;
}

.team-rank,
.team-verified,
.team-inactive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.team-rank {
    background: #edf2f7;
    color: #526174;
}

.team-verified {
    background: #e3f8ed;
    color: #159b61;
}

.team-inactive {
    background: #fff0f0;
    color: #d92d20;
}

.team-member-right {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: #8392a8;
}

    .team-member-right small {
        font-size: 10px;
    }

    .team-member-right > i {
        font-size: 11px;
    }

.team-empty {
    padding: 22px 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Responsive */

@media (max-width: 600px) {
    .team-summary-card,
    .team-list-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .team-summary-heading {
        margin-bottom: 12px;
    }

        .team-summary-heading h2,
        .team-list-heading h2 {
            font-size: 15px;
        }

    .team-summary-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .team-stat-grid {
        gap: 5px;
    }

    .team-stat {
        gap: 6px;
        padding: 8px 5px;
    }

    .team-stat-icon {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
        font-size: 11px;
    }

    .team-stat small {
        font-size: 9px;
    }

    .team-stat strong {
        font-size: 13px;
    }

    .team-member {
        gap: 8px;
        padding: 11px 0;
    }

    .team-avatar {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        font-size: 11px;
    }

    .team-member-info > strong {
        font-size: 11px;
    }

    .team-member-right {
        gap: 6px;
    }

        .team-member-right small {
            font-size: 9px;
        }
}

@media (max-width: 360px) {
    .team-stat {
        flex-direction: column;
        align-items: flex-start;
    }

        .team-stat strong {
            font-size: 12px;
        }

    .team-member-right small {
        display: none;
    }
}

/* Shared form controls for all pages */

.withdraw-input-box select,
.withdraw-input-box textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.withdraw-input-box textarea {
    resize: vertical;
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

@media (max-width: 600px) {
    .withdraw-input-box select,
    .withdraw-input-box textarea {
        font-size: 11px;
    }
}
