.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef5fb,#d4e6f7);padding:20px}.login-box{background:#fff;padding:40px;border-radius:16px;box-shadow:0 18px 50px #1f5c9f26;width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:28px;color:#1f5c9f;margin-bottom:8px;font-weight:600}.login-header p{color:#4a6380;font-size:14px}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:500;color:#4a5568}.form-group input{padding:12px;border:2px solid #e2e8f0;border-radius:8px;font-size:14px;transition:all .2s}.form-group input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db29}.login-button{padding:12px;background:linear-gradient(135deg,#3498db,#2f80c9);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:8px}.login-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px #3498db59}.login-button:active{transform:translateY(0)}.demo-button{padding:12px;background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:12px}.demo-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px #f39c1259}.demo-button:active{transform:translateY(0)}.error-message{color:#e53e3e;font-size:14px;text-align:center;padding:8px;background:#fed7d7;border-radius:6px}.core-metrics-panel{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000001a;margin-bottom:30px}.core-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #f7fafc}.core-subtitle{margin-top:6px;font-size:12px;color:#4a6380;letter-spacing:.3px}.core-header h2{font-size:20px;color:#2d3748;font-weight:600}.emergency-stop-button{padding:10px 20px;background:linear-gradient(135deg,#3498db,#2f80c9);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 6px #3498db59}.emergency-stop-button:hover{transform:translateY(-2px);box-shadow:0 6px 16px #3498db66}.emergency-stop-button:active{transform:translateY(0)}.core-metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:20px}.core-metric-row{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:14px}.pnl-card .metric-value{font-size:28px}.core-metric-card{display:flex;align-items:center;gap:16px;padding:20px;background:#f7fafc;border-radius:10px;border:2px solid #e2e8f0;transition:all .2s}.core-metric-card:hover{border-color:#3498db;box-shadow:0 6px 18px #3498db33}.metric-icon{font-size:14px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0;color:#fff;font-weight:700;letter-spacing:.5px}.metric-icon.nav{background:linear-gradient(135deg,#3498db,#2f80c9)}.metric-icon.drawdown{background:linear-gradient(135deg,#5dade2,#2e86de)}.metric-icon.leverage{background:linear-gradient(135deg,#2e86de,#1f5c9f)}.metric-icon.protection{background:linear-gradient(135deg,#1f5c9f,#154273)}.metric-content{flex:1;display:flex;flex-direction:column;gap:4px}.metric-label{font-size:12px;color:#718096;font-weight:500}.metric-value{font-size:24px;font-weight:700;color:#2d3748;line-height:1.2}.metric-value.positive{color:#3498db}.metric-value.negative{color:#d35400}.metric-change{font-size:12px;font-weight:600}.metric-change.positive{color:#3498db}.metric-change.negative{color:#e53e3e}.metric-sub{font-size:11px;color:#718096;margin-top:2px}.metric-sub .warning{color:#d35400;font-weight:600}.metric-sub .safe{color:#3498db;font-weight:600}.metric-status{font-size:18px;font-weight:700;margin-top:4px}.metric-status.enabled{color:#3498db}.metric-status.disabled{color:#e53e3e}.risk-indicator{display:flex;justify-content:center;padding-top:16px;border-top:2px solid #f7fafc}.risk-badge{padding:8px 20px;border-radius:20px;font-size:14px;font-weight:600}.risk-badge.low{background:#3498db26;color:#1f5c9f}.risk-badge.medium{background:#f39c1226;color:#a56708}.risk-badge.high{background:#e74c3c26;color:#a93226}@media (max-width: 1200px){.core-metrics-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.core-metrics-grid{grid-template-columns:1fr}.core-header{flex-direction:column;gap:16px;align-items:flex-start}.emergency-stop-button{width:100%}}.nav-chart-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000001a}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:16px}.card-header h2{font-size:20px;color:#2d3748;font-weight:600}.nav-stats{display:flex;gap:24px;flex-wrap:wrap}.stat-item{display:flex;flex-direction:column;gap:4px}.stat-label{font-size:12px;color:#718096}.stat-value{font-size:18px;font-weight:600}@media (max-width: 768px){.nav-stats{width:100%}.stat-item{flex:1}}.control-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000001a;height:100%;display:flex;flex-direction:column}.control-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:2px solid #f7fafc}.control-header h3{font-size:18px;color:#2d3748;font-weight:600}.status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.status-badge.safe{background:#3498db29;color:#1f5c9f}.status-badge.warning{background:#f39c1229;color:#a56708}.status-badge.danger{background:#e74c3c29;color:#a93226}.control-content{flex:1;display:flex;flex-direction:column}.leverage-display,.drawdown-display{margin-bottom:24px}.leverage-value,.drawdown-value{display:flex;flex-direction:column;align-items:center;margin-bottom:16px}.value-number{font-size:32px;font-weight:700;color:#2d3748;margin-bottom:4px}.value-number.positive{color:#3498db}.value-number.negative{color:#e53e3e}.value-label{font-size:14px;color:#718096}.leverage-progress,.drawdown-progress{margin-top:12px}.progress-bar{height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden;margin-bottom:8px}.progress-fill{height:100%;background:linear-gradient(135deg,#3498db,#2f80c9);transition:width .3s;border-radius:4px}.progress-fill.warning{background:linear-gradient(135deg,#f39c12,#d68910)}.progress-fill.danger{background:#e53e3e}.progress-labels{display:flex;justify-content:space-between;font-size:12px;color:#718096}.leverage-stats,.drawdown-stats,.token-pool-stats,.position-stats{display:flex;flex-direction:column;gap:12px}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f7fafc}.stat-row:last-child{border-bottom:none}.stat-name{font-size:14px;color:#718096}.stat-value{font-size:14px;font-weight:600;color:#2d3748}.stat-value.positive{color:#3498db}.stat-value.warning{color:#d35400}.stat-value.negative{color:#e53e3e}.stop-loss-controls{margin-top:24px;padding-top:20px;border-top:2px solid #f7fafc;display:flex;flex-direction:column;gap:16px}.auto-stop-loss-section{display:flex;flex-direction:column;gap:8px}.auto-stop-loss-header{display:flex;justify-content:space-between;align-items:center}.auto-stop-loss-label{font-size:14px;font-weight:600;color:#2d3748}.toggle-button{padding:6px 16px;border:2px solid;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s}.toggle-button.enabled{background:#3498db29;color:#1f5c9f;border-color:#3498db}.toggle-button.enabled:hover{background:#3498db47}.toggle-button.disabled{background:#e74c3c29;color:#a93226;border-color:#e74c3c}.toggle-button.disabled:hover{background:#e74c3c47}.auto-stop-loss-desc{font-size:12px;color:#718096;line-height:1.5;padding:8px 12px;background:#f7fafc;border-radius:6px;border-left:3px solid #3498db}.stop-logic-panel{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.logic-item{background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0;padding:16px}.logic-title{font-size:14px;font-weight:600;color:#1f5c9f;margin-bottom:8px}.logic-desc{font-size:12px;color:#4a5568;line-height:1.6}.emergency-stop-btn{padding:12px 20px;background:linear-gradient(135deg,#3498db,#2f80c9);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 6px #3498db59;width:100%}.emergency-stop-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #3498db66}.emergency-stop-btn:active{transform:translateY(0)}@media (max-width: 768px){.stop-logic-panel{grid-template-columns:1fr}}.token-pool-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:2px solid #e2e8f0}.token-pool-tabs button{padding:10px 16px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;color:#718096;transition:all .2s;margin-bottom:-2px}.token-pool-tabs button:hover{color:#1f5c9f}.token-pool-tabs button.tab-active{color:#3498db;border-bottom-color:#3498db;font-weight:600}.token-list{margin-top:20px}.token-list-header{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.token-list-header p{font-size:12px;color:#4a6380}.token-list h4{font-size:14px;color:#4a5568;margin-bottom:12px;font-weight:600}.token-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;max-height:220px;overflow-y:auto;padding:12px;background:#f7fafc;border-radius:8px}.token-item{padding:6px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;text-align:center;font-size:12px;color:#2d3748;font-weight:500}.blacklist-groups{display:flex;flex-direction:column;gap:16px}.blacklist-category{padding:16px;background:#f7fafc;border-radius:10px;border:1px solid #e2e8f0}.blacklist-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.blacklist-title{font-size:14px;font-weight:600;color:#1f5c9f}.blacklist-count{padding:4px 10px;border-radius:999px;background:#3498db26;color:#1f5c9f;font-size:12px;font-weight:600}.blacklist-desc{font-size:12px;color:#4a5568;margin-bottom:10px;line-height:1.6}.category-grid{display:flex;flex-wrap:wrap;gap:8px}.token-tag{padding:6px 12px;background:#fff;border:1px solid #b0cce2;border-radius:16px;font-size:12px;color:#1f5c9f;font-weight:500}.token-grid::-webkit-scrollbar{width:6px}.token-grid::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.token-grid::-webkit-scrollbar-thumb{background:#b0cce2;border-radius:3px}.token-grid::-webkit-scrollbar-thumb:hover{background:#8cb6d6}@media (max-width: 768px){.token-grid{max-height:260px}.blacklist-category{padding:14px}}.position-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.position-stat-card{padding:16px;background:#f7fafc;border-radius:8px;text-align:center;border:2px solid #e2e8f0}.position-stat-card.long{border-color:#3498db73;background:#3498db14}.position-stat-card.short{border-color:#e74c3c59;background:#e74c3c14}.position-label{display:block;font-size:12px;color:#718096;margin-bottom:8px}.position-value{display:block;font-size:20px;font-weight:600;color:#2d3748}.top-positions{margin-top:20px}.top-positions h4{font-size:14px;color:#4a5568;margin-bottom:12px;font-weight:600}.positions-list{display:flex;flex-direction:column;gap:12px}.position-item{display:flex;gap:12px;padding:12px;background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0}.position-rank{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#3498db;color:#fff;border-radius:6px;font-size:14px;font-weight:600;flex-shrink:0}.position-info{flex:1;display:flex;flex-direction:column;gap:8px}.position-header{display:flex;justify-content:space-between;align-items:center}.position-token{font-size:14px;font-weight:600;color:#2d3748}.position-type{padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500}.position-type.long{background:#3498db29;color:#1f5c9f}.position-type.short{background:#e74c3c29;color:#a93226}.position-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}.position-bar-fill{height:100%;background:linear-gradient(135deg,#3498db,#2f80c9);transition:width .3s}.position-bar-fill.exceeded{background:#e53e3e}.position-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px}.position-percentage{color:#4a5568;font-weight:500}.warning-text{color:#d35400;font-weight:600}.position-value-usd{color:#4a5568}.dashboard{min-height:100vh;background:#f3f6fb}.dashboard-header{background:linear-gradient(135deg,#fff,#eef5fb);border-bottom:1px solid #d4e6f7;padding:20px 40px;box-shadow:0 4px 16px #1f5c9f14}.header-content{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.brand-block{display:flex;flex-direction:column;gap:6px}.dashboard-header h1{font-size:24px;color:#1f5c9f;font-weight:600}.brand-subtitle{font-size:12px;color:#4a6380;letter-spacing:.4px}.logout-button{padding:8px 20px;background:#fff;color:#1f5c9f;border:1px solid #b0cce2;border-radius:6px;font-size:14px;cursor:pointer;transition:all .2s}.logout-button:hover{background:#1f5c9f;color:#fff;border-color:#1f5c9f}.dashboard-main{max-width:1400px;margin:0 auto;padding:30px 40px}.core-section,.chart-section{margin-bottom:30px}.controls-section{margin-top:30px}.control-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 1024px){.control-grid{grid-template-columns:1fr}}@media (max-width: 768px){.dashboard-main{padding:20px}.dashboard-header{padding:15px 20px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fa}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:100%;min-height:100vh}
