:root {
    /* ═══════════════════════════════════════════════════════════
       FreedomΩ Design System - ⟨Ψ|Ω|Ψ⟩ = 1 | Chain 76162
       Purple Omega - Web3 Cyberpunk Theme
       ═══════════════════════════════════════════════════════════ */
    
    /* Primary Purple */
    --color-primary: #7B2FFF;
    --color-primary-muted: rgba(123, 47, 255, 0.7);
    --color-primary-light: rgba(123, 47, 255, 0.1);
    --color-primary-dark: rgba(123, 47, 255, 0.9);
    
    /* Gradient Colors */
    --color-purple-600: #9333EA;
    --color-blue-600: #2563EB;
    --color-cyan-600: #0891B2;
    
    /* Background Colors */
    --color-bg-dark: #0A0A0F;
    --color-secondary: #1A1A2E;
    --color-card: rgba(0, 0, 0, 0.4);
    --color-card-dark: rgba(0, 0, 0, 0.9);
    
    /* Text Colors */
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-dim: rgba(255, 255, 255, 0.5);
    
    /* Status Colors */
    --color-success: #00E676;
    --color-error: #ff4b4b;
    --color-warning: #FFAB00;
    
    /* Gradient Combinations */
    --gradient-purple: linear-gradient(135deg, #7B2FFF 0%, #9333EA 100%);
    --gradient-purple-blue: linear-gradient(135deg, #7B2FFF 0%, #2563EB 100%);
    --gradient-purple-cyan: linear-gradient(135deg, #7B2FFF 0%, #0891B2 100%);
    --gradient-dark: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(20, 20, 30, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.7) 100%);
    --gradient-balance: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    --gradient-text: linear-gradient(to right, #7B2FFF, rgba(123, 47, 255, 0.8));
    
    /* Glow Effects */
    --glow-sm: 0 0 5px rgba(123, 47, 255, 0.4);
    --glow-md: 0 0 10px rgba(123, 47, 255, 0.5);
    --glow-lg: 0 0 20px rgba(123, 47, 255, 0.6);
    --glow-xl: 0 0 30px rgba(123, 47, 255, 0.7);
    
    /* Shadow Effects */
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-balance: 0 0 25px rgba(123, 47, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.07);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(123, 47, 255, 0.15);
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-primary: rgba(123, 47, 255, 0.2);
    --border-primary-strong: rgba(123, 47, 255, 0.3);
    --border-hover: rgba(123, 47, 255, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;
    --radius-2xl: 20px;
    --radius-full: 50%;
    
    /* Spacing (8pt Grid) */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Backdrop Filters */
    --blur-light: blur(2px);
    --blur-medium: blur(10px);
    --blur-heavy: blur(20px);
    --blur-glass: blur(10px) saturate(180%);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    --transition-fast: all 0.2s ease;
    --transition-spring: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Inter', 'Neue Haas Grotesk', 'Helvetica Now', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', monospace;
    
    /* Legacy variable mapping for compatibility */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-purple-600);
    --background-color: var(--color-bg-dark);
    --card-background: rgba(10, 10, 20, 0.8);
    --text-color: var(--color-text);
    --text-secondary: var(--color-text-muted);
    --border-color: rgba(123, 47, 255, 0.2);
    --success-color: var(--color-success);
    --warning-color: var(--color-warning);
    --danger-color: var(--color-error);
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    --border-radius-xl: var(--radius-xl);
}

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

html {
    background-color: #0A0A0F;
    overflow-x: hidden;
}

body {
    background-color: transparent;
    color: var(--text-color);
    position: relative;
    line-height: 1.6;
    font-family: 'Inter', 'IBM Plex Sans', 'Urbanist', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Removed body::before - using matrix-bg.js for background effect */

h1, h2, h3, .nav-tabs .tab {
    font-family: 'IBM Plex Sans', 'Inter', 'Urbanist', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

code, pre, .hash, .address, .seed-phrase {
    font-family: 'IBM Plex Mono', 'Roboto Mono', monospace;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: 48px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 10px var(--primary-color));
    animation: logoPulse 2.5s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: 2px solid rgba(123, 47, 255, 0.4);
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px var(--primary-color));
        transform: scale(1);
        border-color: rgba(123, 47, 255, 0.4);
    }
    50% {
        filter: drop-shadow(0 0 20px var(--primary-color)) 
               drop-shadow(0 0 35px var(--secondary-color))
               drop-shadow(0 0 50px rgba(168, 85, 247, 0.5));
        transform: scale(1.08);
        border-color: rgba(147, 51, 234, 0.8);
    }
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: textGlow 4s infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 8px rgba(123, 47, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(123, 47, 255, 0.6),
                     0 0 30px rgba(147, 51, 234, 0.3);
    }
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    display: flex;
    position: relative;
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    100% { box-shadow: 0 0 15px var(--primary-color), 0 0 20px var(--secondary-color); }
}

.search-box::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-md);
    z-index: -1;
    opacity: 0.6;
    animation: rotateBorderGlow 6s linear infinite;
}

@keyframes rotateBorderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    font-size: 16px;
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    caret-color: var(--primary-color);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
}

.search-box input::placeholder {
    color: rgba(123, 47, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(123, 47, 255, 0.3);
}

.search-box button {
    padding: 0 var(--space-md);
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 15px;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-md);
    position: relative;
    overflow: hidden;
}

.search-box button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-lg);
}

.search-box button:active {
    transform: scale(0.98);
}

.network-selector select {
    padding: 12px 18px;
    background-color: rgba(123, 47, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237B2FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.network-selector select:hover, .network-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 230, 204, 0.2);
    outline: none;
}

nav {
    background: rgba(10, 10, 15, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 47, 255, 0.15);
}

.nav-tabs {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.nav-tabs .tab {
    padding: 15px 20px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.nav-tabs .tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-tabs .tab:hover {
    background-color: rgba(123, 47, 255, 0.05);
    color: var(--text-color);
}

.nav-tabs .tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tabs .tab.active::after {
    transform: scaleX(1);
}

/* Navigation Icon Styles */
.nav-tabs .tab a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.nav-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(123, 47, 255, 0.4));
    transition: var(--transition-fast);
}

.nav-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-tabs .tab:hover .nav-icon {
    filter: drop-shadow(0 0 6px rgba(123, 47, 255, 0.7));
    transform: scale(1.1);
}

.nav-tabs .tab.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(123, 47, 255, 0.9));
}

/* Network Submenu Styles */
.submenu {
    background-color: var(--glass-background);
    border-bottom: 1px solid var(--glass-border);
    display: none;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(123, 47, 255, 0.05), transparent 80%);
    pointer-events: none;
}

.submenu.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.submenu-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

.submenu-tab {
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.submenu-tab a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.submenu-tab:hover, 
.submenu-tab:hover a {
    color: var(--primary-color);
}

.submenu-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.submenu-tab:hover::after {
    width: 30px;
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown menu styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Inter', 'Roboto', 'IBM Plex Sans', sans-serif;
    white-space: nowrap;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 200px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    z-index: 100;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(10, 10, 20, 0.8);
    transition: all 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--accent-color);
    padding-left: 20px;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-button:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.nav-dropdown:hover .dropdown-icon,
.dropdown-button:focus .dropdown-icon {
    transform: rotate(180deg);
}

/* Make sure dropdown button has consistent style with tabs */
.dropdown-button {
    color: var(--text-secondary);
    font-weight: 500;
}

.dropdown-button:hover,
.dropdown-button:focus {
    color: var(--text-color);
    outline: none;
}

/* Network status bar styles - TronScan inspired */
.network-status-bar {
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 47, 255, 0.2);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(123, 47, 255, 0.05);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.network-status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.network-selector select {
    background-color: rgba(147, 51, 234, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--border-radius-md);
    padding: 6px 30px 6px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ffb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: all 0.3s ease;
}

.network-selector select:hover, .network-selector select:focus {
    border-color: var(--primary-color);
    background-color: rgba(147, 51, 234, 0.15);
    outline: none;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
}

.blockchain-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 768px) {
    .network-status-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blockchain-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }
    
    .nav-tabs .tab {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        width: 180px;
        right: -20px;
    }
}

main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* CRITICAL: Tab content visibility - must hide non-active tabs */
section.tab-content,
div.tab-content,
.tab-content {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

section.tab-content.active,
div.tab-content.active,
.tab-content.active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Dashboard modules - Glass Card Design (Transparent for Matrix Rain) */
.dashboard-module {
    background: rgba(10, 10, 15, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(123, 47, 255, 0.15);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dashboard-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.4;
}

.dashboard-module::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(123, 47, 255, 0.03), transparent 30%);
    pointer-events: none;
}

.dashboard-module:hover {
    transform: translateY(-2px);
    border-color: rgba(123, 47, 255, 0.15);
    box-shadow: var(--shadow-hover);
}

.dashboard-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    position: relative;
    border-bottom: 1px solid rgba(123, 47, 255, 0.1);
}

.dashboard-module-header h2 {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(123, 47, 255, 0.3);
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.dashboard-module-header h2::before {
    content: '//';
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 90%;
    opacity: 0.7;
}

.dashboard-module-header h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    opacity: 1;
}

.dashboard-module-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent 80%);
    opacity: 0.5;
}

.dashboard-module-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-module-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.dashboard-stat {
    background: rgba(10, 10, 15, 0.25);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid rgba(123, 47, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dashboard-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(123, 47, 255, 0) 0%, 
        rgba(123, 47, 255, 0.03) 50%, 
        rgba(123, 47, 255, 0) 100%
    );
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: var(--border-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), var(--glow-sm);
}

.dashboard-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 10px 0;
    font-family: 'IBM Plex Mono', monospace;
    text-shadow: 0 0 10px rgba(123, 47, 255, 0.3);
    letter-spacing: 0.5px;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-stat-change {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.change-up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.change-down {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.token-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 5px 0 15px 0;
}

.token-list th,
.token-list td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(123, 47, 255, 0.1);
    transition: background-color 0.2s ease;
}

.token-list tr {
    transition: all 0.2s ease;
    position: relative;
}

.token-list tr:hover td {
    background-color: rgba(123, 47, 255, 0.05);
}

.token-list tr:hover {
    transform: translateX(5px);
}

.token-list th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

.token-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.token-icon.umb {
    background: linear-gradient(135deg, #7B2FFF, #9333EA);
    color: white;
}

.token-icon.usud {
    background: linear-gradient(45deg, #26a69a, #00796b);
    color: white;
}

.token-icon.eth {
    background: linear-gradient(45deg, #9c27b0, #673ab7);
    color: white;
}

.token-icon.btc {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.token-name {
    font-weight: 500;
}

.token-price {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.activity-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid rgba(123, 47, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 47, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(123, 47, 255, 0.15);
}

.activity-card h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(123, 47, 255, 0.15);
    padding-bottom: 10px;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.activity-stat {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 12px 0 8px 0;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(123, 47, 255, 0.3);
    position: relative;
    display: inline-block;
}

.activity-stat::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.activity-card:hover .activity-stat::after {
    transform: scaleX(1);
}

.activity-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #051B11;
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(123, 47, 255, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(123, 47, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(123, 47, 255, 0.4);
}

.card {
    background: rgba(10, 10, 15, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(123, 47, 255, 0.07), 
                rgba(0, 0, 0, 0.0), 
                rgba(147, 51, 234, 0.05));
    opacity: 0.3;
    z-index: -1;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--glow-effect-strong), var(--card-shadow);
}

.card:hover::after {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot.offline {
    background-color: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

.card-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .section-panels {
        grid-template-columns: 1fr 1fr;
    }
}

.panel {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.panel::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(123, 47, 255, 0.1), 
                transparent, 
                rgba(147, 51, 234, 0.07), 
                transparent);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.panel:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-effect-strong), var(--card-shadow);
}

.panel:hover::before {
    opacity: 0.7;
}

/* Dashboard Sections & Cards */
.dashboard-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.dashboard-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card, .market-card, .stat-card, .protocol-card {
    background: rgba(20, 30, 40, 0.7);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    flex: 1;
    min-width: 280px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.metric-card:hover, .market-card:hover, .stat-card:hover, .protocol-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
    border-color: rgba(76, 175, 80, 0.5);
}

.metric-card::before, .market-card::before, .stat-card::before, .protocol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    z-index: 1;
}

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

.metric-header h3, .market-card h3, .stat-card h3, .protocol-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-color);
    cursor: help;
}

.metric-value, .protocol-value, .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 8px 0;
    font-family: 'IBM Plex Mono', monospace;
}

.metric-change, .growth-indicator {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px 0 15px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
}

.positive {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.chart-container {
    margin-top: 10px;
    height: 150px;
    position: relative;
}

.chart {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.05) 0%, transparent 80%);
    border-radius: 8px;
}

.chart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(76, 175, 80, 0.2) 0%, 
                rgba(76, 175, 80, 0.1) 25%, 
                rgba(76, 175, 80, 0.05) 50%,
                rgba(76, 175, 80, 0.1) 75%,
                rgba(76, 175, 80, 0.2) 100%);
    opacity: 0.3;
    border-radius: 8px;
    pointer-events: none;
}

.chart-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.chart-tab {
    background: transparent;
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--text-secondary);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab.active, .chart-tab:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-color);
    border-color: rgba(76, 175, 80, 0.5);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(120deg, rgba(20, 30, 40, 0.8), rgba(10, 15, 25, 0.9));
    border-radius: 12px;
    margin: 30px 0;
    padding: 30px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100" stroke="rgba(76, 175, 80, 0.15)" stroke-width="0.5"/><path d="M0,20 L80,100" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M0,40 L60,100" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M0,60 L40,100" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M0,80 L20,100" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M20,0 L100,80" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M40,0 L100,60" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M60,0 L100,40" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/><path d="M80,0 L100,20" stroke="rgba(76, 175, 80, 0.1)" stroke-width="0.5"/></svg>');
    z-index: 0;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-button {
    background: linear-gradient(90deg, var(--accent-color), #388e3c);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.5);
    background: linear-gradient(90deg, #388e3c, var(--accent-color));
}

/* Token Table */
.token-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.token-table th, .token-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.token-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--text-color);
}

.token-icon.umb {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.token-icon.usud {
    background: linear-gradient(135deg, #26a69a, #00796b);
    color: white;
}

.token-icon.eth {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

.token-icon.btc {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.token-icon.usdt {
    background: linear-gradient(135deg, #009688, #00796b);
    color: white;
}

.change-positive {
    color: #4caf50;
    font-weight: 500;
}

.change-negative {
    color: #f44336;
    font-weight: 500;
}

/* User Activity & Protocol Cards */
.stat-card, .protocol-card {
    display: flex;
    flex-direction: column;
}

.stat-subtext, .protocol-subtext {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.muted {
    opacity: 0.7;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.mini-chart {
    height: 50px;
    margin-top: auto;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
    border-radius: 4px;
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(25, 35, 45, 0.95);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
    outline: none;
}

.submit-button {
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent, 
                var(--primary-color), 
                var(--secondary-color), 
                var(--primary-color), 
                transparent);
    opacity: 0.5;
}

.panel-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(123, 47, 255, 0.5);
    position: relative;
    display: inline-block;
}

.panel-header h2::before {
    content: '//';
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 400;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid rgba(123, 47, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.view-all:hover {
    background-color: rgba(123, 47, 255, 0.1);
    box-shadow: 0 0 10px rgba(123, 47, 255, 0.3);
    border-color: var(--primary-color);
}

.panel-body {
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 5px;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
                rgba(123, 47, 255, 0.0), 
                var(--primary-color),
                rgba(123, 47, 255, 0.0));
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(123, 47, 255, 0.1);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.data-table tr {
    transition: all 0.2s ease;
    position: relative;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: rgba(123, 47, 255, 0.05);
}

.data-table tr:hover {
    transform: translateX(5px);
}

.data-table tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.data-table tr:hover::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 47, 255, 0.7);
}

.hash, .address {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.hash a, .address a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
    background-color: rgba(123, 47, 255, 0.03);
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hash a:hover, .address a:hover {
    background-color: rgba(123, 47, 255, 0.1);
    box-shadow: 0 0 10px rgba(123, 47, 255, 0.3);
    transform: translateY(-2px);
    color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.pagination button {
    padding: 10px 18px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.pagination button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.15), transparent);
    transition: all 0.4s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: rgba(0, 230, 204, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pagination button:hover:not(:disabled)::before {
    left: 100%;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Validators Tab Styles */
.validators-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Wallet Tab Styles */
.wallet-input {
    display: flex;
    margin-bottom: 30px;
}

.wallet-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    background-color: rgba(10, 10, 20, 0.6);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    caret-color: var(--primary-color);
}

.wallet-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 0 5px rgba(0, 230, 204, 0.1);
}

.wallet-input button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 230, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.wallet-input button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.2), transparent);
    transition: all 0.4s ease;
}

.wallet-input button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 230, 204, 0.4);
}

.wallet-input button:hover::before {
    left: 100%;
}

.hidden {
    display: none;
}

.wallet-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 15px;
}

.copy-btn {
    padding: 5px 10px;
    background-color: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: rgba(123, 47, 255, 0.15);
    border-color: var(--primary-color);
}

.wallet-balances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.balance-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* API Tab Styles */
.api-intro {
    margin-bottom: 30px;
}

.api-base-url {
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.api-base-url h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

code {
    font-family: monospace;
    background-color: rgba(10, 10, 20, 0.8);
    padding: 5px 8px;
    border-radius: 4px;
    color: var(--primary-color);
}

.api-endpoints {
    display: grid;
    gap: 20px;
}

.api-endpoint {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.api-endpoint h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.api-endpoint code {
    display: inline-block;
    margin-bottom: 15px;
}

.api-endpoint p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.api-endpoint h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

pre {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    color: var(--text-color);
    font-family: monospace;
}

/* Search Results */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: rgba(10, 10, 20, 0.8);
    border-color: var(--primary-color);
}

/* Footer - Minimalist Design */
footer {
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(123, 47, 255, 0.15);
    margin-top: var(--space-xl);
}

.footer-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand img {
    height: 28px;
    width: 28px;
}

.footer-brand span {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(123, 47, 255, 0.1);
    border: 1px solid rgba(123, 47, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: rgba(123, 47, 255, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 47, 255, 0.3);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.95);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Desktop Footer */
@media (min-width: 768px) {
    .footer-minimal {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT OPTIMIZATION
   Mobile-first approach with 8pt grid spacing
   ═══════════════════════════════════════════════════════════ */

/* Desktop Layout (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 var(--space-xl);
    }
    
    main {
        padding: var(--space-xxl) 0;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
    
    .dashboard-stat {
        padding: var(--space-lg);
    }
    
    .dashboard-stat-value {
        font-size: 32px;
    }
    
    .nav-tabs .tab {
        padding: var(--space-md) var(--space-lg);
    }
    
    .nav-text {
        font-size: 15px;
    }
    
    .dashboard-module {
        padding: var(--space-xl);
    }
}

/* Tablet Layout (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    main {
        padding: var(--space-xl) 0;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .dashboard-stat-value {
        font-size: 26px;
    }
    
    .nav-tabs .tab {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Mobile Layout (< 768px) */
@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 var(--space-md);
    }
    
    main {
        padding: var(--space-lg) 0;
    }
    
    /* Header */
    header {
        padding: var(--space-sm) 0;
    }
    
    header .container {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    /* Search Box */
    .search-box {
        margin: var(--space-xs) 0;
        max-width: 100%;
        width: 100%;
    }
    
    .search-box input {
        padding: var(--space-sm) var(--space-md);
        font-size: 14px;
    }
    
    .search-box button {
        padding: 0 var(--space-sm);
        height: 44px;
        font-size: 13px;
    }
    
    /* Network Selector */
    .network-selector {
        display: none;
    }
    
    /* Navigation */
    nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs {
        padding: 0;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs .tab {
        padding: var(--space-sm) var(--space-md);
        flex-shrink: 0;
    }
    
    .nav-tabs .tab a {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 11px;
        letter-spacing: 0.01em;
    }
    
    /* Network Status Bar */
    .network-status-bar {
        padding: var(--space-xs) 0;
    }
    
    .network-status-content {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .blockchain-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .stat-item {
        font-size: 12px;
    }
    
    #status-block-height {
        font-size: 16px;
    }
    
    /* Dashboard Stats */
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    
    .dashboard-stat {
        padding: var(--space-md);
    }
    
    .dashboard-stat-label {
        font-size: 10px;
        letter-spacing: 0.03em;
    }
    
    .dashboard-stat-value {
        font-size: 20px;
    }
    
    .dashboard-stat-change {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Dashboard Modules */
    .dashboard-module {
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
        border-radius: var(--radius-md);
    }
    
    .dashboard-module-header h2 {
        font-size: 16px;
    }
    
    /* Network Overview */
    .status-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    
    .status-card {
        padding: var(--space-md);
    }
    
    .status-label {
        font-size: 11px;
    }
    
    .status-value {
        font-size: 18px;
    }
    
    /* Tables */
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-sm) var(--space-xs);
    }
    
    /* Footer */
    footer {
        padding: var(--space-lg) 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: var(--space-sm);
    }
    
    .footer-links-list {
        gap: var(--space-xs);
    }
    
    .footer-links-list li a {
        font-size: 13px;
    }
    
    /* Wallet */
    .wallet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    /* Block Details */
    .block-header {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .block-title h3 {
        font-size: 1.2rem;
    }
}

/* Small Mobile (< 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs .tab {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-text {
        font-size: 10px;
    }
    
    .dashboard-stat-value {
        font-size: 18px;
    }
}

/* TRON-inspired Block Details Styles */
.block-details-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, rgba(123, 47, 255, 0.1), rgba(0, 0, 0, 0.3));
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.block-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(123, 47, 255, 0.1),
        var(--primary-color),
        rgba(123, 47, 255, 0.1));
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.block-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 0 8px rgba(123, 47, 255, 0.5);
    letter-spacing: 1px;
}

.block-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.7);
}

.block-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(123, 47, 255, 0.2);
}

.time-icon {
    color: var(--primary-color);
}

.block-info-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .block-info-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

.block-info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(123, 47, 255, 0.2);
    transform: translateY(-2px);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.info-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: var(--text-color);
    word-break: break-all;
}

.info-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: rgba(123, 47, 255, 0.1);
    transform: scale(1.1);
}

.tabs-container {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 2px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-color);
    background-color: rgba(123, 47, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Additional tab-content styles - display rules are above with !important */
.tab-content.active {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
}

.transactions-list {
    min-height: 200px;
}

.no-data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    border: 1px dashed rgba(147, 51, 234, 0.2);
    margin: 15px 0;
}

.no-data-container p {
    font-size: 16px;
    margin-top: 10px;
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-style: italic;
}

/* Block info card hover effects */
.info-item:hover .info-label {
    color: var(--accent-color);
}

/* Confirmation counter for blocks */
.confirmation-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(147, 51, 234, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 10px;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.confirmation-count .count {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive design updates for block details */
@media (max-width: 768px) {
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .block-time {
        align-self: flex-start;
    }
    
    .block-info-card {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}