:root {
    --page-bg: #f4f7fb;
    --card-bg: #ffffff;
    --soft-border: rgba(15, 23, 42, 0.08);
    --soft-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-1: #0d6efd;
    --brand-2: #6610f2;
}

body {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.14), transparent 22%),
        radial-gradient(circle at top left, rgba(102, 16, 242, 0.08), transparent 18%),
        linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 100%);
    color: var(--text-main);
    min-height: 100vh;
}

.hero-card,
.panel-card,
.token-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--soft-border);
    box-shadow: var(--soft-shadow);
    border-radius: 24px;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(102, 16, 242, 0.06));
    pointer-events: none;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mini-stat {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    padding: 1rem;
    height: 100%;
}

.wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .5rem .85rem;
    background: rgba(15, 23, 42, 0.05);
    font-size: .9rem;
    white-space: nowrap;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
}

.token-media {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.token-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
}

.form-help {
    font-size: .84rem;
    color: var(--text-muted);
}

.sticky-top-lite {
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.badge-soft {
    background: rgba(13, 110, 253, 0.08);
    color: var(--brand-1);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.badge-owner {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
    border: 1px solid rgba(25, 135, 84, 0.16);
}

.badge-not-owner {
    background: rgba(220, 53, 69, 0.11);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.16);
}

.pointer {
    cursor: pointer;
}

.result-box {
    background: #0f172a;
    color: #dbeafe;
    border-radius: 16px;
    padding: 1rem;
    min-height: 120px;
    max-height: 380px;
    overflow: auto;
    white-space: pre-wrap;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

.token-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .token-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.advanced-result-box {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1rem;
    min-height: 90px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .9rem;
    color: #0f172a;
}
