.listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.listing-header {
    margin-bottom: 1.5rem;
}

.listing-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.25rem 0;
}

.listing-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
}

/* Filters */
.listing-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 0.35rem;
}

/* Stats */
.listing-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.15rem;
}

/* Table */
.listing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.listing-table thead {
    background-color: #f8f9fa;
}

.listing-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.listing-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.listing-table tbody tr:last-child td {
    border-bottom: none;
}

.listing-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Coin info */
.coin-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.coin-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.chain-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Exchange */
.exchange-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exchange-logo-sm {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* Trade type */
.trade-type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
}

.trade-type-badge.trade-type-spot {
    background-color: #dcfce7;
    color: #166534;
}

.trade-type-badge.trade-type-futures,
.trade-type-badge.trade-type-фьючерсы {
    background-color: #fef3c7;
    color: #92400e;
}

/* Date */
.listing-date {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.date-main {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.date-time {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.date-ago {
    font-size: 0.75rem;
    color: #3498db;
    font-weight: 500;
}

/* Exchanges list */
.exchanges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.exchange-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.exchange-logo-xs {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
}

.trade-types-mini {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 400;
    margin-left: 0.1rem;
}

.trade-types-delisted {
    text-decoration: line-through;
    opacity: 0.45;
}

/* Sections */
.listing-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.section-count {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Upcoming section */
.section-header-upcoming {
    border-bottom-color: #f59e0b;
}

.section-header-upcoming i {
    color: #f59e0b;
}

.section-header-upcoming .section-count {
    background-color: #fef3c7;
    color: #92400e;
}

.listing-table-upcoming {
    border: 2px solid #fde68a;
}

.listing-table-upcoming thead {
    background-color: #fffbeb;
}

.listing-row-upcoming {
    background-color: #fffef5;
}

.listing-row-upcoming:hover {
    background-color: #fefce8 !important;
}

.date-countdown {
    font-size: 0.75rem;
    color: #d97706;
    font-weight: 600;
}

/* Past section */
.section-header-past {
    border-bottom-color: #3498db;
}

.section-header-past i {
    color: #3498db;
}

.section-header-past .section-count {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Stat card upcoming */
.stat-card.stat-upcoming {
    border-left: 3px solid #f59e0b;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem !important;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .listing-container {
        padding: 1rem;
    }

    .listing-filters {
        flex-direction: column;
    }

    .listing-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 90px;
    }

    .exchanges-list {
        max-width: 200px;
    }
}


/* BingX max position refresh button */
.max-position-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.bingx-refresh-form {
    display: inline-flex;
    margin: 0;
}

.btn-bingx-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #2980b9;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bingx-refresh:hover {
    background: #eaf4fb;
    border-color: #2980b9;
}

.btn-bingx-refresh i {
    font-size: 0.9rem;
}

.max-position-tt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    margin-top: 2px;
}

.max-position-tt .trade-type-label {
    color: #7f8c8d;
}
