.explorer-page {
    min-height: calc(100svh - var(--header-height, 72px));
    padding: 48px 0 72px;
}

.explorer-header { margin-bottom: 28px; }

.explorer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-accent-cyan);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.explorer-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-accent-cyan);
    box-shadow: 0 0 10px rgba(32, 217, 255, 0.45);
}

.explorer-header h1 {
    margin: 0 0 8px;
    color: var(--color-text-primary);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.explorer-header p {
    max-width: 680px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.explorer-search {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 36px;
}

.explorer-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.explorer-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.explorer-search input {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px 13px 46px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.explorer-search input:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 0 3px var(--color-accent-cyan-dim);
}

.explorer-search input::placeholder {
    color: var(--color-text-muted);
}

.explorer-search .btn {
    min-width: 108px;
    min-height: 50px;
}

.explorer-search-status {
    min-height: 20px;
    margin-top: -24px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.explorer-overview { margin-bottom: 40px; }

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

.explorer-section-heading h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.explorer-section-meta {
    color: var(--color-text-muted);
    font-size: 12px;
}

.explorer-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.explorer-stat {
    min-width: 0;
    padding: 22px 22px 20px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.explorer-stat:hover {
    border-color: var(--color-border-gold);
    transform: translateY(-2px);
}

.explorer-stat-value {
    display: block;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--color-accent-gold);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-stat-value.loading {
    opacity: 0.4;
    animation: pulse 1.5s ease-in-out infinite;
}

.source-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: var(--radius-pill);
    background: var(--color-bg-deep);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.source-badge.mock {
    color: var(--color-accent-cyan);
    border: 1px solid var(--color-accent-cyan-dim);
}

.source-badge.network {
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold-dim);
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.explorer-stat-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.explorer-stat-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.explorer-stat-status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.explorer-stat-status.live { color: var(--color-accent-cyan); }
.explorer-stat-status.demo { color: var(--color-accent-gold); }
.explorer-stat-status.offline {
    color: var(--color-status-offline, #ff6b6b);
}

.explorer-recent {
    overflow: hidden;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.explorer-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
}

.explorer-recent-header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 650;
}

.explorer-recent-header span {
    color: var(--color-text-muted);
    font-size: 12px;
}

.recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.3fr) minmax(100px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 10px 22px;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    transition: background-color 0.15s ease;
}

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

.recent-row[data-clickable="true"] {
    cursor: pointer;
}

.recent-row[data-clickable="true"]:hover,
.recent-row[data-clickable="true"]:focus-visible {
    background: var(--color-bg-surface-light);
}

.recent-row[data-clickable="true"]:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: -2px;
}

.recent-hash {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-primary);
    font-family: monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-epoch {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.recent-time {
    color: var(--color-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.explorer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.explorer-badge-finalized {
    background: var(--color-accent-gold-dim);
    color: var(--color-accent-gold);
}

.explorer-badge-processing {
    background: var(--color-accent-cyan-dim);
    color: var(--color-accent-cyan);
}

.explorer-badge-loading {
    background: var(--color-bg-surface-light);
    color: var(--color-text-muted);
}

.detail-view {
    display: none;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-md);
}

.detail-view.active { display: block; }

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-accent-cyan);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.detail-back:hover,
.detail-back:focus-visible {
    color: var(--color-accent-gold);
}

.detail-view h2 {
    margin: 0 0 16px;
    color: var(--color-text-primary);
    font-size: 22px;
    font-weight: 700;
}

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

.detail-item {
    padding: 12px 16px;
    background: var(--color-bg-deep);
    border-radius: var(--radius-sm);
}

.detail-item .label {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-item .value {
    display: block;
    color: var(--color-text-primary);
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

.detail-item .value.cyan { color: var(--color-accent-cyan); }
.detail-item .value.gold { color: var(--color-accent-gold); }

.explorer-empty[hidden] { display: none; }

@media (max-width: 900px) {
    .explorer-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recent-row {
        grid-template-columns: minmax(140px, 1fr) auto;
        gap: 8px 16px;
    }

    .recent-epoch { grid-column: 1; }
    .explorer-badge {
        grid-column: 2;
        grid-row: 1;
    }

    .recent-time {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

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

@media (max-width: 640px) {
    .explorer-search { flex-direction: column; }
    .explorer-search .btn { width: 100%; }
    .explorer-stats { gap: 10px; }
    .explorer-stat { padding: 18px; }

    .recent-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .explorer-stats { grid-template-columns: 1fr; }
    .explorer-header h1 { font-size: 28px; }
    .detail-view { padding: 20px; }
}
