/* Explain: Updated styles for live network data display. */
.app-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-header__inner {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    padding-block: 0.85rem;
}

.app-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.app-brand__mark {
    border-radius: 10px;
    display: block;
    flex: 0 0 auto;
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.app-brand__name {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-search {
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    flex: 1 1 auto;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.app-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--pink-soft);
}

.app-search__input {
    background: transparent;
    border: none;
    color: var(--text-color);
    flex: 1 1 auto;
    font-size: 0.95rem;
    min-width: 0;
    outline: none;
}

.app-search__input::placeholder {
    color: var(--muted-color);
}

.app-search__btn {
    align-items: center;
    background: var(--text-color);
    border: none;
    border-radius: 11px;
    color: #FFFFFF;
    display: inline-flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    transition: background 200ms ease;
    width: 44px;
}

.app-search__btn:hover {
    background: #000000;
}

.app-menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    display: inline-flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    transition: all 200ms ease;
    width: 44px;
}

.app-menu-toggle:hover {
    background: var(--pink-soft);
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

.app-mobile-nav {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 1rem 1.1rem;
}

.app-mobile-nav.is-open {
    display: flex;
}

.app-mobile-nav__title {
    color: var(--muted-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.75rem 0.2rem;
    text-transform: uppercase;
}

.app-mobile-nav__link,
.app-mobile-nav__action {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-color);
    display: flex;
    font-weight: 600;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0 0.75rem;
    text-align: left;
    transition: all 180ms ease;
    width: 100%;
}

.app-mobile-nav__link:hover,
.app-mobile-nav__action:hover {
    background: var(--pink-soft);
    color: var(--primary-hover);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.filter-pill {
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
    color: var(--text-color);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    transition: all 200ms ease;
}

.filter-pill:hover {
    border-color: #D3D7DE;
}

.filter-pill__label {
    color: var(--muted-color);
    font-weight: 500;
}

.filter-pill strong {
    font-weight: 700;
}

.filter-pill i {
    color: var(--muted-color);
    font-size: 0.7rem;
    transition: transform 200ms ease;
}

details[open] > .filter-pill i {
    transform: rotate(180deg);
}

.filter-menu {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    display: block;
    margin-top: 0.5rem;
    min-width: 13rem;
    padding: 0.4rem;
    z-index: 30;
}

.filter-menu li {
    list-style: none;
}

.filter-menu__item {
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    text-align: left;
    transition: all 160ms ease;
    width: 100%;
}

.filter-menu__item:hover,
.filter-menu__item:focus-visible {
    background: var(--pink-soft);
    color: var(--primary-hover);
    outline: none;
}

.search-status {
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 1.25rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.search-status.is-error {
    color: #C2410C;
}

.search-status.is-success {
    color: var(--primary-hover);
}

.tx-card {
    animation: cardIn 500ms ease both;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: clamp(1.25rem, 4vw, 2rem);
}

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

.tx-token {
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 60px;
    overflow: hidden;
    width: 60px;
}

.tx-token__img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.tx-unit {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.5rem 1.1rem;
}

.tx-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 1.5rem;
}

.tx-broadcast {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.tx-field {
    margin-top: 1.6rem;
}

.tx-field__label {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
}

.tx-hash {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tx-hash__text {
    color: var(--muted-color);
    flex: 1 1 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.65;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.tx-copy {
    background: transparent;
    border: none;
    color: var(--muted-color);
    flex: 0 0 auto;
    padding: 0.25rem;
    transition: color 160ms ease;
}

.tx-copy:hover,
.tx-copy.is-copied {
    color: var(--primary-color);
}

.tx-stats {
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1.4rem;
}

.tx-stat {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.tx-stat__label {
    color: var(--muted-color);
    font-weight: 600;
}

.tx-stat__value {
    color: var(--text-color);
    text-align: right;
}

.tx-stat__value strong {
    font-family: var(--font-heading);
    font-weight: 700;
}

.tx-stat__fiat {
    color: var(--muted-color);
}

.tx-parties {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.tx-party {
    align-items: baseline;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 5rem 1fr;
}

.tx-party__label {
    color: var(--text-color);
    font-weight: 700;
}

.tx-party__value {
    color: var(--muted-color);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tx-status {
    align-items: center;
    background: var(--warning-soft);
    border-radius: 999px;
    color: var(--warning-color);
    display: inline-flex;
    gap: 0.4rem;
    font-weight: 700;
    margin-top: 1.25rem;
    padding: 0.6rem 1.15rem;
}

.tx-status__label {
    color: var(--muted-color);
    font-weight: 600;
}

.tx-steps {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem auto 0;
    max-width: 560px;
}

.tx-step {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
    text-align: center;
}

.tx-step__circle {
    align-items: center;
    background: var(--step-active-color);
    border-radius: 50%;
    color: #FFFFFF;
    display: inline-flex;
    font-size: 1.05rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.tx-step__circle--inactive {
    background: var(--step-inactive-color);
}

.tx-step__label {
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.tx-step__line {
    background: var(--step-active-color);
    border-radius: 999px;
    flex: 1 1 auto;
    height: 4px;
    margin-top: 22px;
    max-width: 64px;
    min-width: 14px;
}

.tx-spinner {
    animation: txSpin 0.9s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    display: block;
    height: 22px;
    width: 22px;
}

@keyframes txSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 640px) {
    .tx-steps {
        gap: 1.2rem;
    }

    .tx-step__circle {
        font-size: 1.35rem;
        height: 62px;
        width: 62px;
    }

    .tx-step__label {
        font-size: 0.95rem;
    }

    .tx-step__line {
        margin-top: 29px;
        max-width: 80px;
    }
}

.tx-note {
    align-items: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1.4rem;
}

.tx-note__icon {
    align-items: center;
    background: linear-gradient(140deg, #F6C3C6, #F0A0A6);
    border-radius: 16px;
    color: #FFFFFF;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.tx-note__icon--check {
    background: var(--text-color);
    border-radius: 999px;
    font-size: 0.9rem;
    height: 34px;
    width: 34px;
}

.tx-note__text {
    color: var(--muted-color);
    line-height: 1.5;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tx-confirm {
    align-items: center;
    background: #EAF1FC;
    border-radius: var(--radius-lg);
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.15rem);
    margin-top: 1.5rem;
    padding: clamp(0.9rem, 3vw, 1.35rem);
}

.tx-confirm__icon {
    align-items: center;
    background: #DCE7FA;
    border-radius: 18px;
    color: #1C6FE3;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    height: clamp(52px, 15vw, 70px);
    justify-content: center;
    width: clamp(52px, 15vw, 70px);
}

.tx-confirm__body {
    border-left: 3px solid #C6D6F1;
    min-width: 0;
    padding-left: clamp(0.75rem, 3vw, 1.1rem);
}

.tx-confirm__title {
    color: #14206E;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 4vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.tx-confirm__text {
    color: #1B3070;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 0.6rem;
    overflow-wrap: anywhere;
}

.footer-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-link {
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.search-hero {
    padding-block: clamp(2rem, 6vw, 3.5rem);
}

.search-hero__eyebrow {
    align-items: center;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.45rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-hero__title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 6.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 0.75rem;
}

.search-hero__sub {
    color: var(--muted-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.85rem;
    max-width: 48ch;
}

.search-hero__form {
    margin-top: 1.75rem;
}

.search-hero__field {
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 0.6rem;
    padding: 0.35rem 0.35rem 0.35rem 1.1rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-hero__field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--pink-soft);
}

.search-hero__icon {
    color: var(--muted-color);
    flex: 0 0 auto;
}

.search-hero__input {
    background: transparent;
    border: none;
    color: var(--text-color);
    flex: 1 1 auto;
    font-size: 1rem;
    min-width: 0;
    outline: none;
    padding-block: 0.85rem;
}

.search-hero__input::placeholder {
    color: var(--muted-color);
}

.search-hero__submit {
    background: var(--text-color);
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    flex: 0 0 auto;
    font-weight: 700;
    min-height: 48px;
    padding: 0 1.35rem;
    transition: background 200ms ease;
}

.search-hero__submit:hover {
    background: #000000;
}

.search-hero__status {
    margin-top: 1rem;
}

.search-hero__samples {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.search-hero__samples-label {
    color: var(--muted-color);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.sample-chip {
    align-items: flex-start;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 44px;
    padding: 0.6rem 1rem;
    text-align: left;
    transition: all 200ms ease;
}

.sample-chip:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(22, 24, 29, 0.07);
    transform: translateY(-1px);
}

.sample-chip__net {
    align-items: center;
    color: var(--text-color);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.4rem;
}

.sample-chip__net i {
    color: var(--primary-color);
}

.sample-chip__val {
    color: var(--muted-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.explorer-result {
    display: none;
}

.explorer-result.is-visible {
    display: block;
}

.result-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.result-bar__text {
    align-items: center;
    color: var(--primary-hover);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.45rem;
    margin: 0;
}

.result-bar__back {
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-color);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 1.1rem;
    transition: all 200ms ease;
}

.result-bar__back:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

.tx-summary {
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.4rem;
}

.tx-summary__title {
    align-items: center;
    color: var(--text-color);
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.tx-summary__title i {
    color: var(--primary-color);
}

.tx-summary__text {
    color: var(--muted-color);
    line-height: 1.65;
    margin-top: 0.65rem;
    overflow-wrap: anywhere;
}

.tx-summary__text span {
    color: var(--text-color);
    font-weight: 600;
}

.live-panel {
    background: linear-gradient(165deg, #FFFFFF 0%, #FBEFF0 100%);
    border-block: 1px solid var(--border-color);
}

.live-panel__head {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.live-panel__eyebrow {
    align-items: center;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    gap: 0.45rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-dot {
    animation: livePulse 2s ease-out infinite;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.55);
    display: inline-block;
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

@keyframes livePulse {
    70% {
        box-shadow: 0 0 0 9px rgba(15, 157, 88, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 157, 88, 0);
    }
}

.live-panel__title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 0.4rem;
}

.live-panel__updated {
    color: var(--muted-color);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.live-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.35rem;
}

.live-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(22, 24, 29, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 118px;
    padding: 1rem 1.05rem;
    transition: all 250ms ease;
}

.live-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(22, 24, 29, 0.09);
    transform: translateY(-2px);
}

.live-card__icon {
    align-items: center;
    background: var(--pink-soft);
    border-radius: 12px;
    color: var(--primary-color);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.live-card__label {
    color: var(--muted-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.live-card__value {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 3.4vw, 1.28rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0;
    margin-top: auto;
    overflow-wrap: anywhere;
}

.live-card__value.is-live {
    color: var(--text-color);
}

.live-card__value.is-error {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.live-skeleton {
    animation: liveShimmer 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, #EDEFF3 25%, #E1E5EC 37%, #EDEFF3 63%);
    background-size: 400% 100%;
    border-radius: 8px;
    display: block;
    height: 1.1rem;
    width: 72%;
}

@keyframes liveShimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.live-panel__note {
    color: var(--muted-color);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

@media (max-width: 719px) {
    .live-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 720px) {
    .live-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .live-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

