:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0;min-width:320px;min-height:100vh;width:100%;height:100vh;overflow:hidden}#root{width:100%;height:100vh;overflow:hidden}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.loading-container{text-align:center;padding:4rem 2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px}.loader-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;animation:pulse-loader 1.5s ease-in-out infinite;box-shadow:0 0 20px #667eea80}.orb-1{background:linear-gradient(135deg,#667eea,#764ba2);animation:orbit-loader 2s linear infinite;box-shadow:0 0 15px #667eea99}.orb-2{background:linear-gradient(135deg,#f093fb,#f5576c);animation:orbit-loader 2s linear infinite .5s;box-shadow:0 0 15px #f093fb99}.orb-3{background:linear-gradient(135deg,#4facfe,#00f2fe);animation:orbit-loader 2s linear infinite 1s;box-shadow:0 0 15px #4facfe99}.orb-4{background:linear-gradient(135deg,#43e97b,#38f9d7);animation:orbit-loader 2s linear infinite 1.5s;box-shadow:0 0 15px #43e97b99}@keyframes orbit-loader{0%{transform:translate(-50%,-50%) rotate(0) translate(50px) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg) translate(50px) rotate(-360deg)}}@keyframes pulse-loader{0%,to{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.2);opacity:.8}}.loading-dots span{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);animation:bounce-loader 1.4s ease-in-out infinite;box-shadow:0 2px 8px #667eea66}@keyframes bounce-loader{0%,80%,to{transform:translateY(0) scale(1);opacity:.7}40%{transform:translateY(-15px) scale(1.1);opacity:1}}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;min-height:400px}.loading-spinner .modern-loader{margin-bottom:2rem}.container{width:100%;max-width:800px;margin:0 auto;padding:2rem;text-align:center}.welcome-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:20px;padding:3rem 2rem;box-shadow:0 20px 60px #0000004d;color:#fff}h1{margin:0 0 .5rem;font-size:2.5rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.subtitle{font-size:1.2rem;margin:0 0 2rem;opacity:.9}.status-section{margin-top:2rem;padding:2rem;background:#ffffff1a;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status{display:flex;flex-direction:column;align-items:center;gap:1rem}.spinner{border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}.status-icon{font-size:3rem;line-height:1}.status.success .status-icon{color:#4ade80}.status.warning .status-icon{color:#fbbf24}.status.error .status-icon{color:#f87171}.status-text{font-size:1.5rem;font-weight:600;margin:0}.error-message{font-size:.9rem;opacity:.8;margin:.5rem 0 0}@media (max-width: 640px){.welcome-card{padding:2rem 1rem}h1{font-size:1.8rem}.subtitle{font-size:1rem}.status-text{font-size:1.2rem}}.kite-connection{display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease}.kite-connection.connected{border-color:#10b9814d;background:#10b9810d}.kite-connection.disconnected{border-color:#ef44444d;background:#ef44440d}.kite-connection.loading{justify-content:center;padding:.5rem 1rem}.kite-status{display:flex;align-items:center;gap:.75rem}.status-dot{width:12px;height:12px;border-radius:50%;position:relative}.status-dot.active{background:#10b981;animation:pulse-glow 2s ease-in-out infinite}.status-dot.inactive{background:#ef4444}@keyframes pulse-glow{0%,to{box-shadow:0 0 #10b981b3}50%{box-shadow:0 0 0 6px #10b98100}}.status-info{display:flex;flex-direction:column;gap:.2rem}.status-label{font-size:.7rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.status-text{font-size:.9rem;font-weight:600;color:#fff}.kite-connect-btn{display:flex;align-items:center;gap:.5rem;padding:.6rem 1.2rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap}.kite-connect-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #ec489966}.kite-login-time{display:flex;align-items:center;gap:.4rem;padding:.4rem .8rem;background:#0003;border-radius:6px;font-size:.8rem;color:#9ca3af;white-space:nowrap}.time-icon{font-size:.9rem}.time-text{font-size:.8rem;color:#d1d5db}.kite-indicators{display:flex;gap:.75rem}.indicator{display:flex;align-items:center;gap:.4rem;padding:.4rem .8rem;background:#0003;border-radius:6px;font-size:.85rem;color:#9ca3af;transition:all .3s ease}.indicator.active{background:#10b98126;color:#10b981;border:1px solid rgba(16,185,129,.3)}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.1);border-top-color:#ec4899;border-radius:50%;animation:spin .8s linear infinite}@media (max-width: 768px){.kite-connection{flex-direction:column;padding:.75rem}.kite-connect-btn{width:100%;justify-content:center}}.killswitch-indicator{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.25rem;background:#ffffff0d;border-radius:12px;border:2px solid;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;transition:all .3s ease;-webkit-user-select:none;user-select:none}.killswitch-indicator.enabled{border-color:#ef4444;background:#ef444426;animation:pulse-danger-border 2s ease-in-out infinite}.killswitch-indicator.disabled{border-color:#10b9814d;background:#10b9810d}.killswitch-indicator.loading{border-color:#8b5cf64d;background:#8b5cf60d}.killswitch-indicator:hover{transform:translateY(-2px);box-shadow:0 5px 15px #0000004d}@keyframes pulse-danger-border{0%,to{border-color:#ef4444;box-shadow:0 0 #ef4444b3}50%{border-color:#dc2626;box-shadow:0 0 0 8px #ef444400}}.indicator-dot{width:12px;height:12px;border-radius:50%;position:relative}.indicator-dot.active{background:#ef4444;animation:pulse-glow-red 1.5s ease-in-out infinite}.indicator-dot.inactive{background:#10b981}.killswitch-indicator.loading .indicator-dot{background:#8b5cf6;animation:pulse-glow-purple 1.5s ease-in-out infinite}@keyframes pulse-glow-red{0%,to{box-shadow:0 0 #ef4444b3}50%{box-shadow:0 0 0 6px #ef444400}}@keyframes pulse-glow-purple{0%,to{box-shadow:0 0 #8b5cf6b3}50%{box-shadow:0 0 0 6px #8b5cf600}}.indicator-content{display:flex;flex-direction:column;gap:.2rem}.indicator-label{font-size:.7rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.indicator-status{font-size:.95rem;font-weight:700;color:#fff}.killswitch-indicator.enabled .indicator-status{color:#ef4444}.killswitch-indicator.disabled .indicator-status{color:#10b981}.alert-icon{font-size:1.3rem;animation:shake-alert .5s ease infinite}@keyframes shake-alert{0%,to{transform:rotate(0)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@media (max-width: 768px){.killswitch-indicator{padding:.6rem 1rem}.indicator-label{font-size:.65rem}.indicator-status{font-size:.85rem}.alert-icon{font-size:1.1rem}}.dashboard-layout{display:flex;width:100%;height:100vh;background:linear-gradient(135deg,#0f172a,#1e1b4b);color:#fff;overflow:hidden}.dashboard-sidebar{width:260px;background:#ffffff08;border-right:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);flex-shrink:0;height:100vh;overflow-y:auto;overflow-x:hidden}.sidebar-header{padding:1.5rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0}.logo{display:flex;align-items:center;gap:.6rem;margin:0 0 .4rem;font-size:1.3rem;font-weight:700}.logo-icon{font-size:1.8rem}.logo-text{background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.logo-subtitle{margin:0;font-size:.75rem;color:#9ca3af;text-transform:uppercase;letter-spacing:1px}.sidebar-nav{flex:1;padding:1rem .75rem;display:flex;flex-direction:column;gap:.4rem;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:.85rem;padding:.75rem .9rem;border-radius:10px;text-decoration:none;color:#9ca3af;font-size:.9rem;font-weight:500;transition:all .3s ease;position:relative}.nav-item:hover{background:#ffffff0d;color:#fff}.nav-item.active{background:linear-gradient(135deg,#ec489933,#8b5cf633);color:#fff;border:1px solid rgba(236,72,153,.3)}.nav-item.active:before{content:"";position:absolute;left:-1rem;top:50%;transform:translateY(-50%);width:4px;height:60%;background:linear-gradient(135deg,#ec4899,#8b5cf6);border-radius:0 4px 4px 0}.nav-icon{font-size:1.2rem;width:22px;text-align:center;flex-shrink:0}.nav-label{flex:1}.sidebar-footer{padding:1rem 1.25rem;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}.market-status{background:#ffffff0d;padding:1rem;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.market-indicator{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.market-dot{width:8px;height:8px;background:#10b981;border-radius:50%;animation:pulse-market 2s ease-in-out infinite}@keyframes pulse-market{0%,to{opacity:1}50%{opacity:.5}}.market-text{font-size:.85rem;font-weight:600;color:#fff}.market-time{font-size:.75rem;color:#9ca3af;margin-left:1.3rem}.dashboard-main{flex:1;display:flex;flex-direction:column;width:calc(100% - 260px);height:100vh;overflow:hidden}.dashboard-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#ffffff08;border-bottom:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);flex-shrink:0;z-index:100;min-height:70px}.header-left{display:flex;align-items:center;gap:2rem}.page-title{margin:0;font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.live-clock{display:flex;align-items:center;gap:.5rem;padding:.6rem 1rem;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1);font-family:Courier New,monospace}.clock-icon{font-size:1.1rem}.clock-time{font-size:1rem;font-weight:600;color:#fff}.clock-label{font-size:.75rem;color:#9ca3af;text-transform:uppercase}.header-right{display:flex;align-items:center;gap:1rem}.user-profile{display:flex;align-items:center;gap:1rem;padding:.5rem 1rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1);transition:all .3s ease}.user-profile:hover{background:#ffffff14;border-color:#fff3}.user-info{display:flex;align-items:center;gap:.75rem}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#ec4899,#8b5cf6);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem;color:#fff;flex-shrink:0}.user-details{display:flex;flex-direction:column;gap:.2rem}.user-name{font-size:.9rem;font-weight:600;color:#fff;white-space:nowrap}.user-role{font-size:.75rem}.admin-badge{color:#fbbf24;font-weight:600;display:flex;align-items:center;gap:.25rem}.user-badge{color:#9ca3af;font-weight:500;display:flex;align-items:center;gap:.25rem}.logout-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#fca5a5;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .3s ease}.logout-button:hover{background:#ef444433;border-color:#ef444480;color:#f87171;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}.logout-icon{font-size:1rem}.logout-text{white-space:nowrap}.dashboard-content{flex:1;padding:1.5rem;overflow-y:auto;overflow-x:hidden;height:calc(100vh - 70px)}.dashboard-content::-webkit-scrollbar,.dashboard-sidebar::-webkit-scrollbar{width:8px}.dashboard-content::-webkit-scrollbar-track,.dashboard-sidebar::-webkit-scrollbar-track{background:#ffffff0d}.dashboard-content::-webkit-scrollbar-thumb,.dashboard-sidebar::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}.dashboard-content::-webkit-scrollbar-thumb:hover,.dashboard-sidebar::-webkit-scrollbar-thumb:hover{background:#ffffff4d}@media (max-width: 1024px){.dashboard-sidebar{width:220px}.dashboard-main{width:calc(100% - 220px)}.logo-text{font-size:1.1rem}.nav-label{font-size:.85rem}.page-title{font-size:1.3rem}}@media (max-width: 768px){.dashboard-sidebar{position:fixed;left:0;top:0;z-index:1000;transform:translate(-100%);transition:transform .3s ease;width:260px}.dashboard-sidebar.open{transform:translate(0)}.dashboard-main{width:100%}.dashboard-header{padding:.75rem 1rem;flex-wrap:wrap;gap:.75rem;min-height:60px}.header-left{flex-direction:row;align-items:center;gap:1rem;flex-wrap:wrap}.page-title{font-size:1.2rem}.dashboard-content{padding:1rem;height:calc(100vh - 60px)}.header-right{flex-wrap:wrap;gap:.5rem}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#667eea,#764ba2)}.auth-background{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:0}.auth-gradient-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.3;animation:float 20s infinite ease-in-out}.orb-1{width:400px;height:400px;background:linear-gradient(135deg,#667eea,#764ba2);top:-200px;left:-200px;animation-delay:0s}.orb-2{width:300px;height:300px;background:linear-gradient(135deg,#f093fb,#f5576c);bottom:-150px;right:-150px;animation-delay:5s}.orb-3{width:250px;height:250px;background:linear-gradient(135deg,#4facfe,#00f2fe);top:50%;right:10%;animation-delay:10s}@keyframes float{0%,to{transform:translate(0) scale(1)}33%{transform:translate(30px,-30px) scale(1.1)}66%{transform:translate(-20px,20px) scale(.9)}}.auth-container{position:relative;z-index:1;width:100%;max-width:450px;padding:20px}.auth-card{background:#fffffff2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:40px;box-shadow:0 20px 60px #0000004d;border:1px solid rgba(255,255,255,.2);animation:slideUp .5s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.auth-header{text-align:center;margin-bottom:32px}.auth-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:24px}.auth-logo-icon{font-size:32px;animation:pulse 2s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.auth-logo-text{font-size:24px;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.auth-title{font-size:28px;font-weight:700;color:#1a202c;margin:0 0 8px}.auth-subtitle{font-size:14px;color:#718096;margin:0}.auth-form{display:flex;flex-direction:column;gap:20px}.auth-error{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fee;border:1px solid #fcc;border-radius:8px;color:#c33;font-size:14px;animation:shake .5s}.auth-success{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#efe;border:1px solid #cfc;border-radius:8px;color:#3c3;font-size:14px;animation:slideDown .5s}.success-icon{font-size:18px}.error-icon{font-size:18px}.auth-input-group{display:flex;flex-direction:column;gap:8px}.auth-label{font-size:14px;font-weight:600;color:#2d3748}.auth-input{padding:14px 16px;border:2px solid #e2e8f0;border-radius:12px;font-size:16px;transition:all .3s ease;background:#fff;color:#1a202c}.auth-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.auth-input::placeholder{color:#a0aec0}.auth-button{margin-top:8px;padding:16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 15px #667eea66}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea80}.auth-button:active:not(:disabled){transform:translateY(0)}.auth-button:disabled{opacity:.7;cursor:not-allowed}.button-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.auth-footer{margin-top:24px;text-align:center}.auth-footer-text{font-size:14px;color:#718096;margin:0 0 16px}.auth-link{color:#667eea;text-decoration:none;font-weight:600;transition:color .3s ease}.auth-link:hover{color:#764ba2;text-decoration:underline}.auth-info{padding:16px;background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0;margin-bottom:16px}.auth-info-content{display:flex;align-items:center;gap:12px}.info-icon{font-size:18px;flex-shrink:0}.auth-contact-text{font-size:13px;color:#4a5568;margin:0;line-height:1.5;flex:1}.contact-link{color:#667eea;text-decoration:none;font-weight:600;transition:color .3s ease;white-space:nowrap}.contact-link:hover{color:#764ba2;text-decoration:underline}.guest-login-btn{width:100%;padding:12px 16px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);color:#374151;border:2px solid #d1d5db;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px}.guest-login-btn:hover:not(:disabled){background:linear-gradient(135deg,#e5e7eb,#d1d5db);border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.guest-login-btn:active:not(:disabled){transform:translateY(0)}.guest-login-btn:disabled{opacity:.6;cursor:not-allowed}.guest-icon{font-size:16px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:16px}.loading-spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}.loading-container p{color:#718096;font-size:14px}.home-container{width:100%;max-width:1600px;margin:0 auto;padding:2rem;position:relative;min-height:100vh;overflow-x:hidden}.animated-background{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;overflow:hidden;pointer-events:none}.gradient-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.3;animation:float 20s ease-in-out infinite}.orb-1{width:500px;height:500px;background:linear-gradient(135deg,#ec4899,#8b5cf6);top:-200px;left:-200px;animation-delay:0s}.orb-2{width:400px;height:400px;background:linear-gradient(135deg,#3b82f6,#06b6d4);bottom:-150px;right:-150px;animation-delay:7s}.orb-3{width:350px;height:350px;background:linear-gradient(135deg,#10b981,#059669);top:50%;left:50%;transform:translate(-50%,-50%);animation-delay:14s}@keyframes float{0%,to{transform:translate(0) scale(1)}33%{transform:translate(50px,-50px) scale(1.1)}66%{transform:translate(-30px,30px) scale(.9)}}.hero-section{position:relative;z-index:1;text-align:center;margin-bottom:4rem;padding-top:2rem}.hero-content{margin-bottom:3rem}.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1.25rem;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:50px;font-size:.875rem;font-weight:500;color:#fff;margin-bottom:1.5rem;animation:fadeInUp .6s ease-out}.badge-icon{font-size:1.25rem}.hero-title{font-size:4.5rem;font-weight:900;margin:0;line-height:1.1;margin-bottom:1rem;animation:fadeInUp .8s ease-out .2s both}.title-line-1,.title-line-2{display:block;background:linear-gradient(135deg,#ec4899,#8b5cf6,#3b82f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;background-size:200% 200%;animation:gradientShift 5s ease infinite}.title-line-2{background:linear-gradient(135deg,#3b82f6,#06b6d4,#10b981);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}@keyframes gradientShift{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.hero-subtitle{font-size:1.25rem;color:#fffc;margin:0 auto 2.5rem;max-width:700px;line-height:1.6;animation:fadeInUp 1s ease-out .4s both}.market-preview{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;animation:fadeInUp 1.2s ease-out .6s both}.market-preview-item{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem 2rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:16px;min-width:200px;transition:all .3s ease}.market-preview-item:hover{background:#ffffff14;transform:translateY(-4px);box-shadow:0 10px 30px #0000004d}.market-label{font-size:.875rem;color:#fff9;text-transform:uppercase;letter-spacing:.1em;font-weight:600}.market-value{font-size:1.75rem;font-weight:700;color:#fff}.market-change{font-size:.875rem;font-weight:600}.market-change.positive{color:#10b981}.market-change.negative{color:#ef4444}.status-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:2rem}.status-card{position:relative;display:flex;align-items:center;gap:1.25rem;padding:1.5rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:16px;transition:all .3s ease;overflow:hidden}.status-card:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#ec48991a,#8b5cf61a);opacity:0;transition:opacity .3s ease}.status-card:hover{transform:translateY(-5px);border-color:#ec48994d;box-shadow:0 15px 40px #0000004d}.status-card:hover:before{opacity:1}.status-card.success{border-left:4px solid #10b981}.status-card.warning{border-left:4px solid #f59e0b}.status-card.error{border-left:4px solid #ef4444}.status-card.loading-card{justify-content:center;flex-direction:column;gap:1rem;border-left:4px solid #8b5cf6}.status-pulse{position:absolute;top:1rem;right:1rem;width:12px;height:12px;border-radius:50%;background:#10b981;animation:pulse 2s ease infinite}.status-card.error .status-pulse{background:#ef4444}.status-card.warning .status-pulse{background:#f59e0b}.status-icon-large{font-size:2.5rem;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:12px;flex-shrink:0;position:relative;z-index:1}.status-info{flex:1;position:relative;z-index:1}.status-info h3{margin:0 0 .5rem;font-size:1.1rem;font-weight:600;color:#fff}.status-info p{margin:0;font-size:.9rem;color:#ffffffb3}.features-section{position:relative;z-index:1;margin-bottom:4rem}.section-header{text-align:center;margin-bottom:3rem}.section-title{font-size:2.5rem;font-weight:800;margin:0 0 1rem;color:#fff}.title-underline{position:relative;display:inline-block}.title-underline:after{content:"";position:absolute;bottom:-8px;left:0;right:0;height:4px;background:linear-gradient(90deg,#ec4899,#8b5cf6);border-radius:2px;animation:underlineExpand .8s ease-out}@keyframes underlineExpand{0%{transform:scaleX(0)}to{transform:scaleX(1)}}.section-description{font-size:1.1rem;color:#ffffffb3;margin:0}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.feature-card{text-decoration:none;position:relative;height:100%;animation:fadeInUp .6s ease-out both}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.feature-card-inner{position:relative;padding:2rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:20px;height:100%;display:flex;flex-direction:column;transition:all .4s cubic-bezier(.4,0,.2,1);overflow:hidden}.feature-card:hover .feature-card-inner{transform:translateY(-8px);border-color:#ec489966;box-shadow:0 20px 50px #0006}.feature-hover-effect{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);transition:left .5s ease}.feature-card:hover .feature-hover-effect{left:100%}.feature-icon{position:relative;width:80px;height:80px;display:flex;align-items:center;justify-content:center;font-size:2.5rem;border-radius:18px;margin-bottom:1.5rem;background:linear-gradient(135deg,var(--tw-gradient-stops));box-shadow:0 10px 30px #0000004d;transition:transform .3s ease}.feature-card:hover .feature-icon{transform:scale(1.1) rotate(5deg)}.icon-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:18px;background:inherit;filter:blur(20px);opacity:.5;z-index:-1;transition:opacity .3s ease}.feature-card:hover .icon-glow{opacity:.8}.feature-content{flex:1}.feature-title{margin:0 0 .75rem;font-size:1.5rem;font-weight:700;color:#fff;transition:color .3s ease}.feature-description{margin:0;font-size:1rem;color:#ffffffb3;line-height:1.6}.feature-arrow{margin-top:1.5rem;color:#ec4899;opacity:0;transform:translate(-10px);transition:all .3s ease;display:flex;align-items:center}.feature-card:hover .feature-arrow{opacity:1;transform:translate(0)}.bg-gradient-to-br{background:linear-gradient(135deg,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3b82f6;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0))}.from-purple-500{--tw-gradient-from: #a855f7;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0))}.to-indigo-600{--tw-gradient-to: #4f46e5}.from-pink-500{--tw-gradient-from: #ec4899;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 72, 153, 0))}.from-green-500{--tw-gradient-from: #10b981;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0))}.to-emerald-600{--tw-gradient-to: #059669}.from-yellow-500{--tw-gradient-from: #eab308;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 179, 8, 0))}.to-orange-600{--tw-gradient-to: #ea580c}.from-teal-500{--tw-gradient-from: #14b8a6;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(20, 184, 166, 0))}.to-cyan-600{--tw-gradient-to: #0891b2}.from-indigo-500{--tw-gradient-from: #6366f1;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99, 102, 241, 0))}.to-blue-600{--tw-gradient-to: #2563eb}.from-orange-500{--tw-gradient-from: #f97316;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0))}.to-red-600{--tw-gradient-to: #dc2626}.from-emerald-500{--tw-gradient-from: #10b981;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0))}.to-green-600{--tw-gradient-to: #16a34a}.from-violet-500{--tw-gradient-from: #8b5cf6;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(139, 92, 246, 0))}.to-purple-600{--tw-gradient-to: #9333ea}.stats-section{position:relative;z-index:1;margin-bottom:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.stat-card{position:relative;text-align:center;padding:2rem 1.5rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:20px;transition:all .4s cubic-bezier(.4,0,.2,1);overflow:hidden}.stat-card:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#ec48991a,#8b5cf61a);opacity:0;transition:opacity .3s ease}.stat-card:hover{transform:translateY(-8px) scale(1.02);border-color:#ec489966;box-shadow:0 20px 50px #0006}.stat-card:hover:before{opacity:1}.stat-icon{font-size:2rem;margin-bottom:1rem;display:block;position:relative;z-index:1}.stat-number{font-size:2.5rem;font-weight:900;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem;position:relative;z-index:1}.stat-label{font-size:.95rem;color:#ffffffb3;font-weight:500;position:relative;z-index:1}.stat-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px;background:radial-gradient(circle,rgba(236,72,153,.2) 0%,transparent 70%);border-radius:50%;opacity:0;transition:opacity .3s ease}.stat-card:hover .stat-glow{opacity:1}.spinner{width:40px;height:40px;border:4px solid rgba(255,255,255,.1);border-top-color:#ec4899;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@media (max-width: 1024px){.hero-title{font-size:3.5rem}.features-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 768px){.home-container{padding:1rem}.hero-section{margin-bottom:2rem;padding-top:1rem}.hero-title{font-size:2.5rem}.title-line-1,.title-line-2{display:inline}.hero-subtitle{font-size:1rem;margin-bottom:2rem}.market-preview{flex-direction:column;align-items:stretch}.market-preview-item{min-width:auto}.status-cards,.features-grid,.stats-grid{grid-template-columns:1fr;gap:1rem}.section-title{font-size:2rem}.features-section,.stats-section{margin-bottom:2rem}.feature-card-inner,.stat-card{padding:1.5rem}.feature-icon{width:60px;height:60px;font-size:2rem}}.index-returns-container{width:100%;max-width:700px;margin:2rem auto 0;padding:2rem;background:linear-gradient(135deg,#f093fb,#f5576c);border-radius:16px;box-shadow:0 10px 40px #0000004d}.back-button{display:inline-block;padding:.5rem 1rem;margin-bottom:1rem;font-size:1rem;font-weight:600;color:#fff;background:#fff3;text-decoration:none;border-radius:6px;transition:all .3s ease}.back-button:hover{background:#ffffff4d;transform:translate(-5px)}.index-returns-container h2{margin:0 0 1.5rem;font-size:1.8rem;text-align:center;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.returns-form{display:flex;flex-direction:column;gap:1.5rem}.form-group label{font-size:1rem;font-weight:600;color:#fff}.form-control{padding:.75rem 1rem;font-size:1rem;border:2px solid rgba(255,255,255,.5);border-radius:8px;background:#fff;color:#333;font-weight:500;transition:all .3s ease}.form-control:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.form-control option{background:#fff;color:#333}.submit-btn{padding:1rem 2rem;font-size:1.1rem;font-weight:700;color:#f5576c;background:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #0003;text-transform:uppercase;letter-spacing:1px}.submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #0006;color:#667eea}.submit-btn:disabled{opacity:.6;cursor:not-allowed}.loading{text-align:center;padding:2rem;color:#fff}.loading .spinner{border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}.error-box{margin-top:1.5rem;padding:1.5rem;background:#f8717133;border:2px solid rgba(248,113,113,.5);border-radius:12px;color:#fff}.error-box h3{margin:0 0 .5rem;color:#fca5a5}.error-hint{margin-top:.5rem;font-size:.9rem;opacity:.8}.result-box{margin-top:1.5rem;padding:1.5rem;background:#ffffff26;border-radius:12px;color:#fff}.result-box h3{margin:0 0 1rem;text-align:center;font-size:1.5rem}.result-grid{display:grid;grid-template-columns:1fr;gap:1rem}.result-item{display:flex;justify-content:space-between;padding:.75rem;background:#ffffff1a;border-radius:8px}.result-item.highlight{background:#fff3;border:2px solid rgba(255,255,255,.3)}.result-label{font-weight:600;opacity:.9}.result-value{font-weight:700}.result-value.positive{color:#4ade80}.result-value.negative{color:#f87171}.result-message{margin-top:1rem;text-align:center;font-style:italic;opacity:.8}@media (max-width: 640px){.index-returns-container{padding:1.5rem;margin:1rem auto 0}.index-returns-container h2{font-size:1.5rem}.result-item{flex-direction:column;gap:.5rem}}.algo-monitor-container{width:100%;max-width:1400px;margin:0 auto;padding:2rem;min-height:100vh}.header-content h2{margin:0;font-size:2.5rem;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.live-indicator{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:20px;border:2px solid;font-weight:600;transition:all .3s ease}.live-indicator.active{background:#22c55e33;border-color:#22c55e;color:#22c55e}.live-indicator.closed{background:#ef444433;border-color:#ef4444;color:#fca5a5}.live-indicator.closed .pulse-dot{animation:none;opacity:.5}.pulse-dot{width:10px;height:10px;background:#22c55e;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)}}.last-update{font-size:.85rem;opacity:.8;margin-left:.5rem}.strategies-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:2rem;margin-bottom:2rem}.strategy-card{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:2rem;border:2px solid rgba(255,255,255,.2);transition:all .3s ease;color:#fff;min-height:300px}.strategy-card:hover{transform:translateY(-5px);box-shadow:0 10px 40px #0000004d;border-color:#fff6}.strategy-card.blue{background:linear-gradient(135deg,#667eea33,#764ba233);border-color:#667eea80}.strategy-card.purple{background:linear-gradient(135deg,#f093fb33,#f5576c33);border-color:#f5576c80}.strategy-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.2)}.strategy-title{display:flex;align-items:center;gap:.75rem}.strategy-icon{font-size:2rem}.strategy-title h3{margin:0;font-size:1.5rem;font-weight:700}.strategy-loading{text-align:center;padding:2rem}.spinner-small{border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}.strategy-error{text-align:center;padding:1rem;color:#fca5a5}.retry-btn-small{margin-top:.5rem;padding:.5rem 1rem;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:6px;color:#fff;cursor:pointer;font-size:.9rem}.retry-btn-small:hover{background:#ffffff4d}.strategy-pnl-quick{display:flex;gap:1rem;margin-bottom:1.5rem}.pnl-quick-item{flex:1;background:#ffffff26;padding:1rem;border-radius:12px;text-align:center}.pnl-quick-label{display:block;font-size:.85rem;opacity:.9;margin-bottom:.5rem}.pnl-quick-value{display:block;font-size:1.5rem;font-weight:700}.pnl-quick-value.profit{color:#10b981;text-shadow:0 0 10px rgba(16,185,129,.3)}.pnl-quick-value.loss{color:#ef4444;text-shadow:0 0 10px rgba(239,68,68,.3)}.pnl-quick-value.neutral{color:#fff}.strategy-position{margin-top:1rem}.position-mtm-large{text-align:center;margin-bottom:1.5rem;padding:1.5rem;background:#ffffff1a;border-radius:12px}.mtm-label-small{display:block;font-size:.9rem;opacity:.9;margin-bottom:.5rem}.mtm-value-large{display:block;font-size:2.5rem;font-weight:700;margin-bottom:.5rem}.mtm-percentage-small{display:block;font-size:1.2rem;font-weight:600}.position-details-quick{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.detail-quick{flex:1;min-width:100px;background:#ffffff1a;padding:.75rem;border-radius:8px;text-align:center;font-size:.9rem}.detail-quick span:first-child{display:block;opacity:.8;margin-bottom:.25rem;font-size:.8rem}.detail-quick strong{display:block;font-size:1.1rem}.mode-badge-small{display:inline-block;padding:.25rem .5rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase}.mode-badge-small.virtual{background:#3b82f64d;border:1px solid #3b82f6;color:#60a5fa}.mode-badge-small.live{background:#22c55e4d;border:1px solid #22c55e;color:#4ade80}.view-details-btn{width:100%;padding:1rem;font-size:1rem;font-weight:700;color:#fff;background:#fff3;border:2px solid rgba(255,255,255,.3);border-radius:10px;cursor:pointer;transition:all .3s ease;margin-top:1rem}.view-details-btn:hover{background:#ffffff4d;border-color:#ffffff80;transform:translateY(-2px)}.positions-preview{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.position-preview-item{background:#ffffff26;padding:.75rem;border-radius:8px;display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(255,255,255,.2)}.preview-strike{font-size:.9rem;font-weight:600;color:#e0e7ff}.preview-mtm{font-size:1rem;font-weight:700}.preview-mtm.profit{color:#4ade80}.preview-mtm.loss{color:#fca5a5}.strategy-status-badges{display:flex;gap:.5rem}.strategy-no-position{text-align:center;padding:2rem 1rem}.no-position-icon-small{font-size:3rem;margin-bottom:1rem}.strategy-no-position p{margin:.5rem 0;font-size:1rem}.no-position-subtext{font-size:.9rem;opacity:.8;font-style:italic}.strategy-detail-view{width:100%;max-width:1400px;margin:0 auto;padding:2rem;min-height:100vh}.detail-header{margin-bottom:2rem}.close-detail-btn{padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:#ffffff1a;border:2px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .3s ease;margin-bottom:1rem}.close-detail-btn:hover{background:#fff3;transform:translate(-5px)}.detail-header h2{margin:0;font-size:2rem;color:#fff}.total-mtm-card{background:linear-gradient(135deg,#10b981,#059669);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 8px 32px #0000004d;color:#fff;text-align:center}.total-mtm-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.total-mtm-header h3{margin:0;font-size:1.5rem}.positions-count{padding:.5rem 1rem;background:#fff3;border-radius:20px;font-size:.9rem;font-weight:600}.total-mtm-display{margin-top:1rem}.total-mtm-value{display:block;font-size:3rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.total-mtm-value.profit{color:#4ade80}.total-mtm-value.loss{color:#fca5a5}.position-group{margin-bottom:3rem;padding-bottom:2rem;border-bottom:2px solid rgba(255,255,255,.1)}.position-group:last-child{border-bottom:none;margin-bottom:0}.position-group-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.2)}.position-group-header h3{margin:0;font-size:1.3rem;color:#fff}.pnl-summary-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 8px 32px #0000004d;color:#fff}.pnl-summary-card h3{margin:0 0 1.5rem;font-size:1.5rem;text-align:center}.pnl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem}.pnl-item{background:#ffffff26;padding:1rem;border-radius:12px;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.pnl-value{display:block;font-size:1.5rem;font-weight:700}.pnl-value.profit{color:#10b981;text-shadow:0 0 10px rgba(16,185,129,.3)}.pnl-value.loss{color:#ef4444;text-shadow:0 0 10px rgba(239,68,68,.3)}.pnl-value.neutral{color:#fff}.pnl-summary-text{text-align:center;font-size:1.1rem;margin:0;padding:1rem;background:#ffffff1a;border-radius:8px;font-style:italic}.mtm-main-card{background:linear-gradient(135deg,#f093fb,#f5576c);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 10px 40px #0000004d;color:#fff}.mtm-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.mtm-header h3{margin:0;font-size:1.5rem}.status-badge{padding:.5rem 1rem;border-radius:20px;font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:1px}.status-badge.open{background:#22c55e4d;border:2px solid #22c55e;color:#4ade80}.mtm-display{text-align:center}.mtm-value-container{margin-bottom:2rem}.mtm-value{display:block;font-size:3.5rem;font-weight:700;margin-bottom:.5rem;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.mtm-percentage{font-size:1.8rem;font-weight:600}.mtm-targets{display:flex;justify-content:center;gap:2rem}.target{background:#fff3;padding:1rem 2rem;border-radius:12px;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.target-label{display:block;font-size:1rem;margin-bottom:.5rem;opacity:.9}.target-value{display:block;font-size:1.3rem;font-weight:700}.position-details-card{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;margin-bottom:2rem;border:2px solid rgba(255,255,255,.2);color:#fff}.position-details-card h3{margin:0 0 1.5rem;font-size:1.3rem;text-align:center}.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.detail-item{background:#ffffff1a;padding:1rem;border-radius:8px;display:flex;flex-direction:column;gap:.5rem}.detail-label{font-size:.85rem;opacity:.8}.detail-value{font-size:1.1rem;font-weight:700}.mode-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.9rem;font-weight:700;text-transform:uppercase}.mode-badge.virtual{background:#3b82f64d;border:1px solid #3b82f6;color:#60a5fa}.mode-badge.live{background:#22c55e4d;border:1px solid #22c55e;color:#4ade80}.legs-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:2rem;margin-bottom:2rem}.leg-card{border-radius:16px;padding:2rem;box-shadow:0 8px 32px #0000004d;color:#fff;transition:all .3s ease}.leg-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px #0006}.ce-leg{background:linear-gradient(135deg,#10b981,#059669)}.pe-leg{background:linear-gradient(135deg,#f59e0b,#d97706)}.leg-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.3)}.leg-header h4{margin:0;font-size:1.2rem}.leg-badge{padding:.25rem .75rem;background:#ffffff4d;border-radius:12px;font-size:.8rem;font-weight:700}.leg-symbol{font-size:1rem;font-weight:600;margin-bottom:1.5rem;text-align:center;padding:.75rem;background:#fff3;border-radius:8px;font-family:Courier New,monospace}.leg-prices{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;gap:1rem}.price-item{flex:1;text-align:center}.price-label{display:block;font-size:.85rem;opacity:.9;margin-bottom:.5rem}.price-value{display:block;font-size:1.3rem;font-weight:700}.price-value.current{color:#fef08a}.price-arrow{font-size:1.5rem;opacity:.7}.leg-mtm{background:#fff3;padding:1rem;border-radius:8px;text-align:center;margin-bottom:1rem}.leg-mtm .mtm-label{display:block;font-size:.9rem;margin-bottom:.5rem;opacity:.9}.leg-mtm .mtm-value{display:block;font-size:1.8rem;font-weight:700}.leg-time{text-align:center;font-size:.9rem;opacity:.8}.no-position-card{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:4rem 2rem;text-align:center;border:2px dashed rgba(255,255,255,.3);color:#fff;margin-bottom:2rem}.no-position-icon{font-size:5rem;margin-bottom:1rem}.no-position-card h3{margin:0 0 1rem;font-size:1.8rem}.no-position-card p{font-size:1.1rem;opacity:.8;margin:.5rem 0}.no-position-hint{font-style:italic;color:#fbbf24}.quick-links{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.quick-link-btn{display:inline-block;padding:1rem 2rem;font-size:1rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);text-decoration:none;border-radius:8px;transition:all .3s ease;box-shadow:0 4px 15px #0003}.quick-link-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0006}.error-box{background:#f8717133;border:2px solid rgba(248,113,113,.5);border-radius:12px;padding:2rem;color:#fff;text-align:center}.error-box h3{margin:0 0 1rem;font-size:1.5rem}.error-main{font-size:1.1rem;margin-bottom:1.5rem}.retry-button{padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:#667eeacc;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease}.force-close-section{margin-top:2rem;text-align:center}.force-close-btn{padding:1rem 2.5rem;font-size:1.1rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#ef4444,#dc2626);border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #ef444466;text-transform:uppercase;letter-spacing:1px}.force-close-btn:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 6px 25px #ef444499;background:linear-gradient(135deg,#dc2626,#b91c1c)}.force-close-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.close-message{margin-top:1rem;padding:1rem 1.5rem;border-radius:8px;font-weight:600;font-size:1rem;animation:slideIn .3s ease}.close-message.success{background:#22c55e33;border:2px solid #22c55e;color:#4ade80}.close-message.error{background:#ef444433;border:2px solid #ef4444;color:#fca5a5}@media (max-width: 768px){.algo-monitor-container{padding:1rem}.header-content h2{font-size:1.8rem}.strategies-grid{grid-template-columns:1fr;gap:1.5rem}.strategy-card{padding:1.5rem}.strategy-title h3{font-size:1.2rem}.pnl-grid{grid-template-columns:repeat(2,1fr)}.mtm-value{font-size:2.5rem}.mtm-value-large{font-size:2rem}.mtm-targets{flex-direction:column;gap:1rem}.legs-container{grid-template-columns:1fr}.leg-prices{flex-direction:column}.price-arrow{transform:rotate(90deg)}.force-close-btn{width:100%;padding:1rem;font-size:1rem}.position-details-quick{flex-direction:column}}.algo-history-container{width:100%;max-width:1600px;margin:0 auto;padding:2rem;min-height:100vh}.algo-history-container h2{margin:1rem 0 2rem;font-size:2.5rem;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.summary-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-item{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1.5rem;text-align:center;border:2px solid rgba(255,255,255,.2);color:#fff}.stat-label{display:block;font-size:.9rem;opacity:.8;margin-bottom:.5rem}.stat-value{display:block;font-size:2rem;font-weight:700}.stat-value.profit{color:#4ade80}.stat-value.loss{color:#fca5a5}.history-table-container{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;overflow-x:auto;border:2px solid rgba(255,255,255,.2)}.history-table{width:100%;border-collapse:collapse;color:#fff}.history-table thead{background:#ffffff26}.history-table th{padding:1rem;text-align:left;font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.history-table td{padding:1rem;border-bottom:1px solid rgba(255,255,255,.1);white-space:nowrap}.history-table tbody tr{transition:all .3s ease}.history-table tbody tr:hover{background:#ffffff1a}.profit-row{background:#22c55e0d}.loss-row{background:#ef44440d}.history-table td.profit{color:#4ade80;font-weight:700}.history-table td.loss{color:#fca5a5;font-weight:700}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.8rem;font-weight:700;text-transform:uppercase}.status-badge.open{background:#22c55e4d;border:1px solid #22c55e;color:#4ade80}.status-badge.closed{background:#9ca3af4d;border:1px solid #9ca3af;color:#d1d5db}.reason-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.strategy-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;background:#667eea4d;border:1px solid #667eea;color:#a5b4fc}.reason-badge.profit-target{background:#22c55e4d;border:1px solid #22c55e;color:#4ade80}.reason-badge.stop-loss{background:#ef44444d;border:1px solid #ef4444;color:#fca5a5}.reason-badge.manual{background:#3b82f64d;border:1px solid #3b82f6;color:#93c5fd}@media (max-width: 1200px){.history-table-container{overflow-x:scroll}.history-table{min-width:1200px}}@media (max-width: 768px){.algo-history-container{padding:1rem}.algo-history-container h2{font-size:1.8rem}.filter-inputs{flex-direction:column;align-items:stretch}.filter-button{width:100%}}.algo-pnl-container{width:100%;max-width:1400px;margin:0 auto;padding:2rem;min-height:100vh}.algo-pnl-container h2{margin:1rem 0 2rem;font-size:2.5rem;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.strategy-tabs{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}.strategy-tab{padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:#ffffff1a;border:2px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.strategy-tab:hover{background:#fff3;border-color:#fff6;transform:translateY(-2px)}.strategy-tab.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;box-shadow:0 4px 15px #667eea66}.filter-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 8px 32px #0000004d;color:#fff}.filter-card h3{margin:0 0 1.5rem;font-size:1.3rem;text-align:center}.filter-inputs{display:flex;gap:1rem;align-items:flex-end;flex-wrap:wrap;justify-content:center}.input-group{display:flex;flex-direction:column;gap:.5rem}.input-group label{font-size:.9rem;font-weight:600}.date-input{padding:.75rem 1rem;border:2px solid rgba(255,255,255,.3);border-radius:8px;background:#fff;color:#333;font-size:1rem;font-weight:500}.filter-button{padding:.75rem 2rem;font-size:1rem;font-weight:700;color:#667eea;background:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;text-transform:uppercase}.filter-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.filter-button:disabled{opacity:.6;cursor:not-allowed}.overall-summary{background:linear-gradient(135deg,#10b981,#059669);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 8px 32px #0000004d;color:#fff}.overall-summary h3{margin:0 0 1.5rem;font-size:1.5rem;text-align:center}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem}.summary-card{background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1.5rem;text-align:center;display:flex;flex-direction:column;gap:.5rem}.summary-icon{font-size:2rem;margin-bottom:.5rem}.summary-label{font-size:.9rem;opacity:.9}.summary-value{font-size:1.8rem;font-weight:700}.summary-value.profit{color:#4ade80}.summary-value.loss{color:#fca5a5}.summary-value.neutral{color:#1f2937}.pnl-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.pnl-day-card{border-radius:16px;padding:1.5rem;box-shadow:0 4px 20px #0000004d;transition:all .3s ease;color:#fff}.pnl-day-card:hover{transform:translateY(-5px);box-shadow:0 8px 30px #0006}.profit-day{background:linear-gradient(135deg,#22c55ecc,#16a34acc);border:2px solid #22c55e}.loss-day{background:linear-gradient(135deg,#ef4444cc,#dc2626cc);border:2px solid #ef4444}.day-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.3)}.day-header h4{margin:0;font-size:1.1rem}.mode-badge{padding:.25rem .75rem;background:#ffffff4d;border-radius:12px;font-size:.75rem;font-weight:700;text-transform:uppercase}.day-pnl{text-align:center;margin-bottom:1rem;padding:1rem;background:#fff3;border-radius:12px}.pnl-label{display:block;font-size:.9rem;opacity:.9;margin-bottom:.5rem}.pnl-amount{display:block;font-size:2rem;font-weight:700}.day-stats{display:flex;justify-content:space-around;margin-bottom:1rem;padding:1rem;background:#ffffff26;border-radius:8px}.day-stat{display:flex;align-items:center;gap:.5rem}.stat-icon{font-size:1.2rem}.stat-text{font-size:.9rem;font-weight:600}.day-range{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem}.range-item{flex:1;background:#ffffff26;padding:.75rem;border-radius:8px;text-align:center}.range-label{display:block;font-size:.8rem;opacity:.9;margin-bottom:.25rem}.range-value{display:block;font-size:1.1rem;font-weight:700}.range-value.profit{color:#4ade80}.range-value.loss{color:#fca5a5}.day-summary{margin:0;font-size:.9rem;text-align:center;font-style:italic;opacity:.9}.no-data{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:4rem 2rem;text-align:center;border:2px dashed rgba(255,255,255,.3);color:#fff}.no-data-icon{font-size:5rem;margin-bottom:1rem}.no-data h3{margin:0 0 1rem;font-size:1.8rem}.no-data p{font-size:1.1rem;opacity:.8;margin:.5rem 0}.no-data-hint{font-style:italic;color:#fbbf24}.loading{text-align:center;padding:4rem 2rem;color:#fff}.loading .spinner{border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-box{background:#f8717133;border:2px solid rgba(248,113,113,.5);border-radius:12px;padding:2rem;color:#fff;text-align:center;margin-bottom:2rem}.retry-button{padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:#667eeacc;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;margin-top:1rem}.retry-button:hover{background:#667eea;transform:scale(1.05)}@media (max-width: 768px){.algo-pnl-container{padding:1rem}.algo-pnl-container h2{font-size:1.8rem}.summary-grid{grid-template-columns:repeat(2,1fr)}.pnl-cards-grid{grid-template-columns:1fr}.filter-inputs{flex-direction:column;align-items:stretch}.filter-button{width:100%}}.straddle-vwap-container{padding:2rem;max-width:1400px;margin:0 auto}.header-section{margin-bottom:2rem}.back-button{display:inline-flex;align-items:center;gap:.5rem;color:#a5b4fc;text-decoration:none;font-size:.9rem;margin-bottom:1rem;transition:color .3s ease;cursor:pointer}.back-button:hover{color:#c7d2fe}.header-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.header-content h2{margin:0;font-size:2rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.live-indicator{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#10b9811a;border:1px solid #10b981;border-radius:20px;font-size:.85rem;color:#10b981}.live-indicator.active .pulse-dot{width:8px;height:8px;background:#10b981;border-radius:50%;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.1)}}.last-update{color:#6b7280;font-size:.75rem;margin-left:.5rem}.info-bar{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:2rem;padding:1.5rem;background:#fff;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a}.nifty-info{display:flex;flex-direction:column;gap:.5rem}.info-label{font-size:.85rem;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.info-value{font-size:1.5rem;font-weight:700;color:#1a1a1a}.expiry-section{margin-bottom:2rem;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.expiry-label{display:block;font-size:.875rem;font-weight:600;color:#374151;margin-bottom:.75rem}.expiry-dropdown{width:100%;max-width:400px;padding:.75rem 1rem;background:#fff;border:1px solid #d1d5db;border-radius:8px;color:#1a1a1a;font-size:.95rem;cursor:pointer;transition:all .3s ease;outline:none}.expiry-dropdown:hover{border-color:#3b82f6}.expiry-dropdown:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.strikes-selection{margin-bottom:2rem;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.section-title{font-size:1.25rem;font-weight:600;color:#1a1a1a;margin-bottom:1.5rem}.strikes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.strike-button{padding:1rem;background:#fff;border:2px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s;text-align:center}.strike-button:hover{border-color:#3b82f6;transform:translateY(-2px);box-shadow:0 4px 8px #3b82f633}.strike-button.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.strike-label{font-size:.75rem;color:#6b7280;margin-bottom:.5rem;font-weight:500}.strike-button.active .strike-label{color:#ffffffe6}.strike-value{font-size:1.25rem;font-weight:700;color:#1a1a1a}.strike-button.active .strike-value{color:#fff}.loading-data{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:2rem;color:#6b7280}.spinner-small{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.error-message{padding:1rem;background:#fee2e2;color:#991b1b;border-radius:8px;margin-bottom:1rem;text-align:center}.straddle-result{margin-top:2rem}.result-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.result-header{display:flex;gap:2rem;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}.result-item{display:flex;flex-direction:column;gap:.5rem}.result-label{font-size:.75rem;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.result-value{font-size:1.25rem;font-weight:700;color:#1a1a1a}.result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.result-box{padding:1rem;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.result-box.highlight{background:linear-gradient(135deg,#dbeafe,#bfdbfe);border-color:#3b82f6}.result-box-label{font-size:.75rem;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.result-box-value{font-size:1.1rem;font-weight:600;color:#1a1a1a}.result-box-value.large{font-size:1.5rem;font-weight:700;color:#1e40af}.result-footer{padding-top:1rem;border-top:1px solid #e5e7eb;text-align:center}.timestamp{font-size:.875rem;color:#6b7280}.strike-card{background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-radius:16px;padding:1.5rem;border:2px solid;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease}.strike-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0000004d;background:linear-gradient(135deg,#ffffff26,#ffffff14)}.strike-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.1)}.strike-header h3{margin:0;font-size:1.1rem;font-weight:600}.strike-number{font-size:1.3rem;font-weight:700;opacity:.8}.price-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.price-item{display:flex;flex-direction:column;gap:.5rem}.price-label{font-size:.75rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.price-value{font-size:1.3rem;font-weight:700}.price-value.straddle{color:#60a5fa}.price-value.vwap{color:#a78bfa}.premium-diff{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#0003;border-radius:8px;margin-bottom:1rem}.diff-label{font-size:.8rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.diff-value{font-size:1.2rem;font-weight:700}.diff-value.positive{color:#10b981}.diff-value.negative{color:#ef4444}.ce-pe-details{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.75rem}.option-detail{display:flex;flex-direction:column;gap:.3rem;padding:.5rem;background:#00000026;border-radius:6px}.option-label{font-size:.7rem;color:#6b7280;text-transform:uppercase;letter-spacing:.3px}.option-value{font-size:1rem;font-weight:600;color:#d1d5db}.chart-section{margin-top:3rem}.chart-section h3{font-size:1.5rem;margin-bottom:1.5rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.chart-card{background:#ffffff0d;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.chart-card h4{margin:0 0 1rem;font-size:1.2rem;font-weight:600}.mini-chart{position:relative;background:#0000004d;border-radius:8px;padding:1rem;overflow:hidden}.chart-legend{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1)}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#9ca3af}.legend-line{width:30px;height:3px;border-radius:2px}.legend-line.dashed{background:repeating-linear-gradient(to right,#6b7280 0px,#6b7280 5px,transparent 5px,transparent 10px);height:2px}.chart-info{font-size:.8rem;color:#6b7280}.no-chart-data{text-align:center;padding:3rem;background:#ffffff0d;border-radius:12px;margin-top:2rem}.no-chart-data p{margin:.5rem 0;font-size:1rem;color:#9ca3af}.no-chart-data .hint{font-size:.85rem;color:#6b7280}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:1.5rem}.loading p{color:#9ca3af;font-size:.95rem}.error-box{background:#ef44441a;border:1px solid #ef4444;border-radius:12px;padding:2rem;margin-top:2rem;text-align:center}.error-box h3{margin:0 0 1rem;color:#ef4444;font-size:1.3rem}.error-main{color:#fca5a5;margin-bottom:1.5rem;font-size:.95rem}.retry-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #ec489966}.comparison-section{margin-top:2rem;padding:1.5rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.comparison-title{margin:0 0 1.5rem;font-size:1.2rem;font-weight:600;color:#fff}.comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.comparison-item{background:#ffffff1a;padding:1rem;border-radius:8px;display:flex;flex-direction:column;gap:.5rem}.comparison-item.expensive{background:#ef444433;border:1px solid rgba(239,68,68,.4)}.comparison-item.cheap{background:#22c55e33;border:1px solid rgba(34,197,94,.4)}.comparison-label{font-size:.85rem;opacity:.8;color:#fff}.comparison-value{font-size:1.2rem;font-weight:700;color:#fff}.comparison-value.expensive{color:#fca5a5}.comparison-value.cheap{color:#4ade80}.calculation-info{margin-top:1.5rem;padding:1rem;background:#3b82f61a;border:1px solid rgba(59,130,246,.3);border-radius:8px}.calculation-label{font-size:.9rem;font-weight:600;color:#60a5fa;margin-bottom:.5rem}.calculation-text{font-size:.85rem;color:#93c5fd;font-style:italic;line-height:1.5}.error-result{margin-top:2rem}.error-card{background:#ef44441a;border:2px solid #ef4444;border-radius:12px;padding:2rem}.error-card .error-message{font-size:1.1rem;font-weight:600;color:#fca5a5;margin-bottom:1.5rem;text-align:center}.error-data{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(239,68,68,.3)}.error-data-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#0003;border-radius:6px;font-size:.9rem}.error-data-item span{color:#fca5a5;opacity:.8}.error-data-item strong{color:#fff;font-weight:600}.result-box-value.symbol{font-family:Courier New,monospace;font-size:.9rem;word-break:break-all}@media (max-width: 768px){.straddle-vwap-container{padding:1rem}.header-content h2{font-size:1.5rem}.strikes-grid{grid-template-columns:1fr}.info-bar,.chart-legend{flex-direction:column;align-items:flex-start}}.killswitch-container{max-width:1200px;margin:0 auto}.status-banner{display:flex;align-items:center;gap:2rem;padding:2.5rem;border-radius:16px;margin-bottom:2rem;border:3px solid;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:fadeIn .3s ease}.status-banner.enabled{background:#ef44441a;border-color:#ef4444;box-shadow:0 0 30px #ef44444d;animation:pulse-danger 2s ease-in-out infinite}.status-banner.disabled{background:#10b9811a;border-color:#10b981}.status-reason{margin:.75rem 0 0;font-size:.95rem;color:#fffc;font-style:italic}.status-timestamp{margin:.5rem 0 0;font-size:.875rem;color:#fff9}@keyframes pulse-danger{0%,to{box-shadow:0 0 30px #ef44444d}50%{box-shadow:0 0 50px #ef444480}}.status-icon{font-size:5rem;line-height:1}.status-content{flex:1}.status-title{margin:0 0 .5rem;font-size:2.5rem;font-weight:800;color:#fff}.status-description{margin:0;font-size:1.1rem;color:#9ca3af}.status-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.detail-card{padding:1.5rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.detail-card.full-width{grid-column:1 / -1}.detail-label{font-size:.8rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.detail-value{font-size:1.2rem;font-weight:700;color:#fff}.detail-value.danger{color:#ef4444}.detail-value.success{color:#10b981}.actions-section{margin-bottom:3rem}.actions-section h3{font-size:1.5rem;font-weight:700;color:#fff;margin:0 0 1.5rem}.action-buttons{display:flex;flex-direction:column;gap:1rem}.action-btn{display:flex;align-items:center;gap:1.5rem;padding:2rem;border-radius:16px;border:2px solid;background:#ffffff0d;cursor:pointer;transition:all .3s ease;text-align:left}.action-btn:disabled{opacity:.5;cursor:not-allowed}.action-btn.enable-btn{border-color:#ef4444;background:#ef44441a;flex-direction:column;align-items:flex-start;gap:.5rem}.action-btn.enable-btn:hover:not(:disabled){background:#ef444433;transform:translateY(-2px);box-shadow:0 10px 30px #ef44444d}.action-btn.enable-btn.active{background:#ef444440;border-color:#dc2626}.action-btn.disable-btn{border-color:#10b981;background:#10b9811a;flex-direction:column;align-items:flex-start;gap:.5rem}.action-btn.disable-btn:hover:not(:disabled){background:#10b98133;transform:translateY(-2px);box-shadow:0 10px 30px #10b9814d}.action-btn.disable-btn.active{background:#10b98140;border-color:#059669}.btn-icon{font-size:2.5rem;line-height:1}.btn-text{font-size:1.25rem;font-weight:700;color:#fff}.btn-description{font-size:.9rem;color:#ffffffb3}.message-banner{padding:1rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;font-size:.95rem;font-weight:500;animation:slideIn .3s ease}.message-banner.success{background:#10b98133;color:#10b981;border:1px solid rgba(16,185,129,.3)}.message-banner.error{background:#ef444433;color:#ef4444;border:1px solid rgba(239,68,68,.3)}.info-section{margin-top:3rem}.info-section h3{font-size:1.5rem;font-weight:700;color:#fff;margin:0 0 1.5rem}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.info-card{padding:2rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.info-icon{font-size:2.5rem;margin-bottom:1rem}.info-card h4{margin:0 0 1rem;font-size:1.2rem;font-weight:700;color:#fff}.info-card ul{margin:0;padding-left:1.5rem;color:#9ca3af}.info-card li{margin-bottom:.5rem;line-height:1.6}.confirmation-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.confirmation-modal{background:linear-gradient(135deg,#1e1b4b,#0f172a);border-radius:20px;padding:3rem;max-width:500px;width:90%;border:2px solid rgba(255,255,255,.2);box-shadow:0 20px 60px #00000080;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-icon{font-size:4rem;text-align:center;margin-bottom:1.5rem}.modal-icon.danger{animation:shake .5s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.confirmation-modal h2{margin:0 0 1rem;font-size:2rem;font-weight:800;color:#fff;text-align:center}.modal-warning{font-size:1rem;color:#9ca3af;margin:1rem 0;text-align:center}.modal-list{background:#0000004d;padding:1.5rem;border-radius:12px;margin:1.5rem 0;list-style:none}.modal-list li{padding:.5rem 0;font-size:.95rem;color:#fff;line-height:1.6}.modal-title{margin:0 0 1rem;font-size:1.75rem;font-weight:800;color:#fff;text-align:center}.modal-description{font-size:1rem;color:#fffc;margin:0 0 1.5rem;line-height:1.6;text-align:center}.modal-input-group{margin:1.5rem 0}.modal-input-group label{display:block;font-size:.875rem;color:#ffffffb3;margin-bottom:.5rem;font-weight:500}.reason-input{width:100%;padding:.75rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;font-size:.95rem;transition:all .3s ease}.reason-input:focus{outline:none;border-color:#ec4899;background:#ffffff26;box-shadow:0 0 0 3px #ec48991a}.reason-input::placeholder{color:#fff6}.reason-input:disabled{opacity:.5;cursor:not-allowed}.modal-actions{display:flex;gap:1rem;margin-top:2rem}.modal-btn{flex:1;padding:.875rem 1.5rem;border-radius:10px;border:none;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.modal-btn:disabled{opacity:.5;cursor:not-allowed}.modal-btn.confirm-btn{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 4px 15px #ef44444d}.modal-btn.confirm-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #ef444466}.modal-btn.cancel-btn{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2)}.modal-btn.cancel-btn:hover:not(:disabled){background:#ffffff26}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1.5rem}.spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.1);border-top-color:#ec4899;border-radius:50%;animation:spin 1s linear infinite}.loading-state p{color:#9ca3af;font-size:1rem}@media (max-width: 768px){.status-banner{flex-direction:column;text-align:center;padding:2rem}.status-title{font-size:2rem}.status-description{font-size:1rem}.action-btn{flex-direction:column;text-align:center;padding:1.5rem}.btn-title{font-size:1.2rem}.info-grid{grid-template-columns:1fr}.confirmation-modal{padding:2rem}.modal-actions{flex-direction:column}}.strategy-status-container{padding:1.5rem;width:100%;max-width:1400px;margin:0 auto}.strategy-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.1)}.strategy-header h1{margin:0;font-size:2rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.last-update{margin:.5rem 0 0;font-size:.875rem;color:#fff9}.refresh-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d}.refresh-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.system-status-banner{display:flex;align-items:center;padding:1.25rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;border-left:5px solid;animation:fadeIn .5s ease}.system-status-banner.green{background:linear-gradient(135deg,#10b98126,#05966926);border-color:#10b981;color:#10b981}.system-status-banner.yellow{background:linear-gradient(135deg,#f59e0b26,#d9770626);border-color:#f59e0b;color:#f59e0b}.system-status-banner.red{background:linear-gradient(135deg,#ef444426,#dc262626);border-color:#ef4444;color:#ef4444}.status-icon{font-size:2rem;margin-right:1rem}.status-content h3{margin:0 0 .25rem;font-size:1.25rem}.status-content p{margin:0;opacity:.9;font-size:.95rem}.market-info-card{padding:1.25rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);animation:fadeIn .5s ease}.market-info-card.open{border-left:5px solid #10b981}.market-info-card.closed{border-left:5px solid #ef4444}.market-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.market-header h3{margin:0;font-size:1.25rem}.market-time{font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.market-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.market-detail-item{display:flex;flex-direction:column;gap:.25rem}.market-detail-item .label{font-size:.875rem;opacity:.6}.market-detail-item .value{font-size:1.125rem;font-weight:600}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.25rem;margin-bottom:2rem}.stat-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;border-radius:12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);transition:all .3s ease;animation:fadeIn .5s ease}.stat-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #0000004d}.stat-card.active{border-left:4px solid #10b981}.stat-card.paused{border-left:4px solid #f59e0b}.stat-card.virtual{border-left:4px solid #3b82f6}.stat-card.real{border-left:4px solid #ef4444}.stat-icon{font-size:2.5rem}.stat-content h4{margin:0 0 .25rem;font-size:.875rem;opacity:.7;text-transform:uppercase;letter-spacing:.5px}.stat-number{margin:0;font-size:2rem;font-weight:700}.filter-section{margin-bottom:2rem}.filter-section h3{margin:0 0 1rem;font-size:1.125rem;opacity:.9}.filter-buttons{display:flex;flex-wrap:wrap;gap:.75rem}.filter-buttons button{padding:.625rem 1.25rem;background:#ffffff0d;color:#fffc;border:1px solid rgba(255,255,255,.1);border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease}.filter-buttons button:hover{background:#ffffff1a;border-color:#fff3}.filter-buttons button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent;box-shadow:0 4px 15px #667eea4d}.strategy-section{margin-bottom:2.5rem}.strategy-section h2{margin:0 0 1.25rem;font-size:1.5rem;color:#ffffffe6}.strategies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-bottom:2rem}.strategy-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;transition:all .3s ease;animation:fadeIn .5s ease;position:relative;overflow:hidden}.strategy-card:before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,transparent,currentColor,transparent);opacity:0;transition:opacity .3s ease}.strategy-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0006;border-color:#fff3}.strategy-card:hover:before{opacity:1}.strategy-card.green{border-left:4px solid #10b981;color:#10b981}.strategy-card.yellow{border-left:4px solid #f59e0b;color:#f59e0b}.strategy-card.red{border-left:4px solid #ef4444;color:#ef4444}.strategy-card.gray{border-left:4px solid #6b7280;color:#6b7280;opacity:.7}.strategy-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.strategy-title{display:flex;align-items:center;gap:.75rem;flex:1}.strategy-icon{font-size:1.75rem}.strategy-title h3{margin:0;font-size:1.25rem;color:#fff}.strategy-badges{display:flex;gap:.5rem;flex-wrap:wrap}.badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.badge.mode-virtual{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 2px 8px #3b82f64d}.badge.mode-real{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 2px 8px #ef44444d}.badge.type-hft{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;box-shadow:0 2px 8px #8b5cf64d}.badge.type-regular{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 2px 8px #10b9814d}.strategy-description{margin:0 0 1.25rem;font-size:.9rem;color:#ffffffb3;line-height:1.6}.strategy-details{background:#ffffff08;border-radius:8px;padding:1rem;margin-bottom:1rem}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0}.detail-row:not(:last-child){border-bottom:1px solid rgba(255,255,255,.05)}.detail-label{font-size:.875rem;color:#fff9}.detail-value{font-size:.9rem;font-weight:600;color:#fff}.detail-value.status-active{color:#10b981}.detail-value.status-paused{color:#f59e0b}.detail-value.status-stopped{color:#ef4444}.detail-value.status-disabled{color:#6b7280}.strategy-footer{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1)}.strategy-reason{margin:0;font-size:.875rem;color:#fff9;font-style:italic;display:flex;align-items:center;gap:.5rem;flex:1}.reason-icon{font-size:1rem}.enabled-badge{padding:.375rem .75rem;background:#10b98133;color:#10b981;border-radius:6px;font-size:.75rem;font-weight:600}.disabled-badge{padding:.375rem .75rem;background:#6b728033;color:#6b7280;border-radius:6px;font-size:.75rem;font-weight:600}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;min-height:400px;text-align:center}.loading-spinner .modern-loader{position:relative;width:120px;height:120px;margin:0 auto 2rem}.loading-spinner .loader-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;animation:pulse-loader 1.5s ease-in-out infinite;box-shadow:0 0 20px #667eea80}.loading-spinner .loading-text{color:#ffffffe6;font-size:1.1rem;font-weight:600;margin-bottom:1rem;letter-spacing:.5px}.loading-spinner .loading-dots{display:flex;gap:.5rem;justify-content:center}.loading-spinner .loading-dots span{width:8px;height:8px;background:#667eeacc;border-radius:50%;animation:bounce-loader 1.4s ease-in-out infinite}.loading-spinner .loading-dots span:nth-child(1){animation-delay:0s}.loading-spinner .loading-dots span:nth-child(2){animation-delay:.2s}.loading-spinner .loading-dots span:nth-child(3){animation-delay:.4s}.error-message{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;min-height:400px;text-align:center}.error-icon{font-size:4rem;margin-bottom:1rem}.error-message h3{margin:0 0 1rem;font-size:1.5rem;color:#ef4444}.error-message p{margin:0 0 2rem;color:#fff9}.retry-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ef444466}.no-strategies{text-align:center;padding:3rem 2rem;color:#ffffff80;font-size:1.125rem}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.running-algos-section{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:2rem;margin-bottom:2rem;animation:fadeIn .6s ease}.running-algos-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.1)}.running-algos-header h2{margin:0;font-size:1.75rem;color:#fff;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.running-algos-badge{padding:.5rem 1.25rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);border-radius:20px;box-shadow:0 4px 15px #ec48994d}.badge-text{color:#fff;font-weight:700;font-size:.95rem}.status-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.status-summary-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:12px;border-left:4px solid;transition:all .3s ease}.status-summary-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #0000004d}.status-summary-card.status-open{border-left-color:#10b981}.status-summary-card.status-entry-pending{border-left-color:#f59e0b}.status-summary-card.status-signal-generated{border-left-color:#3b82f6}.status-summary-card.status-waiting-for-signal{border-left-color:#6b7280}.status-summary-icon{font-size:2rem;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#ffffff0d;border-radius:10px;flex-shrink:0}.status-summary-content{flex:1}.status-summary-label{font-size:.875rem;color:#fff9;text-transform:capitalize;margin-bottom:.25rem}.status-summary-count{font-size:1.75rem;font-weight:700;color:#fff}.mode-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.mode-summary-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:12px;border-left:4px solid;transition:all .3s ease}.mode-summary-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #0000004d}.mode-summary-card.mode-virtual{border-left-color:#3b82f6}.mode-summary-card.mode-real{border-left-color:#ef4444}.mode-summary-icon{font-size:2rem;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#ffffff0d;border-radius:10px;flex-shrink:0}.mode-summary-content{flex:1}.mode-summary-label{font-size:.875rem;color:#fff9;margin-bottom:.25rem}.mode-summary-count{font-size:1.75rem;font-weight:700;color:#fff}.positions-section{margin-top:2rem}.positions-title{margin:0 0 1.5rem;font-size:1.5rem;color:#fff;font-weight:600}.positions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem}.position-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;transition:all .3s ease;animation:fadeIn .5s ease;position:relative;overflow:hidden}.position-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#ec4899,#8b5cf6);opacity:0;transition:opacity .3s ease}.position-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0006;border-color:#ec48994d}.position-card:hover:before{opacity:1}.position-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.1)}.position-id{font-size:.875rem;color:#fff9;font-weight:500}.position-status-badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.position-content{display:flex;flex-direction:column;gap:.75rem}.position-row{display:flex;justify-content:space-between;align-items:center}.position-label{font-size:.875rem;color:#fff9}.position-value{font-size:.95rem;font-weight:600;color:#fff}.strike-value{font-size:1.25rem;font-weight:700;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.position-symbols{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding:1rem;background:#ffffff08;border-radius:8px;margin:.5rem 0}.symbol-item{display:flex;flex-direction:column;gap:.25rem}.symbol-label{font-size:.75rem;color:#ffffff80;text-transform:uppercase;letter-spacing:.5px}.symbol-value{font-size:.875rem;font-weight:600;color:#fff;word-break:break-all}.position-mtm{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#ffffff0d;border-radius:8px;margin-top:.5rem}.mtm-label{font-size:.875rem;color:#ffffffb3;font-weight:500}.mtm-value{font-size:1.25rem;font-weight:700}.mtm-value.positive{color:#10b981}.mtm-value.negative{color:#ef4444}.position-footer{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:flex-end}.position-mode-badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.no-positions{text-align:center;padding:3rem 2rem;color:#ffffff80;font-size:1.125rem}.configurations-section{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:2rem;margin-bottom:2rem;animation:fadeIn .6s ease}.configurations-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.1)}.configurations-header h2{margin:0;font-size:1.75rem;color:#fff;background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.configurations-badge{padding:.5rem 1.25rem;background:linear-gradient(135deg,#ec4899,#8b5cf6);border-radius:20px;box-shadow:0 4px 15px #ec48994d}.configurations-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:1.5rem}.configuration-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;transition:all .3s ease;animation:fadeIn .5s ease;position:relative;overflow:hidden}.configuration-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#ec4899,#8b5cf6);opacity:0;transition:opacity .3s ease}.configuration-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0006;border-color:#ec48994d}.configuration-card:hover:before{opacity:1}.configuration-header{margin-bottom:1rem}.configuration-title-section{display:flex;flex-direction:column;gap:.75rem}.configuration-name{margin:0;font-size:1.25rem;font-weight:700;color:#fff;word-break:break-word}.configuration-badges{display:flex;gap:.5rem;flex-wrap:wrap}.configuration-mode-badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.configuration-enabled-badge{padding:.375rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600}.configuration-enabled-badge.enabled{background:#10b98133;color:#10b981}.configuration-enabled-badge.disabled{background:#6b728033;color:#6b7280}.edit-config-btn{padding:.375rem .75rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #3b82f64d}.edit-config-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3b82f666}.edit-actions{display:flex;gap:.5rem}.save-config-btn{padding:.375rem .75rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #10b9814d}.save-config-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #10b98166}.save-config-btn:disabled{opacity:.6;cursor:not-allowed}.cancel-config-btn{padding:.375rem .75rem;background:#6b72804d;color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .3s ease}.cancel-config-btn:hover:not(:disabled){background:#6b728080;transform:translateY(-2px)}.cancel-config-btn:disabled{opacity:.6;cursor:not-allowed}.config-message{padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.875rem;font-weight:500;animation:slideIn .3s ease}.config-message.success{background:#10b98133;color:#10b981;border:1px solid rgba(16,185,129,.3)}.config-message.error{background:#ef444433;color:#ef4444;border:1px solid rgba(239,68,68,.3)}.config-message.info{background:#3b82f633;color:#3b82f6;border:1px solid rgba(59,130,246,.3)}.config-input{padding:.5rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#fff;font-size:.95rem;font-weight:600;width:100%;transition:all .3s ease}.config-input:focus{outline:none;border-color:#ec4899;background:#ffffff26;box-shadow:0 0 0 3px #ec48991a}.config-input::placeholder{color:#fff6}.config-input[type=number]{-moz-appearance:textfield}.config-input[type=number]::-webkit-outer-spin-button,.config-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.configuration-description{margin:0 0 1rem;font-size:.9rem;color:#ffffffb3;line-height:1.6;padding:1rem;background:#ffffff08;border-radius:8px}.configuration-details{margin-bottom:1rem}.configuration-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;padding:1rem;background:#ffffff08;border-radius:8px}.config-detail-item{display:flex;flex-direction:column;gap:.25rem}.config-label{font-size:.75rem;color:#ffffff80;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.config-value{font-size:.95rem;font-weight:600;color:#fff}.config-value.positive{color:#10b981}.config-value.negative{color:#ef4444}.configuration-footer{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:.5rem}.config-timestamp{display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.timestamp-label{color:#fff9}.timestamp-value{color:#fffc;font-weight:500}.no-configurations{text-align:center;padding:3rem 2rem;color:#ffffff80;font-size:1.125rem}@media (max-width: 768px){.strategy-status-container{padding:1rem}.strategy-header{flex-direction:column;align-items:flex-start;gap:1rem}.strategy-header h1{font-size:1.5rem}.refresh-btn{width:100%}.stats-grid{grid-template-columns:repeat(2,1fr)}.strategies-grid{grid-template-columns:1fr}.filter-buttons button{flex:1 1 calc(50% - .375rem)}.market-details{grid-template-columns:1fr}.strategy-card-header{flex-direction:column;gap:.75rem}.strategy-footer{flex-direction:column;gap:.75rem;align-items:flex-start}.running-algos-section{padding:1.5rem}.running-algos-header{flex-direction:column;align-items:flex-start;gap:1rem}.running-algos-header h2{font-size:1.5rem}.status-summary-grid,.mode-summary-grid,.positions-grid,.position-symbols{grid-template-columns:1fr}.configurations-section{padding:1.5rem}.configurations-header{flex-direction:column;align-items:flex-start;gap:1rem}.configurations-header h2{font-size:1.5rem}.configurations-grid,.configuration-detail-grid{grid-template-columns:1fr}}@media (max-width: 480px){.stats-grid{grid-template-columns:1fr}.stat-number{font-size:1.5rem}}.market-overview{padding:2rem;max-width:1400px;margin:0 auto}.page-header{font-size:2rem;font-weight:700;margin-bottom:2rem;color:#1a1a1a}.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.market-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;transition:transform .2s,box-shadow .2s}.market-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.nifty-card{border-left:4px solid #3b82f6}.banknifty-card{border-left:4px solid #10b981}.vix-card{border-left:4px solid #f59e0b}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.card-header h3{font-size:1.1rem;font-weight:600;color:#4b5563;margin:0}.card-badge{background:#f3f4f6;color:#6b7280;padding:.25rem .75rem;border-radius:6px;font-size:.75rem;font-weight:500}.card-body{display:flex;flex-direction:column;gap:.5rem}.price-large{font-size:2.5rem;font-weight:700;color:#1a1a1a;line-height:1.2}.change{font-size:1rem;font-weight:600;display:flex;align-items:center;gap:.25rem}.change.positive{color:#10b981}.change.negative{color:#ef4444}.vix-change{margin-top:.5rem}.error-message,.no-data{text-align:center;padding:2rem;color:#6b7280}.market-info{text-align:center;margin-top:2rem;padding-top:2rem;border-top:1px solid #e5e7eb}.last-updated{font-size:.875rem;color:#6b7280;margin-bottom:.5rem}.info-text{font-size:.75rem;color:#9ca3af}@media (max-width: 768px){.market-overview{padding:1rem}.market-grid{grid-template-columns:1fr}.price-large{font-size:2rem}}.strategies-page{padding:2rem;max-width:1400px;margin:0 auto}.btn-refresh{background:#3b82f6;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s;display:flex;align-items:center;gap:.5rem}.btn-refresh:hover:not(:disabled){background:#2563eb}.btn-refresh:disabled{opacity:.6;cursor:not-allowed}.error-banner{background:#fee2e2;color:#991b1b;padding:1rem;border-radius:8px;margin-bottom:1.5rem;display:flex;justify-content:space-between;align-items:center}.error-banner button{background:#ef4444;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-weight:500;cursor:pointer;transition:background .2s}.error-banner button:hover{background:#dc2626}.strategy-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.strategy-btn{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;padding:1.25rem 1.5rem;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;gap:.75rem;box-shadow:0 4px 6px #3b82f64d;position:relative;overflow:hidden}.strategy-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 12px #3b82f666}.strategy-btn:active:not(:disabled){transform:translateY(0)}.strategy-btn:disabled{opacity:.7;cursor:not-allowed}.strategy-btn.loading{background:linear-gradient(135deg,#6b7280,#4b5563)}.strategy-btn.has-data{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 6px #10b9814d}.strategy-btn.has-data:hover:not(:disabled){box-shadow:0 6px 12px #10b98166}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tab{padding:.75rem 1.5rem;background:none;border:none;border-bottom:3px solid transparent;font-size:1rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem;position:relative}.tab-badge{background:#10b981;color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.tab-content{min-height:400px}.no-data{text-align:center;padding:3rem;color:#6b7280}.error-hint{font-size:.875rem;color:#9ca3af;margin-top:.5rem}.gfs-view{display:flex;flex-direction:column;gap:2rem}.strategy-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.section-title{font-size:1.5rem;font-weight:600;margin-bottom:1.5rem;color:#1a1a1a}.signals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.signal-card{background:#f9fafb;border-radius:8px;padding:1rem;border-left:4px solid #6b7280;transition:transform .2s}.signal-card:hover{transform:translateY(-2px)}.buy-signal{border-left-color:#10b981}.sell-signal{border-left-color:#ef4444}.signal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.stock-name{font-size:1.1rem;font-weight:600;color:#1a1a1a}.signal-badge{padding:.25rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600}.signal-badge.buy{background:#d1fae5;color:#065f46}.signal-badge.sell{background:#fee2e2;color:#991b1b}.signal-metrics{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.metric{display:flex;justify-content:space-between;font-size:.875rem}.metric-label{color:#6b7280}.metric-value{font-weight:600;color:#1a1a1a}.signal-date{font-size:.75rem;color:#9ca3af;padding-top:.5rem;border-top:1px solid #e5e7eb}.no-signals{text-align:center;padding:2rem;color:#9ca3af;grid-column:1 / -1}.mad-view{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.mad-table-container{overflow-x:auto}.mad-table{width:100%;border-collapse:collapse}.mad-table thead{background:#f3f4f6}.mad-table th{padding:1rem;text-align:left;font-weight:600;color:#374151;border-bottom:2px solid #e5e7eb}.mad-table td{padding:1rem;border-bottom:1px solid #e5e7eb}.mad-table tbody tr:hover{background:#f9fafb}.stock-cell{font-weight:600;color:#1a1a1a}.percentage-cell{font-weight:600}.percentage-cell .positive{color:#10b981}.percentage-cell .negative{color:#ef4444}.sector-view{display:flex;flex-direction:column;gap:2rem}.sector-summary{display:flex;gap:1rem}.summary-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;flex:1}.summary-card h4{font-size:.875rem;color:#6b7280;margin-bottom:.5rem}.summary-value{font-size:2rem;font-weight:700;color:#1a1a1a}.sector-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:2rem}.sector-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.sector-card{padding:1.5rem;border-radius:8px;margin-bottom:1.5rem;text-align:center}.sector-card.top{background:linear-gradient(135deg,#d1fae5,#a7f3d0)}.sector-card.weakest{background:linear-gradient(135deg,#fee2e2,#fecaca)}.sector-name{font-size:1.5rem;font-weight:700;color:#1a1a1a;margin-bottom:.5rem}.sector-return{font-size:2rem;font-weight:700;margin-bottom:.5rem}.sector-return.positive{color:#065f46}.sector-return.negative{color:#991b1b}.sector-stocks{font-size:.875rem;color:#6b7280}.stocks-list{margin-top:1.5rem}.stocks-list h4{font-size:1rem;font-weight:600;margin-bottom:1rem;color:#374151}.stocks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem}.stock-item{display:flex;flex-direction:column;align-items:center;padding:.75rem;background:#f9fafb;border-radius:6px;gap:.25rem}.stock-symbol{font-weight:600;color:#1a1a1a;font-size:.875rem}.stock-return{font-size:.75rem;font-weight:600}.stock-return.positive{color:#10b981}.stock-return.negative{color:#ef4444}.sector-performance{font-size:.875rem;color:#6b7280;margin-top:.25rem}.all-sectors-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;margin-top:2rem}.sectors-table-container{overflow-x:auto;margin-top:1rem}.sectors-table{width:100%;border-collapse:collapse}.sectors-table thead{background:#f3f4f6}.sectors-table th{padding:1rem;text-align:left;font-weight:600;color:#374151;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.sectors-table td{padding:1rem;border-bottom:1px solid #e5e7eb;font-size:.875rem}.sectors-table tbody tr:hover{background:#f9fafb}.sector-cell{font-weight:600;color:#1a1a1a}.return-cell{font-weight:600}.return-cell.positive{color:#10b981}.return-cell.negative{color:#ef4444}.nifty-cell{color:#6b7280}.relative-cell{font-weight:600}.relative-cell.positive{color:#10b981}.relative-cell.negative{color:#ef4444}.straddles-view{display:flex;flex-direction:column;gap:1.5rem}.straddles-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:1rem}.stat-card:hover{transform:translateY(-2px);box-shadow:0 6px 12px #667eea66}.stat-card:nth-child(4){background:linear-gradient(135deg,#43e97b,#38f9d7)}.stat-card:nth-child(5){background:linear-gradient(135deg,#fa709a,#fee140)}.stat-icon{font-size:2rem;margin-bottom:.5rem}.stat-value{font-size:1.75rem;font-weight:700;margin-bottom:.25rem}.straddles-controls{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;background:#fff;padding:1rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.search-box{flex:1;min-width:250px}.search-input{width:100%;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.95rem;transition:border-color .2s}.search-input:focus{outline:none;border-color:#3b82f6}.filter-group,.sort-group{display:flex;align-items:center;gap:.5rem}.filter-select,.sort-select{padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.95rem;background:#fff;cursor:pointer;transition:border-color .2s}.filter-select:focus,.sort-select:focus{outline:none;border-color:#3b82f6}.sort-order-btn{padding:.75rem;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:1.25rem;cursor:pointer;transition:background .2s;width:45px;height:45px;display:flex;align-items:center;justify-content:center}.sort-order-btn:hover{background:#2563eb}.results-info{font-size:.875rem;color:#6b7280;padding:.5rem 1rem;background:#f9fafb;border-radius:8px;display:inline-block}.straddles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.straddle-card{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 2px 8px #0000001a;transition:all .3s;border:1px solid #e5e7eb}.straddle-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #00000026;border-color:#3b82f6}.straddle-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid #f3f4f6}.stock-symbol{font-size:1.25rem;font-weight:700;color:#1a1a1a;letter-spacing:.5px}.expiry-badge{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.35rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600}.straddle-metrics{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.metric-row{display:flex;justify-content:space-between;align-items:center}.metric-label{font-size:.875rem;color:#6b7280;font-weight:500}.metric-value{font-size:1.1rem;font-weight:700}.metric-value.premium.high{color:#10b981}.metric-value.premium.medium{color:#f59e0b}.metric-value.premium.low{color:#6b7280}.metric-value.percentage.high{color:#10b981}.metric-value.percentage.medium{color:#f59e0b}.metric-value.percentage.low{color:#6b7280}.straddle-footer{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #f3f4f6}.premium-indicator{height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden}.indicator-bar{height:100%;border-radius:3px;transition:width .3s}.indicator-bar.high{background:linear-gradient(90deg,#10b981,#059669)}.indicator-bar.medium{background:linear-gradient(90deg,#f59e0b,#d97706)}.indicator-bar.low{background:linear-gradient(90deg,#6b7280,#4b5563)}.no-results{text-align:center;padding:3rem;color:#6b7280;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}@media (max-width: 768px){.strategies-page{padding:1rem}.tabs{flex-direction:column}.signals-grid,.sector-sections{grid-template-columns:1fr}.straddles-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.straddles-controls{flex-direction:column;align-items:stretch}.search-box{min-width:100%}.straddles-grid{grid-template-columns:1fr}}.orders-page{padding:2rem;max-width:1400px;margin:0 auto}.page-header-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.page-header{font-size:2rem;font-weight:700;color:#1a1a1a}.btn-primary{background:#3b82f6;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s}.btn-primary:hover{background:#2563eb}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.stat-label{font-size:.875rem;color:#6b7280;margin-bottom:.5rem}.stat-value{font-size:2rem;font-weight:700;color:#1a1a1a}.stat-value.success{color:#10b981}.stat-value.warning{color:#f59e0b}.tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:2px solid #e5e7eb}.tab{padding:.75rem 1.5rem;background:none;border:none;border-bottom:3px solid transparent;font-size:1rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s}.tab:hover{color:#3b82f6}.tab.active{color:#3b82f6;border-bottom-color:#3b82f6}.table-container{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:#f3f4f6}.data-table th{padding:1rem;text-align:left;font-weight:600;color:#374151;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.data-table td{padding:1rem;border-bottom:1px solid #e5e7eb;font-size:.875rem}.data-table tbody tr:hover{background:#f9fafb}.order-id{font-family:monospace;font-size:.75rem;color:#6b7280}.symbol{font-weight:600;color:#1a1a1a}.buy{color:#10b981;font-weight:600}.sell{color:#ef4444;font-weight:600}.price{font-weight:600;color:#1a1a1a}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:6px;font-size:.75rem;font-weight:600}.status-badge.success{background:#d1fae5;color:#065f46}.status-badge.error{background:#fee2e2;color:#991b1b}.status-badge.warning{background:#fef3c7;color:#92400e}.status-badge.info{background:#dbeafe;color:#1e40af}.status-badge.default{background:#f3f4f6;color:#374151}.btn-cancel{background:#ef4444;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .2s}.btn-cancel:hover{background:#dc2626}.order-form-container{background:#fff;border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a}.order-form h3{margin-bottom:1.5rem;font-size:1.5rem;color:#1a1a1a}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.875rem;font-weight:500;color:#374151}.form-group input,.form-group select{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:border-color .2s}.form-actions{display:flex;justify-content:flex-end;gap:1rem}.no-data,.loading-spinner{text-align:center;padding:3rem;color:#6b7280}@media (max-width: 768px){.orders-page{padding:1rem}.page-header-section{flex-direction:column;align-items:flex-start;gap:1rem}.data-table{font-size:.75rem}.data-table th,.data-table td{padding:.5rem}.form-grid{grid-template-columns:1fr}}.nifty-analysis-page{padding:2rem;max-width:1400px;margin:0 auto;width:100%;box-sizing:border-box;overflow-x:hidden}.page-header-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.page-header{font-size:2rem;font-weight:700;color:#fff}.date-selector{display:flex;align-items:center;gap:.5rem}.date-selector label{font-weight:500;color:#374151}.date-selector input{padding:.5rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem}.nifty-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.summary-card{background:linear-gradient(135deg,#fff,#f9fafb);border-radius:16px;padding:1.75rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f,0 0 0 1px #0000000d;border:1px solid rgba(255,255,255,.8);transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.summary-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#667eea,#764ba2);opacity:0;transition:opacity .3s ease}.summary-card:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a,0 0 0 1px #667eea1a}.summary-card:hover:before{opacity:1}.summary-label{font-size:.875rem;color:#6b7280;margin-bottom:.75rem;font-weight:500;letter-spacing:.025em;text-transform:uppercase}.summary-value{font-size:1.875rem;font-weight:700;color:#111827!important;letter-spacing:-.025em;line-height:1.2}.summary-value.positive{color:#059669!important;text-shadow:0 1px 2px rgba(5,150,105,.1)}.summary-value.negative{color:#dc2626!important;text-shadow:0 1px 2px rgba(220,38,38,.1)}.contributors-section{background:linear-gradient(135deg,#fff,#f9fafb);border-radius:16px;padding:2rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f,0 0 0 1px #0000000d;border:1px solid rgba(255,255,255,.8);width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.section-title{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;color:#1a1a1a}.section-subtitle{font-size:.875rem;color:#6b7280;margin-bottom:1.5rem}.contributors-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;margin-top:1.5rem;width:100%;max-width:100%;box-sizing:border-box}.contributors-column{display:flex;flex-direction:column;min-width:0;width:100%;max-width:100%;box-sizing:border-box}.column-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;border-radius:10px;margin-bottom:1rem;box-shadow:0 2px 4px #0000000d}.gainers-header{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.losers-header{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.header-icon{font-size:2rem;line-height:1}.column-title{font-size:1.25rem;font-weight:700;margin:0;color:#fff}.column-subtitle{font-size:.875rem;margin:.25rem 0 0;opacity:.9;color:#fff}.contributors-list{display:flex;flex-direction:column;gap:1rem;max-height:70vh;overflow-y:auto;padding-right:.5rem}.contributors-list::-webkit-scrollbar{width:6px}.contributors-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.contributors-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.contributors-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.contributor-card{display:flex;gap:1rem;background:#fff;border-radius:14px;padding:1.5rem;box-shadow:0 2px 4px -1px #0000000f,0 4px 6px -1px #0000001a,0 0 0 1px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1);border-left:4px solid;position:relative;overflow:hidden;min-width:0;width:100%;max-width:100%;box-sizing:border-box;flex-shrink:0}.contributor-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:inherit;transition:width .3s ease}.contributor-card:hover{transform:translateY(-4px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d,0 0 0 1px #0000000d}.contributor-card:hover:before{width:6px}.gainer-card{border-left-color:#10b981;background:linear-gradient(to right,#f0fdf4,#fff 15%)}.gainer-card:hover{box-shadow:0 10px 15px -3px #10b9811a,0 4px 6px -2px #10b9810d,0 0 0 1px #10b9811a}.loser-card{border-left-color:#ef4444;background:linear-gradient(to right,#fef2f2,#fff 15%)}.loser-card:hover{box-shadow:0 10px 15px -3px #ef44441a,0 4px 6px -2px #ef44440d,0 0 0 1px #ef44441a}.card-rank{font-size:1.5rem;font-weight:700;color:#9ca3af;min-width:2.5rem;max-width:2.5rem;flex-shrink:0;text-align:center;display:flex;align-items:center;justify-content:center}.card-content{flex:1;display:flex;flex-direction:column;gap:.75rem;min-width:0;overflow:hidden}.card-header-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;min-width:0}.stock-symbol{font-size:1.25rem;font-weight:700;color:#1a1a1a;letter-spacing:.02em;word-break:break-word;overflow-wrap:break-word}.contribution-badge{padding:.375rem .75rem;border-radius:8px;font-size:.875rem;font-weight:700;flex-shrink:0;white-space:nowrap}.contribution-badge.positive{background:#d1fae5;color:#065f46}.contribution-badge.negative{background:#fee2e2;color:#991b1b}.card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;min-width:0;width:100%}@media (max-width: 1200px){.card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 768px){.card-metrics{grid-template-columns:1fr}}.metric-item{display:flex;flex-direction:column;gap:.25rem;min-width:0;overflow:hidden}.metric-label{font-size:.75rem;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;font-weight:500;word-break:break-word;overflow-wrap:break-word}.metric-value{font-size:.875rem;font-weight:600;color:#374151;word-break:break-word;overflow-wrap:break-word}.metric-value.positive{color:#10b981}.metric-value.negative{color:#ef4444}.card-price-info{display:flex;align-items:center;gap:.5rem;padding-top:.5rem;border-top:1px solid #e5e7eb;font-size:.8125rem;flex-wrap:wrap;min-width:0}.price-label{color:#6b7280;word-break:break-word;overflow-wrap:break-word;white-space:nowrap}.price-arrow{color:#9ca3af;font-weight:600}.positive{color:#10b981;font-weight:600}.negative{color:#ef4444;font-weight:600}.loading-spinner,.error-message{text-align:center;padding:3rem;color:#6b7280}.error-message{color:#ef4444}.no-data{text-align:center;padding:2rem;color:#6b7280}@media (max-width: 1024px){.contributors-grid{grid-template-columns:1fr;gap:2rem}.contributors-list{max-height:50vh}}@media (max-width: 768px){.nifty-analysis-page{padding:1rem}.nifty-summary{grid-template-columns:1fr}.contributors-grid{grid-template-columns:1fr;gap:1.5rem}.card-metrics{grid-template-columns:1fr;gap:.5rem}.card-header-row{flex-direction:column;align-items:flex-start;gap:.5rem}.contributors-list{max-height:60vh}.column-header{padding:.875rem 1rem}.column-title{font-size:1.125rem}.header-icon{font-size:1.5rem}}.users-page{padding:2rem;max-width:1400px;margin:0 auto}.users-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.header-content{flex:1}.page-title{font-size:2rem;font-weight:700;color:#1a1a1a;display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.title-icon{font-size:2.5rem}.page-subtitle{color:#6b7280;font-size:1rem}.create-user-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:0 4px 6px #3b82f64d}.create-user-btn:hover{transform:translateY(-2px);box-shadow:0 6px 12px #3b82f666}.create-user-btn:active{transform:translateY(0)}.btn-icon{font-size:1.25rem}.message-banner{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem;border-radius:10px;margin-bottom:1.5rem;animation:slideDown .3s}.message-banner.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.message-banner.success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.message-icon{font-size:1.25rem}.close-btn{margin-left:auto;background:none;border:none;font-size:1.5rem;cursor:pointer;color:inherit;opacity:.7;transition:opacity .2s}.close-btn:hover{opacity:1}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.access-denied{text-align:center;padding:4rem 2rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.access-denied-icon{font-size:4rem;margin-bottom:1rem}.access-denied h2{font-size:1.75rem;color:#1a1a1a;margin-bottom:.5rem}.access-denied p{color:#6b7280;font-size:1rem}.users-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;padding:1.5rem;color:#fff;text-align:center;box-shadow:0 4px 6px #667eea4d;transition:transform .2s}.stat-card:nth-child(1){background:linear-gradient(135deg,#667eea,#764ba2)}.stat-card:nth-child(2){background:linear-gradient(135deg,#f093fb,#f5576c)}.stat-card:nth-child(3){background:linear-gradient(135deg,#4facfe,#00f2fe)}.stat-card:hover{transform:translateY(-4px);box-shadow:0 6px 12px #667eea66}.stat-icon{font-size:2.5rem;margin-bottom:.5rem}.stat-value{font-size:2.5rem;font-weight:700;margin-bottom:.25rem}.stat-label{font-size:.875rem;opacity:.9;font-weight:500}.loading-container{text-align:center;padding:4rem 2rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px}.modern-loader{position:relative;width:120px;height:120px;margin:0 auto 2rem}.loader-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;animation:pulse 1.5s ease-in-out infinite;box-shadow:0 0 20px #667eea80}.loader-orb{position:absolute;width:20px;height:20px;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.orb-1{background:linear-gradient(135deg,#667eea,#764ba2);animation:orbit 2s linear infinite;box-shadow:0 0 15px #667eea99}.orb-2{background:linear-gradient(135deg,#f093fb,#f5576c);animation:orbit 2s linear infinite .5s;box-shadow:0 0 15px #f093fb99}.orb-3{background:linear-gradient(135deg,#4facfe,#00f2fe);animation:orbit 2s linear infinite 1s;box-shadow:0 0 15px #4facfe99}.orb-4{background:linear-gradient(135deg,#43e97b,#38f9d7);animation:orbit 2s linear infinite 1.5s;box-shadow:0 0 15px #43e97b99}@keyframes orbit{0%{transform:translate(-50%,-50%) rotate(0) translate(50px) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg) translate(50px) rotate(-360deg)}}@keyframes pulse{0%,to{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.2);opacity:.8}}.loading-text{font-size:1.1rem;font-weight:600;color:#374151;margin-bottom:1rem;letter-spacing:.5px}.loading-dots{display:flex;gap:.5rem;justify-content:center;align-items:center}.loading-dots span{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);animation:bounce 1.4s ease-in-out infinite;box-shadow:0 2px 8px #667eea66}.loading-dots span:nth-child(1){animation-delay:0s}.loading-dots span:nth-child(2){animation-delay:.2s}.loading-dots span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,80%,to{transform:translateY(0) scale(1);opacity:.7}40%{transform:translateY(-15px) scale(1.1);opacity:1}}.users-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.users-table{width:100%;border-collapse:collapse}.users-table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.users-table th{padding:1.25rem 1rem;text-align:left;font-weight:600;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.users-table td{padding:1.25rem 1rem;border-bottom:1px solid #e5e7eb;font-size:.95rem}.users-table tbody tr:hover{background:#f9fafb}.users-table tbody tr.admin-row{background:#fef3c7}.users-table tbody tr.admin-row:hover{background:#fde68a}.user-id{font-weight:600;color:#6b7280;font-family:Courier New,monospace}.username-cell{display:flex;align-items:center;gap:.5rem}.username{font-weight:600;color:#1a1a1a}.current-user-badge{background:#3b82f6;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.name-cell{color:#374151}.role-cell{font-weight:600}.role-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.5rem .75rem;border-radius:6px;font-size:.875rem}.role-badge.admin{background:#fef3c7;color:#92400e}.role-badge.user{background:#e0e7ff;color:#3730a3}.date-cell{color:#6b7280;font-size:.875rem}.actions-cell{display:flex;align-items:center;gap:.5rem}.action-btn{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.change-role-btn{background:#f3f4f6;color:#374151}.change-role-btn:hover{background:#e5e7eb;transform:translateY(-1px)}.current-user-text{color:#6b7280;font-size:.875rem;font-style:italic}.no-users{text-align:center;padding:3rem;color:#6b7280}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;animation:slideUp .3s}.modal-content.small{max-width:400px}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb}.modal-header h2{font-size:1.5rem;font-weight:700;color:#1a1a1a;margin:0}.modal-close{background:none;border:none;font-size:2rem;color:#6b7280;cursor:pointer;line-height:1;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.modal-close:hover{background:#f3f4f6;color:#1a1a1a}.modal-form{padding:1.5rem}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#374151;font-size:.875rem}.form-group input,.form-group select{width:100%;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6}.modal-body{padding:1.5rem}.modal-body p{color:#6b7280;margin-bottom:1.5rem}.role-options{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.role-option{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;border:2px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;transition:all .2s}.role-option:hover{border-color:#3b82f6;background:#f0f9ff}.role-option.active{border-color:#3b82f6;background:#dbeafe}.role-icon{font-size:2rem}.role-name{font-weight:600;color:#1a1a1a}.modal-actions{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem;border-top:1px solid #e5e7eb}.btn-cancel{padding:.75rem 1.5rem;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s}.btn-cancel:hover{background:#e5e7eb}.btn-submit{padding:.75rem 1.5rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.btn-submit:hover{transform:translateY(-1px);box-shadow:0 4px 6px #3b82f64d}@media (max-width: 768px){.users-page{padding:1rem}.users-header{flex-direction:column;align-items:stretch}.users-stats{grid-template-columns:1fr}.users-table-container{overflow-x:auto}.users-table{min-width:800px}.role-options{grid-template-columns:1fr}}.straddle-adjustment-page{padding:2rem;max-width:1600px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.page-header h1{font-size:2rem;font-weight:700;color:#1f2937;margin:0}.mode-selector{display:flex;gap:.5rem;background:#f3f4f6;padding:.25rem;border-radius:8px}.mode-btn{padding:.5rem 1.5rem;border:none;background:transparent;border-radius:6px;font-weight:600;cursor:pointer;transition:all .3s ease;color:#6b7280}.mode-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 2px 8px #667eea4d}.mode-btn:hover:not(.active){background:#e5e7eb;color:#374151}.error-banner{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;padding:1rem;border-radius:8px;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem}.success-banner{background:#d1fae5;border:1px solid #86efac;color:#065f46;padding:1rem;border-radius:8px;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem;font-weight:600}.summary-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.summary-card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 12px #0000001a;border:2px solid #e5e7eb;transition:all .3s ease;text-align:center;color:#111827}.summary-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #00000026}.combined-pnl-card{background:linear-gradient(135deg,#667eea15,#764ba215);border-color:#667eea}.active-positions-card{background:linear-gradient(135deg,#d1fae5,#a7f3d0);border-color:#10b981}.active-positions-card .position-label{color:#065f46}.active-positions-card .position-value{color:#047857}.adjustments-card{background:linear-gradient(135deg,#f59e0b15,#d9770615);border-color:#f59e0b}.summary-label{font-size:.875rem;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.5px;margin-bottom:1rem}.active-positions-card .summary-label{color:#065f46}.summary-value{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;line-height:1.2}.summary-value.positive{color:#059669}.summary-value.negative{color:#dc2626}.summary-value.adjustments-value{color:#f59e0b;font-size:3rem}.summary-subtitle{font-size:.875rem;color:#374151;font-weight:500}.active-positions-card .summary-subtitle{color:#047857}.positions-summary{display:flex;justify-content:center;gap:2rem;margin:1rem 0}.position-summary-item{display:flex;flex-direction:column;gap:.5rem}.position-label{font-size:.75rem;color:#374151;font-weight:600;text-transform:uppercase}.position-value{font-size:1.75rem;font-weight:700;color:#111827}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem;margin-bottom:2rem}.dashboard-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;border:1px solid #e5e7eb;transition:all .3s ease}.dashboard-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.dashboard-card h2{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0 0 1rem;padding-bottom:.75rem;border-bottom:2px solid #f3f4f6}.status-badge{display:inline-block;padding:.5rem 1rem;border-radius:6px;font-weight:600;font-size:.875rem;margin-bottom:1rem}.status-running{background:#d1fae5;color:#065f46}.status-paused{background:#fef3c7;color:#92400e}.status-stopped,.status-error{background:#fee2e2;color:#991b1b}.status-initialized{background:#dbeafe;color:#1e40af}.status-default{background:#f3f4f6;color:#374151}.status-details{display:flex;flex-direction:column;gap:.75rem}.status-item{display:flex;justify-content:space-between;align-items:center}.status-item .label{color:#6b7280;font-size:.875rem}.status-item .value{color:#1f2937;font-weight:600;font-size:.875rem}.market-data{display:flex;flex-direction:column;gap:1rem}.market-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px}.market-item .label{color:#6b7280;font-size:.875rem}.market-item .value{color:#1f2937;font-weight:600}.market-item .value.large{font-size:1.25rem;color:#667eea}.pnl-data{display:flex;flex-direction:column;gap:1rem}.pnl-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px}.pnl-item.main{background:linear-gradient(135deg,#667eea15,#764ba215);border:2px solid #667eea}.pnl-item .label{color:#6b7280;font-size:.875rem}.pnl-item .value{font-weight:600;font-size:.875rem}.pnl-item .value.large{font-size:1.5rem;font-weight:700}.pnl-item .value.positive{color:#059669}.pnl-item .value.negative{color:#dc2626}.progress-bars{display:flex;flex-direction:column;gap:1.5rem}.progress-item{display:flex;flex-direction:column;gap:.5rem}.progress-header{display:flex;justify-content:space-between;align-items:center}.progress-header .label{color:#6b7280;font-size:.875rem;font-weight:600}.progress-header .value{color:#1f2937;font-weight:600;font-size:.875rem}.progress-bar{width:100%;height:24px;background:#f3f4f6;border-radius:12px;overflow:hidden;position:relative}.progress-fill{height:100%;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;transition:width .5s ease;box-shadow:0 2px 4px #667eea4d}.progress-text{text-align:right;font-size:.75rem;color:#6b7280;font-weight:600}.positions-data{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.position-item{display:flex;flex-direction:column;gap:.25rem;padding:.75rem;background:#f9fafb;border-radius:8px}.position-item .label{color:#374151;font-size:.75rem;font-weight:600}.position-item .value{color:#111827;font-weight:700;font-size:1rem}.triggers-data{display:flex;flex-direction:column;gap:1rem}.trigger-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px}.trigger-item .label{color:#6b7280;font-size:.875rem}.trigger-item .value{color:#1f2937;font-weight:600}.trigger-distance{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:linear-gradient(135deg,#dbeafe,#e0e7ff);border-radius:8px;border:1px solid #93c5fd}.trigger-distance .label{color:#1e40af;font-size:.875rem;font-weight:600}.trigger-distance .value{color:#1e40af;font-weight:700}.statistics-data{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.stat-item{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#f9fafb;border-radius:8px;text-align:center}.stat-item .label{color:#6b7280;font-size:.75rem}.stat-item .value{color:#1f2937;font-weight:700;font-size:1.5rem}.risk-data{display:flex;flex-direction:column;gap:1rem}.risk-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px}.risk-item .label{color:#6b7280;font-size:.875rem}.risk-item .value{font-weight:600}.risk-item .value.normal{color:#059669}.risk-item .value.warning{color:#dc2626}.config-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:2px solid #f3f4f6}.config-header h2{margin:0;display:flex;align-items:center;gap:.5rem}.admin-only-badge{font-size:.75rem;color:#6b7280;font-weight:500;font-style:italic}.edit-config-btn{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:.875rem}.edit-config-btn:hover{transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d}.config-section{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}.config-section:last-of-type{border-bottom:none}.config-section-title{font-size:1rem;font-weight:700;color:#374151;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid #f3f4f6}.config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.config-item{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:#f9fafb;border-radius:8px}.config-item .label{color:#6b7280;font-size:.75rem;font-weight:600}.config-item .value{color:#1f2937;font-weight:600}.config-item input{padding:.5rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;font-weight:600;color:#1f2937;background:#fff}.config-item input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.config-metadata{margin-top:2rem;padding-top:1.5rem;border-top:2px solid #f3f4f6;display:flex;gap:2rem;flex-wrap:wrap}.metadata-item{display:flex;gap:.5rem;font-size:.875rem}.metadata-item .label{color:#6b7280;font-weight:600}.metadata-item .value{color:#1f2937}.modern-loading-container{text-align:center;padding:4rem 2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px}.error-container{text-align:center;padding:4rem 2rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.error-container h2{color:#dc2626;margin-bottom:1rem}.retry-button{margin-top:1.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}@media (max-width: 768px){.straddle-adjustment-page{padding:1rem}.page-header{flex-direction:column;align-items:flex-start;gap:1rem}.dashboard-grid,.positions-data,.statistics-data,.config-grid{grid-template-columns:1fr}}.straddle-inverted-page{padding:2rem;max-width:1600px;margin:0 auto;min-height:100vh;background:linear-gradient(135deg,#667eea15,#764ba215)}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid rgba(102,126,234,.2);flex-wrap:wrap;gap:1.5rem}.header-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.enable-toggle-btn{padding:.75rem 1.5rem;border:2px solid;border-radius:12px;font-weight:700;font-size:1rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem;box-shadow:0 4px 15px #0000001a}.enable-toggle-btn.enabled{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-color:#10b981}.enable-toggle-btn.enabled:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 6px 20px #10b98166}.enable-toggle-btn.disabled{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-color:#ef4444}.enable-toggle-btn.disabled:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-2px);box-shadow:0 6px 20px #ef444466}.enable-toggle-btn:disabled{opacity:.6;cursor:not-allowed}.toggle-icon{font-size:1.2rem;font-weight:700}.header-content h1{margin:0;font-size:2.5rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:700}.header-subtitle{margin:.5rem 0 0;color:#6b7280;font-size:1rem}.mode-selector{display:flex;gap:.75rem}.mode-btn{padding:.75rem 1.5rem;border:2px solid #e5e7eb;border-radius:12px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .3s ease;background:#fff;color:#6b7280}.mode-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea;box-shadow:0 4px 15px #667eea4d}.mode-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.error-banner,.success-banner{padding:1rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;display:flex;align-items:center;gap:.75rem;font-weight:500;animation:slideIn .3s ease}.error-banner{background:linear-gradient(135deg,#dc26261a,#b91c1c1a);border:1px solid #dc2626;color:#991b1b}.success-banner{background:linear-gradient(135deg,#10b9811a,#0596691a);border:1px solid #10b981;color:#065f46}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.summary-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.summary-card{background:#fff;border-radius:16px;padding:1.5rem;display:flex;align-items:center;gap:1.5rem;box-shadow:0 4px 20px #0000001a;transition:all .3s ease;border:2px solid transparent}.summary-card:hover{transform:translateY(-5px);box-shadow:0 8px 30px #00000026}.total-profit-card{border-color:#667eea4d;background:linear-gradient(135deg,#667eea0d,#764ba20d)}.global-profit-card{border-color:#10b9814d;background:linear-gradient(135deg,#10b9810d,#0596690d)}.current-mtm-card{border-color:#3b82f64d;background:linear-gradient(135deg,#3b82f60d,#2563eb0d)}.positions-count-card{border-color:#f59e0b4d;background:linear-gradient(135deg,#f59e0b0d,#d977060d)}.summary-icon{font-size:3rem;opacity:.8}.summary-content{flex:1}.summary-label{font-size:.875rem;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.summary-value{font-size:1.75rem;font-weight:700;color:#fff}.summary-value.positive{color:#10b981}.summary-value.negative{color:#ef4444}.section{margin-bottom:3rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.section-title{font-size:1.75rem;font-weight:700;color:#1f2937;margin:0}.edit-config-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .3s ease}.edit-config-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px #667eea4d}.no-positions{text-align:center;padding:4rem 2rem;background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000001a}.no-positions-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.no-positions p{font-size:1.25rem;color:#6b7280}.positions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:2rem}.position-card{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 40px #0000001a;border:2px solid rgba(102,126,234,.2);transition:all .3s ease;position:relative;overflow:hidden}.position-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2)}.position-card:hover{transform:translateY(-5px);box-shadow:0 15px 50px #00000026;border-color:#667eea}.position-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid rgba(0,0,0,.1)}.position-header h3{margin:0;font-size:1.5rem;font-weight:700;color:#1f2937}.status-badge{padding:.5rem 1rem;border-radius:12px;font-weight:600;font-size:.875rem;text-transform:uppercase}.status-badge.open{background:#10b9811a;color:#065f46;border:1px solid #10b981}.status-badge.entry_pending{background:#f59e0b1a;color:#92400e;border:1px solid #f59e0b}.position-details{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1.5rem}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px}.detail-label{font-size:.875rem;color:#6b7280;font-weight:500}.detail-value{font-size:1rem;font-weight:600;color:#1f2937}.mode-badge{padding:.25rem .75rem;border-radius:8px;font-size:.75rem;font-weight:700}.mode-badge.virtual{background:#3b82f61a;color:#1e40af;border:1px solid #3b82f6}.mode-badge.real{background:#10b9811a;color:#065f46;border:1px solid #10b981}.adjustment-badge{padding:.25rem .75rem;background:#667eea1a;color:#4338ca;border:1px solid #667eea;border-radius:8px;font-size:.75rem;font-weight:700}.legs-section{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1.5rem}.leg-card{padding:1rem;border-radius:12px;border:2px solid}.leg-card.ce-leg{background:#3b82f60d;border-color:#3b82f64d}.leg-card.pe-leg{background:#10b9810d;border-color:#10b9814d}.leg-header{font-weight:700;font-size:.875rem;text-transform:uppercase;margin-bottom:.5rem;color:#1f2937}.leg-symbol{font-size:.75rem;color:#6b7280;margin-bottom:.5rem;font-family:monospace}.leg-price,.leg-sell{font-size:.875rem;color:#1f2937;margin-bottom:.25rem}.profit-breakdown{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem;padding:1.5rem;background:linear-gradient(135deg,#667eea0d,#764ba20d);border-radius:12px;border:2px solid rgba(102,126,234,.2)}.profit-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:8px}.profit-label{font-size:.95rem;font-weight:600;color:#1f2937}.profit-value{font-size:1.1rem;font-weight:700}.profit-value.large{font-size:1.5rem}.profit-value.positive{color:#10b981}.profit-value.negative{color:#ef4444}.position-notes{margin-bottom:1.5rem;padding:1rem;background:#f9fafb;border-radius:12px;border-left:4px solid #667eea}.notes-header{font-weight:700;font-size:.875rem;color:#1f2937;margin-bottom:.5rem}.notes-content{font-size:.875rem;color:#6b7280;line-height:1.6}.position-footer{display:flex;justify-content:space-between;padding-top:1rem;border-top:1px solid rgba(0,0,0,.1);font-size:.875rem}.footer-item{display:flex;flex-direction:column;gap:.25rem}.footer-label{color:#6b7280;font-weight:500}.footer-value{color:#1f2937;font-weight:600}.state-card{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 40px #0000001a;border:2px solid rgba(102,126,234,.2)}.state-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.state-item{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#f9fafb;border-radius:12px}.state-label{font-size:.875rem;color:#6b7280;font-weight:500}.state-value{font-size:1.25rem;font-weight:700;color:#1f2937}.state-value.positive{color:#10b981}.state-value.negative{color:#ef4444}.config-card{background:#fff;border-radius:20px;padding:2.5rem;box-shadow:0 10px 40px #0000001a;border:2px solid rgba(102,126,234,.2)}.config-grid{display:flex;flex-direction:column;gap:2.5rem}.config-group{padding-bottom:2rem;border-bottom:1px solid rgba(0,0,0,.1)}.config-group:last-child{border-bottom:none;padding-bottom:0}.config-group-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin-bottom:1.5rem}.config-item{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.config-label{display:flex;flex-direction:column;gap:.25rem}.config-label span:first-child{font-weight:600;color:#1f2937;font-size:.95rem}.help-text{font-size:.75rem;color:#6b7280;font-style:italic}.config-input{width:100%;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;font-weight:500;color:#1f2937;transition:all .3s ease;background:#fff}.config-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.config-input:disabled{background:#f3f4f6;cursor:not-allowed;opacity:.6}.config-value{font-size:1rem;font-weight:600;color:#1f2937;padding:.75rem 1rem;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.profit-targets-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.profit-target-item{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:linear-gradient(135deg,#667eea0d,#764ba20d);border-radius:12px;border:2px solid rgba(102,126,234,.2)}.profit-target-item label{font-size:.875rem;font-weight:600;color:#1f2937}.modern-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:1.5rem}.modern-loader{position:relative;width:120px;height:120px}.loader-orb{position:absolute;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);animation:orbit 2s linear infinite}.orb-1{top:0;left:50px;animation-delay:0s}.orb-2{top:50px;right:0;animation-delay:.5s}.orb-3{bottom:0;left:50px;animation-delay:1s}.orb-4{top:50px;left:0;animation-delay:1.5s}.loader-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 0 20px #667eea80}@keyframes orbit{0%{transform:rotate(0) translate(50px) rotate(0)}to{transform:rotate(360deg) translate(50px) rotate(-360deg)}}.loading-text{font-size:1.1rem;color:#6b7280;font-weight:500}.loading-dots{display:flex;gap:.5rem}.loading-dots span{width:8px;height:8px;border-radius:50%;background:#667eea;animation:bounce 1.4s infinite ease-in-out both}.loading-dots span:nth-child(1){animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@media (max-width: 768px){.straddle-inverted-page{padding:1rem}.page-header{flex-direction:column;align-items:flex-start}.summary-section,.positions-grid,.state-grid,.profit-targets-grid{grid-template-columns:1fr}}
