/* Ultra-lightweight, 0-lag, high-performance CSS (< 3KB) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f1f6fb;
    color: #1e293b;
    min-height: 100vh;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    body {
        padding: 40px 24px;
    }
}

/* Main Container Card - 100% Solid background, NO blur, minimal render cost */
.main-card {
    width: 100%;
    max-width: 820px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .main-card {
        padding: 28px;
    }
}

@media (min-width: 768px) {
    .main-card {
        padding: 36px;
    }
}

/* Subtle World Map SVG watermark */
.map-watermark {
    position: absolute;
    top: -24px;
    right: -32px;
    width: 320px;
    pointer-events: none;
    opacity: 0.18;
    user-select: none;
}

@media (min-width: 768px) {
    .map-watermark {
        width: 384px;
    }
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .page-header {
        margin-bottom: 32px;
    }
}

.header-title {
    color: #0b2545;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .header-title {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .header-title {
        font-size: 28px;
    }
}

/* Section Box */
.section-box {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8eff7;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .section-box {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .section-box {
        padding: 24px;
        margin-bottom: 24px;
    }
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 18px;
    }
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .section-meta {
        font-size: 13px;
    }
}

.meta-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Grid Table */
.table-grid {
    width: 100%;
}

.table-header {
    background-color: #eef4fb;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

@media (min-width: 640px) {
    .table-header {
        padding: 12px 20px;
        font-size: 14px;
    }
}

.col-date-header {
    text-align: left;
    padding-left: 4px;
}

@media (min-width: 640px) {
    .col-date-header {
        text-align: center;
        padding-left: 0;
    }
}

.col-subtext {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
}

@media (min-width: 640px) {
    .col-subtext {
        display: inline;
        margin-left: 2px;
    }
}

/* Today Row */
.today-row {
    padding: 16px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .today-row {
        padding: 16px 20px;
        font-size: 16px;
    }
}

.today-date {
    color: #0b2545;
    text-align: left;
    padding-left: 4px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .today-date {
        text-align: center;
        padding-left: 0;
    }
}

/* History Rows */
.history-container {
    font-size: 14px;
}

@media (min-width: 768px) {
    .history-container {
        font-size: 15px;
    }
}

.history-row {
    padding: 14px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    /* High performance hover */
    transition: background-color 0.15s ease;
}

.history-row:hover {
    background-color: #f8fafc;
}

.history-row:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .history-row {
        padding: 14px 20px;
    }
}

.history-date {
    text-align: left;
    padding-left: 4px;
    color: #334155;
    font-weight: 500;
}

@media (min-width: 640px) {
    .history-date {
        text-align: center;
        padding-left: 0;
    }
}

/* Rates */
.rate-buy {
    color: #16a34a;
    font-weight: 600;
}

.rate-sell {
    color: #dc2626;
    font-weight: 600;
}

/* Show More Button */
.show-more-wrap {
    margin-top: 16px;
    padding-top: 4px;
}

.btn-show-more {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f0f6fd;
    color: #1d63d8;
    border: none;
    cursor: pointer;
    /* Composite-only transitions for 60fps */
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-show-more:hover {
    background-color: #e2effd;
    color: #144eb3;
}

.btn-show-more:active {
    opacity: 0.8;
}

.btn-show-more svg {
    width: 16px;
    height: 16px;
}

.no-more-text {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 0;
}

.loading-text {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    padding: 24px 0;
}

.hidden {
    display: none !important;
}

