:root {
    --bg: #0b0d10;
    --card: #13161b;
    --card-hover: #181c22;
    --border: #252a32;
    --text: #f5f7fa;
    --muted: #8c949f;
    --accent: #6ee7b7;
    --accent-soft: rgba(110, 231, 183, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 22px 16px 35px;
}

/* Top bar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.title-area {
    display: flex;
    align-items: center;
    gap: 13px;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.refresh-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--card);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s ease;
}

.refresh-btn:active {
    transform: scale(0.93);
    background: var(--card-hover);
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    font-size: 21px;
}

/* Summary */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.summary-card {
    min-height: 105px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--card);
}

.summary-card.wide {
    grid-column: 1 / -1;
    min-height: 92px;
}

.summary-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.summary-card strong {
    display: block;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

/* Hero */

.hero-earning {
    padding: 25px 20px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        var(--card),
        var(--accent-soft)
    );
}

.hero-earning span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hero-earning strong {
    display: block;
    margin: 8px 0;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.hero-earning small {
    color: var(--muted);
    font-size: 11px;
}

/* Sections */

.section {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 17px;
    font-weight: 700;
}

.section-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 8px;
    background: var(--card);
    color: var(--muted);
    font-size: 11px;
}

/* Network */

.network-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.network-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--card);
    transition: 0.2s ease;
}

.network-card:active {
    transform: scale(0.985);
    background: var(--card-hover);
}

.network-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 17px;
    font-weight: 800;
}

.network-info {
    flex: 1;
    min-width: 0;
}

.network-info h3 {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
}

.network-info span {
    color: var(--muted);
    font-size: 11px;
}

.network-arrow {
    color: var(--muted);
    font-size: 20px;
}

/* Stats */

.stats-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--card);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-row span {
    color: var(--muted);
    font-size: 13px;
}

.stat-row strong {
    font-size: 14px;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 3px;
    color: var(--muted);
    font-size: 10px;
}

.status-online {
    color: var(--accent);
}

/* Larger screens */

@media (min-width: 700px) {
    .app {
        padding-top: 40px;
    }

    .summary-card strong {
        font-size: 28px;
    }
}