/* ==============================================================================
   CORTEX PROTOCOL ($CTX) - INSTITUTIONAL LIGHT THEME (TIER-0 POLISH EDITION)
   Inspired by Stripe, Linear, Vercel, and Ethereum.org Design System
   ============================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-card-hover: #ffffff;
    
    --border-light: rgba(226, 232, 240, 0.85);
    --border-hover: rgba(99, 102, 241, 0.45);
    
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    
    --indigo: #4f46e5;
    --indigo-soft: #eef2ff;
    --violet: #7c3aed;
    --violet-soft: #f5f3ff;
    --cyan: #0284c7;
    --cyan-soft: #e0f2fe;
    --emerald: #059669;
    --emerald-soft: #ecfdf5;
    --amber: #d97706;
    --amber-soft: #fffbeb;
    --flame: #ea580c;
    --flame-soft: #fff7ed;
    --red: #ef4444;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-indigo: 0 10px 25px -3px rgba(79, 70, 229, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--slate-700);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ======================================================== */
/* BACKGROUNDS & INTERACTIVE CANVASES                       */
/* ======================================================== */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

.light-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* SPOTLIGHT CARD */
.spotlight-card {
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -200px);
    left: var(--mouse-x, -200px);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 1;
}
.spotlight-card:hover::before {
    opacity: 1;
}

/* UTILITIES */
.mono { font-family: var(--font-mono); }
.text-indigo { color: var(--indigo); }
.text-violet { color: var(--violet); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-flame { color: var(--flame); }
.text-red { color: var(--red); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }
.text-muted { color: var(--slate-500); }
.font-bold { font-weight: 700; }

.bg-indigo-soft { background-color: var(--indigo-soft); }
.bg-violet-soft { background-color: var(--violet-soft); }
.bg-emerald-soft { background-color: var(--emerald-soft); }
.bg-amber-soft { background-color: var(--amber-soft); }
.bg-flame-soft { background-color: var(--flame-soft); }

/* LIGHT CARDS */
.light-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.light-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* FLOATING NAVBAR */
.header-container {
    position: sticky;
    top: 16px;
    z-index: 100;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.light-card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.nav-brand:hover {
    transform: scale(1.02);
}

.brand-logo-custom {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-brand:hover .brand-logo-custom {
    transform: rotate(10deg);
}
.brand-logo-img {
    width: 26px;
    height: 26px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--slate-900);
    letter-spacing: 0.5px;
}

.brand-badge-light {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--indigo);
    background: var(--indigo-soft);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    gap: 18px;
}
@media (max-width: 1100px) {
    .nav-links { display: none; }
}

.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--indigo);
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav-link:hover {
    color: var(--indigo);
}
.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS & SHIMMER */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--indigo);
    color: #ffffff;
    box-shadow: var(--shadow-indigo);
}
.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -3px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: #ffffff;
    color: var(--slate-700);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--slate-400);
    transform: translateY(-1px);
}

.btn-hero-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 100px;
    box-shadow: var(--shadow-indigo);
}
.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px -4px rgba(79, 70, 229, 0.45);
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: shimmerBeam 4s infinite;
}
@keyframes shimmerBeam {
    0% { left: -100%; }
    20%, 100% { left: 200%; }
}

.nav-cta-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--slate-800);
    border: 1px solid var(--border-light);
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}
.btn-hero-secondary:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
}

.btn-hero-ghost {
    background: transparent;
    color: var(--slate-600);
    font-size: 1rem;
    padding: 16px 24px;
}
.btn-hero-ghost:hover {
    color: var(--indigo);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}
.btn-block {
    width: 100%;
}

/* LIVE TICKER BANNER */
.network-ticker-container {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.network-ticker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 24px;
    font-size: 0.82rem;
    font-weight: 600;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-label {
    color: var(--slate-500);
    font-weight: 700;
}
.ticker-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* VIEWS WRAPPER */
#app-view-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}
.view-pane {
    display: none;
}
.view-pane.active {
    display: block;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0 70px;
}
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 30px 0;
    }
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.pill-sparkle { font-size: 1rem; }
.pill-arrow { color: var(--indigo); font-size: 0.8rem; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--slate-900);
    margin-bottom: 22px;
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

.gradient-text-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-gradient {
    background-size: 200% auto;
    animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.18rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 45px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 640px) {
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat-card {
    padding: 18px 20px;
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 4px;
}
.stat-info {
    font-size: 0.72rem;
    color: var(--slate-500);
}

/* HERO 3D TOKEN SHOWCASE */
.hero-showcase {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.token-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    text-align: center;
}
.token-glow-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 75%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: haloPulse 3s ease-in-out infinite alternate;
}
@keyframes haloPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.orbit-ring-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border: 1.5px dashed rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(65deg) rotateY(15deg);
    pointer-events: none;
    animation: orbitSpin 12s linear infinite;
    z-index: 1;
}
.orbit-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateY(-25deg);
    pointer-events: none;
    animation: orbitSpinReverse 16s linear infinite;
    z-index: 1;
}
@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}
@keyframes orbitSpinReverse {
    from { transform: translate(-50%, -50%) rotateX(75deg) rotateY(-25deg) rotateZ(360deg); }
    to { transform: translate(-50%, -50%) rotateX(75deg) rotateY(-25deg) rotateZ(0deg); }
}

.token-3d-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    animation: floatToken 4.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.token-3d-image:hover {
    transform: scale(1.06) translateY(-6px) rotate(1deg);
    box-shadow: 0 35px 60px -15px rgba(99, 102, 241, 0.4);
}

@keyframes floatToken {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.token-badge-float {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: -16px;
    position: relative;
    z-index: 3;
}

.visual-pipeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.pipeline-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}
.pipeline-step:hover {
    background: #ffffff;
    border-color: var(--indigo);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.pipeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pipeline-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--slate-900);
}
.pipeline-text span {
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ======================================================== */
/* 3-LAYER STACK EXPLORER                                    */
/* ======================================================== */
.stack-explorer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 36px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 860px) {
    .stack-explorer-layout { grid-template-columns: 1fr; }
}

.stack-layers-selector {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.stack-layer-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stack-layer-card:hover {
    border-color: var(--indigo);
    transform: translateX(4px);
}
.stack-layer-card.active {
    background: #ffffff;
    border-color: var(--indigo);
    box-shadow: var(--shadow-indigo);
    border-left: 5px solid var(--indigo);
}
.layer-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.layer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}
.layer-desc {
    font-size: 0.85rem;
    color: var(--slate-600);
}

.stack-layer-detail-box {
    background: #0f172a;
    border-radius: 18px;
    padding: 28px;
    color: #f8fafc;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ======================================================== */
/* AI SEMANTIC VECTOR SEARCH SECTION                         */
/* ======================================================== */
.semantic-search-card {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon-left {
    position: absolute;
    left: 20px;
    font-size: 1.2rem;
    pointer-events: none;
}
.semantic-input {
    width: 100%;
    padding: 18px 220px 18px 54px;
    border-radius: 100px;
    border: 2px solid var(--border-light);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--slate-900);
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.semantic-input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}
.search-btn-inner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 24px;
}

.quick-queries-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}
.preset-query-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--slate-700);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.preset-query-btn:hover {
    background: #ffffff;
    border-color: var(--indigo);
    color: var(--indigo);
}

.semantic-results-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.semantic-empty-hint {
    text-align: center;
    padding: 40px;
    color: var(--slate-400);
}
.semantic-result-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.semantic-result-card:hover {
    border-color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.result-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cosine-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid rgba(5, 150, 105, 0.25);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
}
.cosine-bar-wrap {
    height: 6px;
    border-radius: 4px;
    background: var(--bg-subtle);
    overflow: hidden;
    margin: 4px 0;
}
.cosine-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #059669 100%);
    border-radius: 4px;
}
.result-content-text {
    font-size: 0.95rem;
    color: var(--slate-800);
    line-height: 1.55;
}
.result-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--slate-500);
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}

/* ======================================================== */
/* TELEMETRY CHART METRICS                                   */
/* ======================================================== */
.metrics-dashboard-card {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}
.chart-title-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--slate-900);
    margin-top: 4px;
}
.chart-stat-chips {
    display: flex;
    gap: 10px;
}
.chip-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
}
.sparkline-canvas-container {
    background: #0f172a;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
}
#hashrate-sparkline-canvas {
    width: 100%;
    height: 140px;
    display: block;
}

/* ======================================================== */
/* DEVELOPER SDK SUITE                                      */
/* ======================================================== */
.developer-sdk-suite {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.sdk-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sdk-tab {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--slate-700);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.sdk-tab:hover {
    border-color: var(--indigo);
}
.sdk-tab.active {
    background: #ffffff;
    border-color: var(--indigo);
    box-shadow: var(--shadow-sm);
    color: var(--indigo);
}
.sdk-terminal-box {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ======================================================== */
/* MODAL INSPECTOR                                          */
/* ======================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-content {
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.modal-close-btn {
    background: var(--bg-subtle);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close-btn:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

/* HALVING TIMELINE SCHEDULE */
.halving-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .halving-timeline { grid-template-columns: 1fr; }
}
.halving-stage {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
}
.halving-stage.active {
    background: var(--indigo-soft);
    border-color: rgba(79, 70, 229, 0.3);
}
.stage-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--indigo);
    display: block;
    margin-bottom: 4px;
}
.stage-reward {
    font-size: 1.05rem;
    color: var(--slate-900);
}
.stage-blocks {
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ARCHITECTURE BANNER */
.architecture-banner {
    padding: 24px;
    overflow: hidden;
}
.arch-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
@media (max-width: 860px) {
    .arch-banner-grid { grid-template-columns: 1fr; }
}
.arch-banner-img-wrap {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.arch-mesh-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.arch-mesh-img:hover {
    transform: scale(1.04);
}
.arch-banner-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 8px 0 12px;
}
.arch-banner-content p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 20px;
}
.arch-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate-800);
    background: var(--bg-subtle);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.highlight-item:hover {
    border-color: var(--indigo);
    transform: translateX(4px);
}

/* SECTIONS LAYOUT */
.section-container {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--indigo);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--slate-900);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-600);
}

/* WORKFLOW GRID */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .workflow-grid { grid-template-columns: 1fr; }
}
.workflow-card {
    padding: 30px;
    position: relative;
}
.step-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--indigo);
    background: var(--indigo-soft);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
}
.workflow-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.icon-indigo { background: var(--indigo-soft); color: var(--indigo); }
.icon-violet { background: var(--violet-soft); color: var(--violet); }
.icon-flame { background: var(--flame-soft); color: var(--flame); }
.icon-emerald { background: var(--emerald-soft); color: var(--emerald); }

.workflow-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}
.workflow-card p {
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* COST COMPARISON */
.cost-comparison-card {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.cost-calc-controls {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}
.calc-slider-group .slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--slate-800);
}
.cost-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 860px) {
    .cost-comparison-grid { grid-template-columns: 1fr; }
}
.comparison-cost-box {
    border-radius: 18px;
    padding: 30px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.comparison-cost-box.legacy-cloud {
    border-color: rgba(239, 68, 68, 0.25);
    background: #fffafa;
}
.comparison-cost-box.cortex-advantage {
    border-color: rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    box-shadow: var(--shadow-indigo);
}

.border-glow-animated {
    position: relative;
}
.border-glow-animated::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #0284c7, #4f46e5);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderRotate 6s linear infinite;
    opacity: 0.6;
}
@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cost-box-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.cost-amount {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
}
.cost-sub {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-bottom: 20px;
}
.cost-box-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.cost-box-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-700);
}
.savings-pill {
    margin-top: auto;
    background: var(--emerald-soft);
    border: 1px solid rgba(5, 150, 105, 0.25);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--emerald);
}

.pulse-emerald {
    animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(5, 150, 105, 0); }
    50% { box-shadow: 0 0 16px rgba(5, 150, 105, 0.25); }
}

/* MERKLE TREE VISUALIZER */
.merkle-visualizer-card {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.merkle-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tree-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.merkle-node {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.merkle-node:hover, .merkle-node.active {
    border-color: var(--indigo);
    box-shadow: var(--shadow-indigo);
    transform: translateY(-3px) scale(1.02);
}
.root-node {
    background: var(--indigo-soft);
    border-color: rgba(79, 70, 229, 0.3);
    padding: 16px 28px;
}
.node-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--indigo);
    display: block;
    margin-bottom: 4px;
}
.node-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
}
.node-hash {
    font-size: 0.78rem;
    color: var(--slate-500);
}
.tree-lines {
    color: var(--slate-400);
    font-size: 0.8rem;
}
.inspector-details-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px 24px;
}
.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}
.inspector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--slate-700);
}
@media (max-width: 640px) {
    .inspector-grid { grid-template-columns: 1fr; }
}

/* MINING & NODE SETUP HUB */
.mining-hub-layout {
    padding: 36px;
    max-width: 1050px;
    margin: 0 auto;
}
.os-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.os-tab {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--slate-600);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.os-tab:hover {
    color: var(--slate-900);
    border-color: var(--slate-400);
}
.os-tab.active {
    background: var(--indigo);
    color: #ffffff;
    border-color: var(--indigo);
    box-shadow: var(--shadow-indigo);
}

.terminal-display-box {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #1e293b;
}
.term-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.term-title {
    font-size: 0.78rem;
    color: #94a3b8;
}
.copy-term-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.copy-term-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.term-code-block {
    padding: 24px;
    color: #38bdf8;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
}

.mining-estimator-section {
    border-top: 1px solid var(--border-light);
    padding-top: 28px;
}
.estimator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.estimator-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--slate-900);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr; }
}
.calc-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    accent-color: var(--indigo);
    cursor: pointer;
}
.calc-meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--slate-600);
}
.calc-results-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.result-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 16px 20px;
    border-radius: 14px;
}
.res-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-500);
}
.res-value {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    margin: 4px 0;
}
.res-sub {
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* TOKENOMICS */
.tokenomics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 860px) {
    .tokenomics-layout { grid-template-columns: 1fr; }
}
.tokenomics-card, .tokenomics-visual-light {
    padding: 36px;
}
.token-header-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 18px;
    margin-bottom: 24px;
}
.badge-token {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--indigo);
}
.token-ticker-light {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-900);
}
.token-supply-light {
    text-align: right;
}
.token-supply-light .label {
    display: block;
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 700;
}
.token-supply-light .val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--indigo);
}

.token-metrics-list-light {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.metric-row-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
}
.metric-row-light span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-800);
}

.visual-title-light {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--slate-900);
    margin-bottom: 20px;
}
.supply-bar-light {
    height: 38px;
    border-radius: 10px;
    background: var(--bg-subtle);
    overflow: hidden;
    margin-bottom: 12px;
}
.bar-fill-community {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #059669 100%);
    display: flex;
    align-items: center;
    padding-left: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}
.supply-legend-light {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-600);
}
.dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    margin-right: 6px;
}
.dot-red {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 6px;
}

.deflation-box-light {
    background: var(--flame-soft);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 14px;
    padding: 20px;
}
.deflation-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.deflation-formula {
    font-size: 0.82rem;
    color: var(--flame);
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(234, 88, 12, 0.2);
}
.deflation-explanation {
    font-size: 0.85rem;
    color: var(--slate-700);
    line-height: 1.5;
}

/* FAQ */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    padding: 22px 28px;
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--slate-900);
}
.faq-answer {
    display: none;
    margin-top: 14px;
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-item.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* CTA BANNER */
.cta-banner-section {
    padding: 60px 0 20px;
}
.cta-banner-light {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
}
.cta-banner-light h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 12px;
}
.cta-banner-light p {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* FOOTER */
.footer-container-light {
    max-width: 1280px;
    margin: 40px auto 20px;
    padding: 40px;
}
.footer-top-light {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}
@media (max-width: 768px) {
    .footer-top-light { flex-direction: column; }
}
.footer-brand-light {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.footer-tagline {
    font-size: 0.88rem;
    color: var(--slate-500);
    margin-top: 6px;
    max-width: 340px;
}
.footer-links-group-light {
    display: flex;
    gap: 50px;
}
.footer-col-light h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-900);
    margin-bottom: 14px;
}
.footer-col-light a {
    display: block;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-col-light a:hover {
    color: var(--indigo);
}
.footer-bottom-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--slate-500);
}
@media (max-width: 640px) {
    .footer-bottom-light { flex-direction: column; gap: 12px; text-align: center; }
}

/* APP VIEWS */
.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.app-page-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--slate-900);
}
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .grid-2col { grid-template-columns: 1fr; }
}
.panel {
    padding: 26px;
}
.panel-header-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
}
.panel-header-light h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--slate-900);
}

.pill-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pill-green-light { background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(5, 150, 105, 0.2); }
.pill-violet-light { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(124, 58, 237, 0.2); }
.pill-amber-light { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(217, 119, 6, 0.2); }
.pill-flame-light { background: var(--flame-soft); color: var(--flame); border: 1px solid rgba(234, 88, 12, 0.2); }

/* TABLES */
.table-container {
    overflow-x: auto;
    max-height: 460px;
}
.table-light {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.table-light th {
    text-align: left;
    padding: 10px 12px;
    color: var(--slate-500);
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
}
.table-light td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-mono);
}
.table-light tr:hover td {
    background: var(--bg-subtle);
    cursor: pointer;
}

/* MEMORY FEED */
.memory-feed-light {
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.memory-card-light {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    border-left: 4px solid var(--violet);
    transition: all 0.2s ease;
}
.memory-card-light:hover {
    background: #ffffff;
    border-color: var(--indigo);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.memory-card-header-light {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.memory-agent-light {
    color: var(--violet);
    font-weight: 700;
}
.memory-content-light {
    font-size: 0.88rem;
    color: var(--slate-800);
    margin-bottom: 8px;
}
.memory-footer-light {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--slate-500);
    font-family: var(--font-mono);
}

/* FORMS */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}
.input-field-light {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--slate-900);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}
.input-field-light:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.input-with-btn {
    display: flex;
    gap: 8px;
}

/* WALLET CARD */
.wallet-card-light {
    background: linear-gradient(135deg, var(--indigo-soft) 0%, #ffffff 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.wallet-balance-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--indigo);
}
.wallet-balance-amount-light {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 6px 0 14px;
}
.wallet-balance-amount-light .currency {
    font-size: 1.2rem;
    color: var(--indigo);
}
.wallet-address-box-light {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
}
.copy-btn-light {
    background: transparent;
    border: none;
    color: var(--indigo);
    cursor: pointer;
    margin-left: auto;
}
.secret-box-light {
    background: var(--flame-soft);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
}
.fee-breakdown-light {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.empty-state {
    text-align: center;
    color: var(--slate-400);
    padding: 40px;
    font-size: 0.9rem;
}
.border-top-light { border-top: 1px solid var(--border-light); }
.pt-3 { padding-top: 14px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.text-break { word-break: break-all; }

/* TOAST */
.toast-light {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    border: 1px solid var(--indigo);
    color: var(--slate-900);
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
    z-index: 9999;
}
.toast-light.show {
    display: block;
    animation: toastUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================== */
/* SOVEREIGN ENCRYPTED VAULT STYLING                        */
/* ======================================================== */
.vault-container {
    max-width: 540px;
    margin: 40px auto;
}
.vault-card {
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.vault-icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}
.lock-pulsing {
    animation: lockPulse 2s infinite ease-in-out;
}
@keyframes lockPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}
.vault-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}
.vault-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.vault-tab-btn.active {
    background: #ffffff;
    color: var(--indigo);
    box-shadow: var(--shadow-sm);
}
.vault-address-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--slate-700);
}
.vault-status-unlocked {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
}
.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover {
    color: var(--indigo);
}

/* MINING DOWNLOAD BANNER */
.mining-download-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(245, 243, 255, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    gap: 20px;
    flex-wrap: wrap;
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
}
.banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.banner-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}
.banner-text p {
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.4;
}
