*,
*::before,
*::after {
    box-sizing: border-box;
}

.description-text {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.txpool-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.txpool-header-info {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fee-unit-label {
    color: #cbd5f5;
}

.fee-unit-toggle {
    cursor: pointer;
    background: rgba(56,189,248,0.12);
    color: #38bdf8;
    border: 1px solid rgba(56,189,248,0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.fee-unit-hint {
    font-size: 0.65rem;
    color: #64748b;
}
:root {
    color-scheme: dark;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.page {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.heading {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.heading h1 {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.16);
}

.status-badge.online {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.status-badge.syncing {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.status-badge.offline {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.subhead {
    font-size: 0.95rem;
    color: #94a3b8;
    word-break: break-word;
}

.key-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
    position: relative;
}

.metric-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.1;
}

.card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.card.txpool-card {
    width: 100%;
    max-width: none;
}

.card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #f8fafc;
}

.txpool-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.txpool-table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.txpool-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.txpool-table th,
.txpool-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

.txpool-table thead th {
    color: #cbd5f5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.txpool-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.05);
}

.txpool-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.08);
}

.txpool-hash {
    font-family: ui-monospace, monospace;
    color: #38bdf8;
    font-weight: 600;
}

.txpool-empty td {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}


.footer {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .page {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .key-metrics {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 2rem 1.25rem 3rem;
    }

    header {
        gap: 1.25rem;
        text-align: center;
    }

    .heading {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .heading h1 {
        font-size: 2rem;
    }

    .status-badge {
        align-self: center;
    }

    .description-text {
        font-size: 1rem;
        text-align: center;
    }

    .subhead {
        font-size: 0.85rem;
        text-align: center;
    }

    .key-metrics {
        justify-content: center;
        gap: 2.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .txpool-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    .page {
        padding: 1.75rem 1rem 2.5rem;
    }

    .heading h1 {
        font-size: 1.75rem;
    }

    .metric-value {
        font-size: 1.85rem;
    }

    .txpool-table {
        min-width: 0;
    }

    .txpool-table thead {
        display: none;
    }

    .txpool-table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .txpool-table tbody tr {
        display: grid;
        padding: 0.85rem 0.95rem;
        border: 1px solid rgba(148, 163, 184, 0.15);
        border-radius: 0.75rem;
        background: rgba(148, 163, 184, 0.04);
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
    }

    .txpool-table tbody tr:nth-child(even),
    .txpool-table tbody tr:hover {
        background: rgba(148, 163, 184, 0.06);
    }

    .txpool-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.45rem 0;
        font-size: 0.85rem;
        gap: 1rem;
    }

    .txpool-table tbody td::before {
        content: attr(data-label);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 600;
    }

    .txpool-hash {
        word-break: break-all;
    }

    .txpool-empty td {
        display: block;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 1.5rem 0.9rem 2.25rem;
    }

    .heading h1 {
        font-size: 1.6rem;
    }

    .description-text,
    .subhead {
        text-align: center;
    }
    .description-text {
        font-size: 0.95rem;
    }

    .key-metrics {
        gap: 1.75rem;
    }

    .metric-value {
        font-size: 1.65rem;
    }

    .txpool-header-info {
        font-size: 0.75rem;
    }

    .footer {
        font-size: 0.8rem;
    }
}
