:root {
    --bg-main: #0a0b0d;
    --sidebar-bg: #111317;
    --card-bg: rgba(25, 28, 33, 0.6);
    --accent: #e2b053; /* Burnished Gold */
    --accent-glow: rgba(226, 176, 83, 0.2);
    --text-primary: #ffffff;
    --text-dim: #848ca0;
    --success: #67e8f9;
    --danger: #f87171;
    --border: rgba(255, 255, 255, 0.04);
    --gold-border: rgba(226, 176, 83, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* New Layout Architecture */
.terminal-layout {
    display: flex;
    height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Sidebar Luxury */
.sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.8rem;
    position: relative;
    z-index: 10;
}

.nael-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo-box {
    background: linear-gradient(135deg, var(--accent), #b38a3d);
    color: black;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.side-nav {
    margin-top: 4rem;
    flex: 1;
}

.group-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-item.active, .nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.03);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.market-minimal { display: flex; flex-direction: column; gap: 15px; }

.m-card {
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.m-card:hover { border-color: var(--gold-border); transform: translateX(5px); }

.m-label { display: block; font-size: 0.6rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 800; text-transform: uppercase; }
.m-val { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #fff; }

.status-pill {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 800;
    letter-spacing: 1px;
}

/* Main Content Modernist */
.content-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% -20%, #1a1e26 0%, var(--bg-main) 70%);
}

.top-search-header {
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    gap: 3rem;
}

.search-wrapper-v2 {
    flex: 1;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 5px 10px 5px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#addressInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.search-tip {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

#searchBtn {
    background: var(--accent);
    color: black;
    border: none;
    padding: 15px 35px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

#searchBtn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px var(--accent-glow); }

.stage-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 4rem 4rem 4rem;
}

/* Welcome Experience */
.welcome-stage {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse { from { transform: scale(1); opacity: 0.1; } to { transform: scale(1.5); opacity: 0.4; } }

/* Stats & Result Cards */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 28px;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

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

.s-label { font-size: 0.65rem; color: var(--text-dim); font-weight: 800; letter-spacing: 2px; margin-bottom: 2rem; }
.s-value { font-size: 2.2rem; font-weight: 700; font-family: var(--font-heading); letter-spacing: -1px; }

/* Dashboard Detail Panels */
.detail-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    margin-top: 3rem;
    overflow: hidden;
}

.panel-head {
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.01);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}

.panel-head h3 { font-size: 1rem; color: var(--accent); letter-spacing: 1px; font-weight: 800; }

.p-status {
    background: var(--accent);
    color: black;
    font-weight: 900;
    font-size: 0.6rem;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.kv-grid { padding: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.k { font-size: 0.6rem; color: var(--text-dim); font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.v { font-size: 1rem; font-weight: 600; }

/* List Modernity */
.list-section { margin-top: 4rem; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.tx-row {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem 2.5rem;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 120px 1fr 160px;
    align-items: center;
    gap: 2rem;
    transition: 0.2s;
}

.tx-row:hover { background: rgba(255,255,255,0.02); }

.tx-hash { 
    font-weight: 500; 
    color: #fff; 
    opacity: 0.6; 
    font-size: 0.75rem; 
    word-break: break-all;
    font-family: var(--font-mono);
}

.tx-amount { 
    text-align: right; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    font-size: 1.1rem;
}

.e-val {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 400;
}

/* Global Utilities */
.hidden { display: none !important; }
.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

#loadingOverlay {
    position: fixed; inset: 0;
    background: var(--bg-main);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
}

.nael-loader p { color: var(--accent); font-weight: 900; font-size: 0.8rem; margin-top: 3rem; letter-spacing: 5px; }

.circle {
    display: inline-block; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%;
    margin: 5px; animation: bounce 0.6s infinite alternate;
}
.circle:nth-child(2) { animation-delay: 0.1s; }
.circle:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce { to { transform: translateY(-15px); } }
