:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --card: rgba(255, 255, 255, 0.065);
    --card-solid: #0e1b2f;
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #9caec7;
    --muted-soft: #6f819d;
    --primary: #1ee6ff;
    --secondary: #7c3cff;
    --success: #28f7a4;
    --warning: #ffae00;
    --danger: #ff5f7a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(30, 230, 255, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(124, 60, 255, 0.20), transparent 36%),
        linear-gradient(180deg, #07111f 0%, #08111e 45%, #050b14 100%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

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

a:hover {
    color: var(--primary);
}

/* TOP NETWORK BAR */

.top-network-bar {
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 13px;
}

.network-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--success);
    box-shadow: 0 0 12px rgba(40, 247, 164, 0.85);
}

/* HEADER */

.explorer-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--card-border);
    background: rgba(7, 17, 31, 0.88);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 28px rgba(30, 230, 255, 0.32);
    color: #fff;
    font-weight: 900;
}

.brand span {
    display: block;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--warning);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: var(--primary);
}

/* HERO */

.hero-section {
    padding: 34px 0 38px;
}

.hero-content {
    max-width: 920px;
}

.badge-soft {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(30, 230, 255, 0.10);
    border: 1px solid rgba(30, 230, 255, 0.25);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 950;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-content p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 26px;
}

/* SEARCH */

.search-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.search-card select,
.search-card input {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.085);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 52px;
}

.search-card select {
    width: 185px;
    cursor: pointer;
}

.search-card select option {
    color: #111827;
}

.search-card input {
    flex: 1;
}

.search-card input::placeholder {
    color: #7f91ad;
}

.search-card button {
    border: none;
    border-radius: 14px;
    padding: 0 28px;
    color: #001018;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--success));
    min-height: 52px;
    transition: 0.2s ease;
}

.search-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(30, 230, 255, 0.22);
}

.search-card button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* TESTNET ALERT */

.testnet-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 174, 0, 0.08);
    border: 1px solid rgba(255, 174, 0, 0.25);
    backdrop-filter: blur(12px);
}

.testnet-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 174, 0, 0.15);
    font-size: 19px;
}

.testnet-alert strong {
    display: block;
    color: #ffcc4d;
    margin-bottom: 3px;
}

.testnet-alert p {
    color: #c6d0df;
    font-size: 13px;
    line-height: 1.5;
}

.testnet-badge {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    background: var(--warning);
    color: #000;
    white-space: nowrap;
}

/* STATS */

.stats-section {
    padding-bottom: 20px;
}

.stat-card {
    height: 100%;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
}

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

.stat-card strong {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin: 6px 0;
}

.stat-card small {
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

/* TOKEN OVERVIEW */

.token-section {
    padding: 10px 0 22px;
}

.token-overview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(30, 230, 255, 0.10), rgba(124, 60, 255, 0.09)),
        rgba(255, 255, 255, 0.055);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
}

.section-label {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.token-overview-card h4 {
    margin: 0 0 6px;
    font-weight: 950;
}

.token-overview-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.token-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 12px;
}

.token-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.token-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.token-meta-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #fff;
}

/* PANELS */

.content-section {
    padding: 24px 0 70px;
}

.panel-card {
    height: 100%;
    padding: 20px 22px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.070), rgba(255, 255, 255, 0.045));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.panel-header h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.panel-header a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

/* EXPLORER ROW */

.explorer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.explorer-row:last-child {
    border-bottom: none;
}

.row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
}

.block-icon {
    background: rgba(30, 230, 255, 0.12);
    color: var(--primary);
}

.tx-icon {
    background: rgba(124, 60, 255, 0.16);
    color: #b994ff;
}

.row-main {
    flex: 1;
    min-width: 0;
}

.row-title {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-meta {
    margin-top: 4px;
    color: var(--muted-soft);
    font-size: 12px;
}

.row-side {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.row-side strong {
    display: block;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.row-side span {
    display: block;
    margin-top: 4px;
    color: #7f91ad;
    font-size: 12px;
}

.amount-side strong {
    color: var(--success);
    font-size: 14px;
}

.method-badge {
    display: inline-block;
    padding: 3px 7px;
    margin-right: 5px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(30, 230, 255, 0.10);
    border: 1px solid rgba(30, 230, 255, 0.18);
    font-size: 11px;
    font-weight: 900;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* LEGACY SUPPORT */

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.list-item strong {
    font-size: 14px;
}

.list-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.tx-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted-soft);
    font-size: 12px;
}

/* FOOTER */

footer {
    padding: 25px 0;
    color: var(--muted);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    nav {
        gap: 14px;
    }

    nav a {
        font-size: 13px;
    }

    .token-overview-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .token-meta-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-network-bar {
        font-size: 12px;
    }

    .explorer-header {
        padding: 14px 0;
    }

    nav {
        display: none;
    }

    .hero-section {
        padding: 26px 0 30px;
    }

    .hero-content h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .search-card {
        flex-direction: column;
    }

    .search-card select,
    .search-card input,
    .search-card button {
        width: 100%;
        min-height: 50px;
    }

    .testnet-alert {
        flex-direction: column;
        align-items: flex-start;
    }

    .testnet-badge {
        align-self: flex-start;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card strong {
        font-size: 20px;
    }

    .token-meta-grid {
        grid-template-columns: 1fr;
    }

    .explorer-row {
        align-items: flex-start;
    }

    .row-sub {
        white-space: normal;
    }

    .row-side {
        min-width: 72px;
    }

    .panel-card {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .brand span {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .row-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .row-side {
        min-width: 60px;
    }

    .row-side strong,
    .row-side span {
        font-size: 11px;
    }
}

.token-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.token-page-header h1 {
    margin: 0 0 6px;
    font-weight: 950;
}

.token-page-header p {
    margin: 0;
    color: var(--muted);
}

.create-token-btn {
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #001018;
    font-weight: 900;
    white-space: nowrap;
}

.token-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.token-toolbar h5 {
    margin: 0;
    font-weight: 900;
}

.token-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.token-toolbar input {
    width: 320px;
    max-width: 100%;
    border: 1px solid var(--card-border);
    outline: none;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

.token-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.token-table th {
    padding: 13px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 1px solid var(--card-border);
}

.token-table td {
    padding: 15px 12px;
    color: #dbeafe;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-name-cell strong {
    display: block;
    color: #fff;
}

.token-name-cell span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.token-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 900;
}

.token-symbol {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(30, 230, 255, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.status-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(40, 247, 164, 0.12);
    color: var(--success);
    font-size: 11px;
    font-weight: 900;
}

.empty-token {
    padding: 30px;
    text-align: center;
}

.empty-token p {
    margin: 6px 0 0;
    color: var(--muted);
}

@media (max-width: 768px) {

    .token-page-header,
    .token-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .create-token-btn,
    .token-toolbar input {
        width: 100%;
    }
}