:root {
    --bg: #000000;
    --card-bg: rgba(12, 12, 15, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --orchid: #d946ef;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --rose: #f43f5e;
    --vibe-grad: linear-gradient(135deg, #06b6d4, #6366f1);
    --text: #ffffff;
    --text-dim: #888888;
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- BACKGROUND MOTIFS --- */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.vibe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- NAV --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    cursor: pointer;
    color: #fff;
}

.logo span {
    color: var(--cyan);
}

.nav-pills {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem;
    border-radius: 40px;
    display: flex;
    gap: 0.2rem;
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
}

.nav-item {
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: 0.3s;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

div.vis-tooltip {
    background: rgba(11, 11, 14, 0.95) !important;
    color: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    line-height: 1.5 !important;
}

.btn-vibe {
    background: var(--vibe-grad);
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-vibe:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.1);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    margin-left: 8px;
    transition: 0.2s;
    vertical-align: middle;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--cyan);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* --- TABS SYSTEM --- */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

#tab-tips {
    padding-bottom: 10rem;
}

/* ADDED PADDING v9.3 */

/* --- CORE COMPONENTS --- */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.hero-value {
    font-size: 1.8rem;
    font-weight: 900;
}

.stream-container {
    margin-bottom: 5rem;
}

.chain {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.5rem 0;
    align-items: center;
}

.chain::-webkit-scrollbar {
    height: 10px;
}

.chain::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.block-card {
    min-width: 250px;
    background: #08080a;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.block-card:hover {
    border-color: var(--cyan);
    background: #0c0c0f;
}

.chain-connector {
    min-width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.chain-connector::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

/* --- DATA CARDS & TABLES --- */
.data-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem;
    margin-bottom: 3rem;
}

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

th {
    text-align: left;
    padding: 1.2rem;
    color: var(--text-dim);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.4rem 1.2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.joshua-row {
    opacity: 0.8;
}

.joshua-row td {
    color: var(--text-dim);
}

.joshua-row:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.hash {
    font-family: 'Monaco', monospace;
    color: var(--cyan);
    opacity: 0.8;
}

.search-bar-wrap {
    width: 450px;
    margin-bottom: 2rem;
}

.search-bar-inline {
    width: 100%;
    background: #08080a;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar-inline:focus {
    border-color: var(--cyan);
}

.input-vibe {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    outline: none;
    transition: 0.3s;
}

.input-vibe:focus {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
}

/* --- NETWORK GRAPH --- */
#network-graph canvas {
    cursor: grab;
}

#network-graph canvas:active {
    cursor: grabbing;
}

/* --- TIPS BLOG STYLE --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tip-card {
    background: #0c0c0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: 0.3s;
}

.tip-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    background: #111114;
}

.tip-tag {
    color: var(--cyan);
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.tip-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.tip-body {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- MODALS --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(25px);
}

.modal {
    background: #0a0a0d;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    width: 800px;
    max-width: 95%;
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.modal-value {
    font-size: 1rem;
    font-weight: 800;
}

@keyframes coin-spin {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.coin-animation {
    width: 50px;
    height: 50px;
    animation: coin-spin 3s linear infinite;
    transform-style: preserve-3d;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .hero-grid,
    #tab-network .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .data-card {
        padding: 1.5rem;
    }

    .search-bar-wrap {
        width: 100%;
    }

    .modal {
        padding: 1.5rem;
    }

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

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}