/* ============================================
   NEUROCHAIN - FUTURISTIC BLOCKCHAIN UI
   Cyberpunk / Sci-Fi Design System
   ============================================ */

/* ---- CSS Variables & Design Tokens ---- */
:root {
    /* Core Colors */
    --neon-cyan: #00f0ff;
    --neon-blue: #0066ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff006e;
    --neon-green: #00ff88;
    --neon-orange: #ff8800;

    /* Dark Theme Base */
    --bg-deep: #050508;
    --bg-dark: #0a0a12;
    --bg-panel: #0f0f1a;
    --bg-card: #131320;
    --bg-hover: #1a1a2e;
    --bg-active: #222240;

    /* Text Colors */
    --text-primary: #e0e0f0;
    --text-secondary: #8a8ab0;
    --text-muted: #505070;
    --text-glow: #00f0ff;

    /* Borders & Accents */
    --border-subtle: rgba(255,255,255,0.06);
    --border-glow: rgba(0, 240, 255, 0.3);
    --border-active: rgba(0, 240, 255, 0.6);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    --gradient-glow: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    --gradient-card: linear-gradient(180deg, rgba(0,240,255,0.03) 0%, transparent 100%);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ---- Background Effects ---- */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    opacity: 0.5;
}

.vignette {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5,5,8,0.4) 100%);
}

#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- App Layout ---- */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 260px;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar-brand {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px rgba(0,240,255,0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.brand-version {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-lg) 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--neon-cyan);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--neon-cyan));
}

.nav-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    margin-left: auto;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.admin-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 0, 110, 0.15);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 110, 0.3);
    margin-left: auto;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-panel);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.status-dot.online::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--neon-green);
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 1px;
}

.block-height {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.block-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.3);
}

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
}

.bc-protocol {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0,240,255,0.3);
}

.bc-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bc-page {
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.btn-icon:hover {
    color: var(--neon-cyan);
    background: rgba(0,240,255,0.1);
}

/* ---- Content Area ---- */
.content-area {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
}

/* Panels */
.panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.panel-title h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.panel-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.panel-stats {
    display: flex;
    gap: var(--space-sm);
}

.stat-pill {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

.panel-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ---- Buttons ---- */
.btn-glow {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    background: rgba(255, 0, 110, 0.05);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover .btn-shimmer {
    left: 100%;
}

.btn-icon-svg {
    display: flex;
    align-items: center;
}

/* ---- Forms ---- */
.futuristic-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-normal);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-suffix {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.input-group input:focus ~ .input-glow,
.input-group select:focus ~ .input-glow {
    width: 100%;
}


/* ---- Auth Mode Toggle ---- */
.auth-mode-toggle {
    display: flex;
    position: relative;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-subtle);
}

.mode-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2;
    border-radius: 6px;
}

.mode-btn.active {
    color: var(--neon-cyan);
}

.mode-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--bg-hover);
    border-radius: 6px;
    border: 1px solid var(--border-glow);
    transition: transform var(--transition-normal);
    z-index: 1;
}

.mode-indicator.create {
    transform: translateX(100%);
}

/* ---- Modal ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-2xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-card), 0 0 40px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--neon-cyan);
    opacity: 0.5;
}

.modal-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.modal-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.modal-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.modal-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--neon-cyan);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: var(--space-xs);
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-body {
    margin-bottom: var(--space-xl);
}

.modal-body .input-group {
    margin-bottom: var(--space-lg);
}

.modal-body input {
    background: var(--bg-dark);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.modal-body input:focus ~ .input-line {
    width: 100%;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ---- Ledger Panel ---- */
.ledger-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    border-top: 2px solid var(--neon-orange);
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--neon-orange);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

/* Block Cards */
.block-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: blockSlideIn 0.4s ease;
}

@keyframes blockSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.block-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.block-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.block-card.genesis::before {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.block-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.block-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    letter-spacing: 1px;
}

.block-type.genesis {
    background: rgba(176, 38, 255, 0.1);
    color: var(--neon-purple);
    border-color: rgba(176, 38, 255, 0.2);
}

.block-details {
    display: grid;
    gap: var(--space-sm);
}

.block-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.block-field-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.block-field-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
    background: var(--bg-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.block-field-value.hash {
    color: var(--neon-cyan);
    font-size: 0.75rem;
}

.block-timestamp {
    margin-top: var(--space-md);
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---- Network Panel ---- */
.network-visualization {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-visualization::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(176, 38, 255, 0.03) 0%, transparent 50%);
}

.network-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.network-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.network-ring::after {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px dashed rgba(176, 38, 255, 0.15);
    border-radius: 50%;
    animation: ringRotate 15s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.network-node-visual {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: nodeFloat 3s ease-in-out infinite;
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.account-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.account-card:hover::before {
    opacity: 1;
}

.account-card.admin {
    border-top: 2px solid var(--neon-pink);
}

.account-card.admin::before {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    opacity: 0.5;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.account-email {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    word-break: break-all;
}

.account-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    letter-spacing: 1px;
    white-space: nowrap;
}

.account-badge.admin {
    background: rgba(255, 0, 110, 0.1);
    color: var(--neon-pink);
    border-color: rgba(255, 0, 110, 0.2);
}

.account-balance {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.balance-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.balance-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---- Transfer Panel ---- */
.transfer-interface {
    max-width: 800px;
}

.transfer-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.transfer-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.node-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
}

.node-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.node.active .node-core {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.node-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.node.active .node-label {
    color: var(--neon-cyan);
}

.transfer-beam {
    flex: 1;
    max-width: 200px;
    height: 2px;
    position: relative;
    background: var(--border-subtle);
}

.beam-line {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.beam-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.beam-particles::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: beamTravel 2s linear infinite;
}

@keyframes beamTravel {
    from { left: -20px; }
    to { left: 100%; }
}

.transfer-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
}

/* ---- Admin Panel ---- */
.admin-badge-large {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: var(--space-xs) var(--space-md);
    border-radius: 4px;
    background: rgba(255, 0, 110, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 110, 0.3);
    letter-spacing: 2px;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-2xl);
    text-align: center;
    border-top: 2px solid var(--neon-pink);
}

.admin-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: 16px;
    color: var(--neon-pink);
}

.admin-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.admin-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.admin-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }

    .main-content {
        margin-left: 0;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: var(--space-md);
    }

    .panel-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .transfer-nodes {
        flex-direction: column;
    }

    .transfer-beam {
        width: 2px;
        height: 60px;
        max-width: none;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
}