.lft-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.lft-title {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 6px;
}

.lft-subtitle {
    font-size: 14px;
    color: #556575;
    margin-top: 0;
    margin-bottom: 20px;
}

.lft-table-container {
    width: 100%;
    min-height: 743px; /* Prevents CLS before JS fetches data */
    overflow-x: auto;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eef2f4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lft-table {
    width: 100%;
    table-layout: fixed; /* Anti-CLS column locking */
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

/* Balanced 4-column distribution */
.lft-table th:nth-child(1), .lft-table td:nth-child(1) { width: 40%; }
.lft-table th:nth-child(2), .lft-table td:nth-child(2) { width: 20%; }
.lft-table th:nth-child(3), .lft-table td:nth-child(3) { width: 20%; }
.lft-table th:nth-child(4), .lft-table td:nth-child(4) { width: 20%; }

.lft-table th {
    background-color: #f7f9fa;
    color: #333333;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f4;
}

.lft-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f4;
    color: #222222;
    vertical-align: middle;
    height: 58px; /* Fixed row height to prevent dynamic reflow */
    box-sizing: border-box;
}

.lft-table tbody tr:last-child td {
    border-bottom: none;
}

.lft-table tbody tr:hover {
    background-color: #fcfdfe;
}

.lft-currency-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.lft-flag {
    width: 24px;
    height: 18px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lft-rate {
    font-weight: 600;
    font-family: monospace, monospace;
    font-size: 15px;
}

/* 🟢 Positive 24h Change (Green) */
.lft-pos {
    color: #10b981 !important;
    font-weight: 600;
}

/* 🔴 Negative 24h Change (Red) */
.lft-neg {
    color: #ef4444 !important;
    font-weight: 600;
}

.lft-loading, .lft-error {
    text-align: center;
    padding: 25px !important;
    color: #777777;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .lft-table th, .lft-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}