:root {
    --bg: #050505;
    --panel: #0b0b0c;
    --panel-2: #101011;
    --border: rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.20);
    --text: #f5f5f5;
    --muted: #888b91;
    --soft: #b9bbc0;
    --green: #abffd1;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 70% -10%, rgba(255,255,255,.08), transparent 32%),
        #050505;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

.mono {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.topbar {
    height: 84px;
    padding: 0 5vw;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -3px;
}

.brand strong {
    display: block;
    font-size: 13px;
    letter-spacing: .22em;
}

.brand span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: .24em;
}

.network-pill {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .18em;
    display: flex;
    gap: 8px;
    align-items: center;
}

.live-dot,
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 12px rgba(171,255,209,.65);
    display: inline-block;
}

.offline-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #555;
    display: inline-block;
}

.search-section {
    padding: 28px 5vw 0;
}

.search-box {
    width: min(900px, 100%);
    margin: auto;
    display: flex;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 14px;
    overflow: hidden;
}

.search-box:focus-within {
    border-color: var(--border-strong);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: white;
    padding: 18px 20px;
    font-size: 14px;
}

.search-box button {
    border: 0;
    border-left: 1px solid var(--border);
    background: white;
    color: black;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
}

.container {
    width: min(1500px, 90vw);
    margin: auto;
    padding-bottom: 90px;
}

.hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 5;
}

.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
}

.hero h1 {
    margin: 18px 0;
    max-width: 700px;
    font-size: clamp(64px, 8vw, 120px);
    line-height: .86;
    letter-spacing: -.07em;
}

.hero h1 span {
    color: #66686b;
}

.hero p {
    width: min(580px, 100%);
    color: var(--soft);
    font-size: 16px;
    line-height: 1.7;
}

.hero-symbol {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-symbol img {
    width: min(490px, 85%);
    position: relative;
    z-index: 3;
    filter:
        drop-shadow(0 0 40px rgba(255,255,255,.08))
        grayscale(1);
}

.height-label {
    position: absolute;
    top: 80px;
    right: 0;
    text-align: right;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .18em;
    z-index: 5;
}

.height-label strong {
    display: block;
    color: white;
    margin-top: 6px;
    font-size: 30px;
    letter-spacing: -.04em;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}

.orbit-one {
    width: 360px;
    height: 360px;
}

.orbit-two {
    width: 440px;
    height: 440px;
    opacity: .35;
}

.metrics {
    padding: 36px 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-bottom: 1px solid var(--border);
}

.metric-card {
    padding: 12px 28px;
    min-height: 105px;
    border-right: 1px solid var(--border);
}

.metric-card:first-child {
    padding-left: 0;
}

.metric-card:last-child {
    border-right: 0;
}

.metric-card span,
.metric-card small {
    color: var(--muted);
    display: block;
    font-size: 9px;
    letter-spacing: .18em;
}

.metric-card strong {
    display: block;
    margin: 13px 0 8px;
    font-size: clamp(20px, 2vw, 34px);
    letter-spacing: -.04em;
}

.section-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.panel-header {
    min-height: 95px;
    border-bottom: 1px solid var(--border);
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h2 {
    margin: 6px 0 0;
    font-size: 21px;
}

.status-label {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--green);
}

.nodes {
    padding: 0 28px;
}

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

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

.node-name {
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
}

.node-row small {
    color: var(--muted);
    display: block;
    margin-top: 5px;
}

.node-data {
    text-align: right;
}

.node-data span {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.offline {
    color: var(--muted);
}

.consensus-status {
    padding: 34px 28px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.consensus-icon {
    width: 55px;
    height: 55px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.consensus-status p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.wide-panel {
    margin-top: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px 24px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .14em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 18px 24px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255,255,255,.025);
}

td a:hover {
    color: white;
    text-decoration: underline;
}

.success-badge,
.error-badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .10em;
}

.success-badge {
    color: var(--green);
    border: 1px solid rgba(171,255,209,.2);
    background: rgba(171,255,209,.05);
}

.error-badge {
    color: #ff9b9b;
    border: 1px solid rgba(255,155,155,.2);
}

.page-heading {
    padding: 80px 0 35px;
}

.page-heading h1 {
    font-size: clamp(45px, 7vw, 95px);
    margin: 10px 0;
    letter-spacing: -.06em;
}

.detail-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
}

.detail-row {
    padding: 22px 25px;
    display: grid;
    grid-template-columns: minmax(140px, .35fr) 1fr;
    gap: 25px;
    border-bottom: 1px solid var(--border);
}

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

.detail-row > span {
    color: var(--muted);
    font-size: 11px;
}

.detail-row strong {
    word-break: break-all;
    font-size: 13px;
}

.balance-row {
    padding: 28px;
}

.balance-row strong {
    display: block;
    font-size: 32px;
}

.balance-row small {
    color: var(--muted);
}

.message-panel pre {
    margin: 0;
    padding: 25px;
    color: #bfc2c6;
    overflow: auto;
    font-size: 12px;
}

.empty-state {
    padding: 40px 28px;
    color: var(--muted);
}

.not-found {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.not-found h1 {
    margin: 10px 0;
    font-size: clamp(55px, 8vw, 105px);
    letter-spacing: -.07em;
}

.not-found p {
    color: var(--muted);
}

.button-link {
    margin-top: 22px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 12px 18px;
}

.footer {
    min-height: 100px;
    border-top: 1px solid var(--border);
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .20em;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 50px;
    }

    .hero-symbol {
        min-height: 320px;
    }

    .metrics {
        grid-template-columns: repeat(2,1fr);
    }

    .metric-card:nth-child(2) {
        border-right: 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: 92vw;
    }

    .topbar {
        padding: 0 4vw;
    }

    .network-pill {
        display: none;
    }

    .search-section {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .search-box button {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero-symbol {
        min-height: 260px;
    }

    .orbit-one {
        width: 240px;
        height: 240px;
    }

    .orbit-two {
        width: 290px;
        height: 290px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        padding: 20px 10px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
}

/* Link back to KAPATRÊS main website */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-link {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.site-link:hover {
    background: rgba(255,255,255,.06);
    border-color: var(--border-strong);
}

.site-link span {
    margin-left: 5px;
}

@media (max-width: 600px) {
    .site-link {
        font-size: 8px;
        padding: 8px 10px;
    }
}
