:root{--primary-blue: #1e40af;--primary-blue-light: #3b82f6;--primary-blue-dark: #1e3a8a;--secondary-gray: #6b7280;--background-gray: #f8fafc;--border-gray: #e5e7eb;--text-primary: #111827;--text-secondary: #6b7280;--success-green: #059669;--error-red: #dc2626;--warning-orange: #d97706;--white: #ffffff;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--border-radius: 6px;--border-radius-lg: 8px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}*{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--font-family);background-color:var(--background-gray);color:var(--text-primary);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dashboard-container{min-height:100vh;display:flex;flex-direction:column}.dashboard-header{background:var(--white);border-bottom:1px solid var(--border-gray);padding:1rem 2rem;box-shadow:var(--shadow-sm)}.header-content{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.header-content h1{font-size:1.5rem;font-weight:600;color:var(--text-primary);letter-spacing:-.025em}.connection-indicator{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:500}.status-dot{width:8px;height:8px;border-radius:50%;background-color:var(--error-red);transition:background-color .2s}.status-dot.connected{background-color:var(--success-green)}.status-dot.disconnected{background-color:var(--error-red)}.dashboard-main{flex:1;max-width:1800px;margin:0 auto;padding:2rem;width:100%}.stats-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:var(--white);border:1px solid var(--border-gray);border-radius:var(--border-radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm)}.stat-label{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin-bottom:.5rem}.stat-value{font-size:1.5rem;font-weight:600;color:var(--text-primary)}.dashboard-grid{display:grid;grid-template-columns:600px 1fr;gap:2rem}@media (max-width: 1024px){.dashboard-grid{grid-template-columns:1fr}}.control-panel,.price-panel{background:var(--white);border:1px solid var(--border-gray);border-radius:var(--border-radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}.panel-header{background:#f9fafb;border-bottom:1px solid var(--border-gray);padding:1rem 1.5rem;display:flex;justify-content:space-between;align-items:center}.panel-header h2{font-size:1rem;font-weight:600;color:var(--text-primary)}.control-panel{height:fit-content}.input-group{padding:1.5rem;border-bottom:1px solid var(--border-gray);display:flex;gap:.75rem}.token-input{flex:1;padding:.625rem .75rem;border:1px solid var(--border-gray);border-radius:var(--border-radius);font-size:.875rem;background:var(--white);transition:border-color .2s,box-shadow .2s}.token-input:focus{outline:none;border-color:var(--primary-blue);box-shadow:0 0 0 3px #3b82f61a}.token-input::placeholder{color:var(--text-secondary)}.btn{padding:.625rem 1rem;border:none;border-radius:var(--border-radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background-color:var(--primary-blue);color:var(--white)}.btn-primary:hover:not(:disabled){background-color:var(--primary-blue-dark)}.btn-secondary{background-color:var(--secondary-gray);color:var(--white)}.btn-secondary:hover:not(:disabled){background-color:#4b5563}.btn-outline{background-color:var(--white);color:var(--text-primary);border:1px solid var(--border-gray)}.btn-outline:hover:not(:disabled){background-color:#f9fafb}.btn-sm{padding:.375rem .75rem;font-size:.75rem}.subscribed-section{padding:1.5rem;border-bottom:1px solid var(--border-gray)}.section-label{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin-bottom:.75rem}.subscribed-tokens{min-height:120px;max-height:200px;overflow-y:auto}.subscription-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;margin-bottom:.5rem;background:#f9fafb;border:1px solid var(--border-gray);border-radius:var(--border-radius);font-size:.875rem}.token-name{font-weight:500;color:var(--text-primary)}.remove-btn{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.25rem;border-radius:3px;font-size:1rem;line-height:1;transition:color .2s,background-color .2s}.remove-btn:hover{color:var(--error-red);background-color:#fef2f2}.empty-subscriptions{text-align:center;color:var(--text-secondary);font-size:.875rem;padding:2rem 1rem}.action-buttons{padding:1.5rem;display:flex;gap:.75rem}.action-buttons .btn{flex:1}.feed-controls{display:flex;gap:.5rem}.price-feed{height:600px;overflow-y:auto;padding:1rem;background:#fafbfc}.price-feed::-webkit-scrollbar{width:6px}.price-feed::-webkit-scrollbar-track{background:#f1f5f9}.price-feed::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.price-feed::-webkit-scrollbar-thumb:hover{background:#94a3b8}.price-item{background:var(--white);border:1px solid var(--border-gray);border-radius:var(--border-radius);padding:1rem;margin-bottom:.75rem;transition:border-color .2s;animation:slideIn .3s ease-out}.price-item:hover{border-color:var(--primary-blue-light)}.price-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.contract-id{font-weight:600;color:var(--text-primary);font-size:.875rem}.timestamp{font-size:.75rem;color:var(--text-secondary)}.price-value{font-size:1.25rem;font-weight:700;color:var(--success-green);margin-bottom:.25rem}.price-source{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em}.system-message{background:#f8fafc;border:1px solid var(--border-gray);border-left:4px solid var(--primary-blue);border-radius:var(--border-radius);padding:.75rem;margin-bottom:.75rem;animation:slideIn .3s ease-out}.system-message.error{border-left-color:var(--error-red);background:#fef2f2}.message-content{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.message-icon{font-size:.875rem}.message-text{font-size:.875rem;color:var(--text-primary)}.message-time{font-size:.75rem;color:var(--text-secondary)}.empty-state{text-align:center}.debug-app{min-height:100vh;background:#0a0a0a;color:#e0e0e0}.debug-app.light{background:#f8fafc;color:#1e293b}.app-header{background:linear-gradient(135deg,#1e293b,#334155);border-bottom:3px solid #4ade80;padding:20px 0;box-shadow:0 4px 6px #0000001a}.app-header .header-content{max-width:1400px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center}.header-left h1{margin:0;color:#4ade80;font-size:2rem;font-weight:700}.host-info{margin:8px 0 0;color:#94a3b8;font-size:.9rem}.host-info code{background:#4ade8033;color:#4ade80;padding:2px 6px;border-radius:3px;font-family:Monaco,monospace}.theme-toggle{padding:8px 16px;background:#4ade80;color:#0a0a0a;border:none;border-radius:6px;font-weight:700;cursor:pointer;transition:all .2s}.theme-toggle:hover{background:#22c55e;transform:translateY(-1px)}.app-main{min-height:calc(100vh - 140px);padding:20px 0}.app-footer{background:#1a1a1a;border-top:1px solid #333;padding:20px 0;margin-top:40px}.app-footer .footer-content{max-width:1400px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center}.footer-content p{margin:0;color:#6b7280}.footer-links{display:flex;gap:20px}.footer-links a{color:#60a5fa;text-decoration:none;transition:color .2s}.footer-links a:hover{color:#3b82f6}@media (max-width: 768px){.app-header .header-content,.app-footer .footer-content{flex-direction:column;align-items:stretch;gap:16px}.header-left h1{font-size:1.5rem}.footer-links{justify-content:center}}.balance-debugger{max-width:1400px;margin:0 auto;padding:20px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;background:#0a0a0a;color:#e0e0e0;border-radius:8px;box-shadow:0 4px 6px #0000004d}.debugger-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #333}.debugger-header h2{margin:0;color:#4ade80;font-size:1.5rem}.connection-status{display:flex;gap:16px;align-items:center;font-size:.9rem}.status-indicator{padding:4px 8px;border-radius:4px;font-weight:700}.status-indicator.connected{background:#4ade8033;color:#4ade80}.status-indicator.disconnected{background:#ef444433;color:#ef4444}.prices-count,.last-update{background:#3b82f633;color:#60a5fa;padding:4px 8px;border-radius:4px}.user-input-section{margin-bottom:24px;padding:16px;background:#1a1a1a;border-radius:6px;border:1px solid #333}.input-group{display:flex;gap:12px;align-items:center;margin-bottom:12px}.input-group label{font-weight:700;color:#a3a3a3;min-width:120px}.user-input{flex:1;padding:8px 12px;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#e0e0e0;font-family:Monaco,monospace;font-size:.9rem}.user-input:focus{outline:none;border-color:#4ade80;box-shadow:0 0 0 2px #4ade8033}.load-btn,.clear-btn{padding:8px 16px;border:none;border-radius:4px;font-weight:700;cursor:pointer;transition:all .2s}.load-btn{background:#4ade80;color:#0a0a0a}.load-btn:hover{background:#22c55e}.clear-btn{background:#ef4444;color:#fff}.clear-btn:hover{background:#dc2626}.active-user{color:#60a5fa;font-size:.9rem}.active-user code{background:#3b82f633;padding:2px 6px;border-radius:3px;font-family:Monaco,monospace}.controls-section{display:flex;gap:24px;margin-bottom:24px;padding:16px;background:#1a1a1a;border-radius:6px;border:1px solid #333;flex-wrap:wrap}.filter-group,.options-group{display:flex;gap:12px;align-items:center}.filter-group label,.options-group label{font-weight:700;color:#a3a3a3}.filter-input,.sort-select{padding:6px 10px;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#e0e0e0;font-family:Monaco,monospace}.filter-input:focus,.sort-select:focus{outline:none;border-color:#4ade80}.options-group input[type=checkbox]{margin-right:6px}.balances-section{margin-bottom:24px}.balances-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.balances-header h3{margin:0;color:#fbbf24}.no-balances{color:#6b7280;font-style:italic}.balances-table{background:#1a1a1a;border-radius:6px;overflow:hidden;border:1px solid #333}.table-header,.table-row{display:grid;grid-template-columns:1fr 2fr 1.5fr 1.5fr 2fr 1.5fr;gap:16px;padding:12px 16px}.table-header{background:#2a2a2a;font-weight:700;color:#a3a3a3;border-bottom:1px solid #444}.table-row{border-bottom:1px solid #333;transition:background-color .2s}.table-row:hover{background:#2a2a2a}.table-row:last-child{border-bottom:none}.col-symbol{display:flex;align-items:center;gap:6px;font-weight:700}.subnet-badge{font-size:.8rem;opacity:.8}.col-name{color:#a3a3a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.col-balance,.col-subnet{font-family:Monaco,monospace}.balance-value{font-weight:700;color:#4ade80}.balance-raw{font-size:.8rem;color:#6b7280;margin-top:2px}.subnet-contract{font-size:.8rem;color:#60a5fa;margin-top:2px}.no-subnet{color:#6b7280;font-style:italic}.col-contract{font-family:Monaco,monospace;color:#a78bfa;font-size:.9rem}.col-meta{font-size:.8rem}.meta-item{color:#6b7280;margin-bottom:2px}.meta-item:last-child{margin-bottom:0}.debug-info-section{margin-top:24px}.debug-info-section details{background:#1a1a1a;border-radius:6px;border:1px solid #333}.debug-info-section summary{padding:12px 16px;cursor:pointer;font-weight:700;color:#fbbf24}.debug-info-section summary:hover{background:#2a2a2a}.debug-info{padding:16px;border-top:1px solid #333}.debug-item{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #333}.debug-item:last-child{border-bottom:none}.debug-item strong{color:#a3a3a3}@media (max-width: 1200px){.table-header,.table-row{grid-template-columns:1fr 2fr 1.2fr 1.2fr 1.5fr 1fr;gap:12px}}@media (max-width: 900px){.table-header,.table-row{grid-template-columns:1fr 1.5fr 1fr 1fr 1.2fr .8fr;gap:8px;font-size:.9rem}.controls-section,.input-group{flex-direction:column;align-items:stretch}.input-group label{min-width:auto;margin-bottom:6px}}@media (max-width: 600px){.balance-debugger{padding:12px}.debugger-header{flex-direction:column;align-items:stretch;gap:12px}.connection-status{flex-direction:column;align-items:stretch;gap:8px}.table-header,.table-row{grid-template-columns:1fr;gap:8px}.table-header>div,.table-row>div{padding:4px 0}.table-header>div:before{content:attr(class);font-weight:700;display:block;text-transform:capitalize;color:#4ade80;margin-bottom:4px}}
