/**
 * Marché crypto — UI maquette Coin360 / Liofo (2026-06-15 v3).
 */

.liofo-crypto-prices-page {
    padding: 0.35rem 0 2.75rem;
    background:
        radial-gradient(ellipse 90% 55% at 18% -8%, rgba(61, 178, 255, 0.07), transparent 52%),
        radial-gradient(ellipse 70% 45% at 88% 12%, rgba(0, 191, 99, 0.04), transparent 48%);
}

.liofo-crypto-prices-inner {
    max-width: 1220px;
}

.liofo-cp-disclaimer {
    margin: 0 0 0.85rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.48);
}

.liofo-cp-panel {
    position: relative;
    border-radius: 20px;
    border: none;
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.96) 0%, rgba(6, 9, 16, 0.98) 100%);
    box-shadow: none;
    overflow: hidden;
}

.liofo-cp-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.85) 20%, rgba(61, 178, 255, 0.95) 50%, rgba(0, 229, 255, 0.85) 80%, transparent);
    pointer-events: none;
    z-index: 2;
}

.liofo-cp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: none;
}

.liofo-cp-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.1rem;
    min-width: 0;
}

.liofo-cp-panel-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.liofo-cp-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.liofo-cp-tab,
.liofo-cp-period {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.38rem 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}

.liofo-cp-tab.is-active {
    border-color: rgba(0, 229, 255, 0.72);
    background: rgba(0, 229, 255, 0.08);
    color: #b8f4ff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.14);
}

.liofo-cp-tab-ico {
    font-size: 0.72rem;
    opacity: 0.85;
}

.liofo-cp-period {
    cursor: default;
}

.liofo-cp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.liofo-cp-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: min(320px, 72vw);
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.32);
}

.liofo-cp-search-icon {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.95rem;
}

.liofo-cp-search {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.84rem;
    outline: none;
    min-width: 0;
}

.liofo-cp-search::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.liofo-cp-filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    cursor: not-allowed;
    opacity: 0.6;
}

.liofo-cp-table-scroll {
    overflow-x: auto;
}

.liofo-cp-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 0.84rem;
}

.liofo-cp-table thead th {
    padding: 0.72rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(142, 150, 163, 0.95);
    border-bottom: none;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.18);
}

.liofo-cp-table thead th:nth-child(n+4):nth-child(-n+9) {
    text-align: right;
}

.liofo-cp-table tbody tr {
    border-bottom: none;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}

.liofo-cp-table tbody td {
    padding: 0.82rem 0.8rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none !important;
}

.liofo-cp-table tbody td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.liofo-cp-table tbody td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.liofo-cp-table tbody tr:hover,
.liofo-cp-table tbody tr.is-row-active {
    background: transparent;
    box-shadow: none;
}

.liofo-cp-fav {
    width: 2.2rem;
    text-align: center;
}

.liofo-cp-star {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.15rem;
}

.liofo-cp-star.is-fav {
    color: #ffd866;
    text-shadow: 0 0 8px rgba(255, 216, 102, 0.45);
}

.liofo-cp-rank {
    width: 2.4rem;
    color: rgba(142, 150, 163, 0.95);
    font-size: 0.82rem;
}

.liofo-cp-asset {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 210px;
}

.liofo-cp-logo {
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.liofo-cp-asset-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.liofo-cp-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liofo-cp-symbol {
    font-size: 0.72rem;
    color: rgba(142, 150, 163, 0.95);
    letter-spacing: 0.03em;
}

.liofo-cp-num,
.liofo-cp-chg,
.liofo-cp-price {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.liofo-cp-price {
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
}

.liofo-cp-pct {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.liofo-cp-pct.is-up {
    color: #00ffa3;
}

.liofo-cp-pct.is-down {
    color: #ff4d4d;
}

.liofo-cp-pct.is-flat {
    color: rgba(142, 150, 163, 0.95);
}

.liofo-cp-tri {
    font-size: 0.62rem;
    line-height: 1;
}

.liofo-cp-spark-cell {
    width: 132px;
    text-align: right;
}

.liofo-cp-sparkline {
    display: inline-block;
    width: 120px;
    height: 40px;
    vertical-align: middle;
}

.liofo-cp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.liofo-cp-live {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: rgba(142, 150, 163, 0.95);
}

.liofo-cp-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ffa3;
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.8);
}

.liofo-cp-more {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.liofo-cp-more:hover {
    border-color: rgba(0, 229, 255, 0.45);
    color: #b8f4ff;
}

.liofo-cp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 1.15rem 1.1rem;
    flex-wrap: wrap;
}

.liofo-cp-page-link {
    color: #3db2ff;
    text-decoration: none;
    font-size: 0.82rem;
}

.liofo-cp-page-status {
    font-size: 0.8rem;
    color: rgba(142, 150, 163, 0.95);
}

.liofo-cp-empty {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.liofo-cp-row.is-hidden {
    display: none;
}

@media (max-width: 820px) {
    .liofo-cp-toolbar-left {
        width: 100%;
    }
    .liofo-cp-toolbar-right {
        width: 100%;
        margin-left: 0;
    }
    .liofo-cp-search-wrap {
        flex: 1;
        min-width: 0;
    }
}

/* Page Transactions — même panneau / tableau que Marché crypto (2026-06-15) */
#my-transac-table .liofo-tx-panel {
    margin-top: 0.35rem;
    overflow: visible;
}

#my-transac-table .liofo-cp-table-scroll,
#my-transac-table .liofo-tx-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

#my-transac-table .liofo-tx-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 0.84rem;
}

#my-transac-table .liofo-tx-table thead th {
    padding: 0.72rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(142, 150, 163, 0.95);
    border-bottom: none;
    white-space: pre-line;
    background: rgba(0, 0, 0, 0.18);
}

#my-transac-table .liofo-tx-table tbody tr {
    border-bottom: none;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}

#my-transac-table .liofo-tx-table tbody td {
    padding: 0.82rem 0.8rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    border: none !important;
    background: transparent;
}

#my-transac-table .liofo-tx-table tbody td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

#my-transac-table .liofo-tx-table tbody td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#my-transac-table .liofo-tx-table tbody tr:hover,
#my-transac-table .liofo-tx-table tbody tr.clickable-row:hover {
    background: transparent !important;
    box-shadow: none;
    color: inherit !important;
}

#my-transac-table .transactions-table-counter {
    margin-bottom: 0.65rem;
    border: none;
    background: transparent;
    padding-left: 0.15rem;
    color: rgba(142, 150, 163, 0.95);
    font-size: 0.82rem;
}

#my-transac-table .transactions-table-counter strong {
    color: #fff;
}

#my-transac-table .tableau-defilable-container .pagination-container {
    background: transparent;
}

/* Panneaux data partagés (réf. Marché crypto) */
.liofo-data-panel .table-style.liofo-cp-table,
.liofo-data-panel .liofo-cp-table,
.liofo-data-panel .table-style,
#crypto-table-container .table-style,
.wallet-assets-table-container .table-style,
.wallet-details-container .table-style {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 0.84rem;
}

.liofo-data-panel .table-style thead th,
.liofo-data-panel .liofo-cp-table thead th {
    padding: 0.72rem 0.8rem;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(142, 150, 163, 0.95);
    border-bottom: none;
    background: rgba(0, 0, 0, 0.18);
}

.liofo-data-panel .table-style tbody tr,
.liofo-data-panel .liofo-cp-table tbody tr,
#crypto-table-container .table-style tbody tr,
.wallet-assets-table-container .table-style tbody tr,
.wallet-details-container .table-style tbody tr {
    border-bottom: none;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}

.liofo-data-panel .table-style tbody td,
.liofo-data-panel .liofo-cp-table tbody td,
#crypto-table-container .table-style tbody td,
.wallet-assets-table-container .table-style tbody td,
.wallet-details-container .table-style tbody td {
    padding: 0.82rem 0.8rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    border: none !important;
    background: transparent;
}

.liofo-data-panel .table-style tbody td:first-child,
.liofo-data-panel .liofo-cp-table tbody td:first-child,
#crypto-table-container .table-style tbody td:first-child,
.wallet-assets-table-container .table-style tbody td:first-child,
.wallet-details-container .table-style tbody td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.liofo-data-panel .table-style tbody td:last-child,
.liofo-data-panel .liofo-cp-table tbody td:last-child,
#crypto-table-container .table-style tbody td:last-child,
.wallet-assets-table-container .table-style tbody td:last-child,
.wallet-details-container .table-style tbody td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.liofo-data-panel .table-style tbody tr:hover,
.liofo-data-panel .liofo-cp-table tbody tr:hover,
#crypto-table-container .table-style tbody tr:hover,
.wallet-assets-table-container .table-style tbody tr:hover,
.wallet-details-container .table-style tbody tr:hover {
    background: transparent !important;
    box-shadow: none;
}

.liofo-tx-actif-logo,
.liofo-tx-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
}

.liofo-tx-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(142, 150, 163, 0.8);
    font-size: 0.9rem;
}

#my-transac-table .liofo-transaction-logo-cell,
#my-transac-table .liofo-transaction-logo-col {
    width: 2.2rem;
    min-width: 2.2rem;
    max-width: 2.2rem;
    text-align: center;
    white-space: nowrap;
    padding-left: 0.45rem !important;
    padding-right: 0.35rem !important;
}

#my-transac-table .liofo-transaction-action-col,
#my-transac-table .liofo-transaction-action-cell {
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    text-align: center;
    white-space: nowrap;
    padding-left: 0.35rem !important;
    padding-right: 0.45rem !important;
}

.liofo-tx-delete-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 8px;
    color: #ff5a5a;
    transition: background 0.15s ease, color 0.15s ease;
}

.liofo-tx-delete-btn:hover,
.liofo-tx-delete-btn:focus-visible {
    background: rgba(255, 68, 68, 0.14) !important;
    color: #ff7070 !important;
    transform: none !important;
    box-shadow: none !important;
}

.liofo-tx-delete-icon {
    display: block;
    pointer-events: none;
}

/* Mes wallets / Mes cryptomonnaies — tableau sans cadre panneau (style lignes conservé) */
.liofo-cp-panel.liofo-cp-panel--flush {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.liofo-cp-panel.liofo-cp-panel--flush::before {
    display: none !important;
}

.liofo-cp-panel.liofo-cp-panel--flush .liofo-cp-table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

/* LIOFO-TABLE-ROW-HOVER-V2 — fond uniforme, contour #3DB2FF sur la ligne entière (sans séparation colonnes) */
.liofo-cp-table tbody tr:hover td,
.liofo-cp-table tbody tr.is-row-active td,
#my-transac-table .liofo-tx-table tbody tr:hover td,
#my-transac-table .liofo-tx-table tbody tr.clickable-row:hover td,
.liofo-data-panel .table-style tbody tr:hover td,
.liofo-data-panel .liofo-cp-table tbody tr:hover td,
#crypto-table-container table.table-style tbody tr:hover td,
.wallet-assets-table-container .table-style tbody tr:hover td,
.wallet-details-container .table-style tbody tr:hover td {
    background-color: rgba(61, 178, 255, 0.08) !important;
    background-image: none !important;
    box-shadow: none !important;
    border-style: solid !important;
    border-color: #3DB2FF !important;
    border-width: 1px 0 !important;
    color: rgba(255, 255, 255, 0.92);
}

.liofo-cp-table tbody tr:hover td:first-child,
.liofo-cp-table tbody tr.is-row-active td:first-child,
#my-transac-table .liofo-tx-table tbody tr:hover td:first-child,
#my-transac-table .liofo-tx-table tbody tr.clickable-row:hover td:first-child,
.liofo-data-panel .table-style tbody tr:hover td:first-child,
.liofo-data-panel .liofo-cp-table tbody tr:hover td:first-child,
#crypto-table-container table.table-style tbody tr:hover td:first-child,
.wallet-assets-table-container .table-style tbody tr:hover td:first-child,
.wallet-details-container .table-style tbody tr:hover td:first-child {
    border-left-width: 1px !important;
}

.liofo-cp-table tbody tr:hover td:last-child,
.liofo-cp-table tbody tr.is-row-active td:last-child,
#my-transac-table .liofo-tx-table tbody tr:hover td:last-child,
#my-transac-table .liofo-tx-table tbody tr.clickable-row:hover td:last-child,
.liofo-data-panel .table-style tbody tr:hover td:last-child,
.liofo-data-panel .liofo-cp-table tbody tr:hover td:last-child,
#crypto-table-container table.table-style tbody tr:hover td:last-child,
.wallet-assets-table-container .table-style tbody tr:hover td:last-child,
.wallet-details-container .table-style tbody tr:hover td:last-child {
    border-right-width: 1px !important;
}

/* LIOFO-TABLE-ROW-SHAPE-V3 — arrondi lignes (réf. Transactions) sur toutes pages data */
.liofo-crypto-prices-page .liofo-cp-table,
.liofo-cp-panel .liofo-cp-table,
#my-transac-table .liofo-tx-table,
#crypto-table-container table.table-style.liofo-cp-table,
#crypto-table-container table.table-style,
.wallet-assets-table-container .table-style.liofo-cp-table,
.wallet-assets-table-container .table-style,
.wallet-details-container .table-style {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
}

.liofo-crypto-prices-page .liofo-cp-table tbody tr,
.liofo-cp-panel .liofo-cp-table tbody tr,
#my-transac-table .liofo-tx-table tbody tr,
#crypto-table-container table.table-style tbody tr,
.wallet-assets-table-container .table-style tbody tr,
.wallet-details-container .table-style tbody tr {
    background: transparent !important;
    background-color: transparent !important;
}

/* LIOFO-TABLE-ZEBRA-V4 — zébrage sur les cellules (compatible border-spacing V3) */
.liofo-crypto-prices-page .liofo-cp-table tbody tr:nth-child(odd):not(.wallet-small-assets-toggle) td,
.liofo-cp-panel .liofo-cp-table tbody tr:nth-child(odd):not(.wallet-small-assets-toggle) td,
#my-transac-table .liofo-tx-table tbody tr:nth-child(odd) td,
#crypto-table-container table.table-style tbody tr:nth-child(odd):not(.wallet-small-assets-toggle) td,
.wallet-assets-table-container .table-style tbody tr:nth-child(odd):not(.wallet-small-assets-toggle) td,
.wallet-details-container .table-style tbody tr:nth-child(odd):not(.wallet-small-assets-toggle) td {
    background-color: #060503 !important;
}

.liofo-crypto-prices-page .liofo-cp-table tbody tr:nth-child(even):not(.wallet-small-assets-toggle) td,
.liofo-cp-panel .liofo-cp-table tbody tr:nth-child(even):not(.wallet-small-assets-toggle) td,
#my-transac-table .liofo-tx-table tbody tr:nth-child(even) td,
#crypto-table-container table.table-style tbody tr:nth-child(even):not(.wallet-small-assets-toggle) td,
.wallet-assets-table-container .table-style tbody tr:nth-child(even):not(.wallet-small-assets-toggle) td,
.wallet-details-container .table-style tbody tr:nth-child(even):not(.wallet-small-assets-toggle) td {
    background-color: #0A1120 !important;
}

.wallet-assets-table-container .table-style tbody tr:hover,
.wallet-assets-table-container .table-style tbody tr:hover td,
#crypto-table-container table.table-style tbody tr:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.wallet-assets-table-container .table-style tbody tr:hover td {
    color: rgba(255, 255, 255, 0.9) !important;
}

.liofo-crypto-prices-page .liofo-cp-table tbody td:first-child,
.liofo-cp-panel .liofo-cp-table tbody td:first-child,
#my-transac-table .liofo-tx-table tbody td:first-child,
#crypto-table-container table.table-style tbody td:first-child,
.wallet-assets-table-container .table-style tbody td:first-child,
.wallet-details-container .table-style tbody td:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.liofo-crypto-prices-page .liofo-cp-table tbody td:last-child,
.liofo-cp-panel .liofo-cp-table tbody td:last-child,
#my-transac-table .liofo-tx-table tbody td:last-child,
#crypto-table-container table.table-style tbody td:last-child,
.wallet-assets-table-container .table-style tbody td:last-child,
.wallet-details-container .table-style tbody td:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.liofo-cp-panel:not(.liofo-cp-panel--flush) {
    overflow: visible;
}
