.strategy-marketplace-modern{max-width:1600px;margin:0 auto;padding:2rem;background:linear-gradient(180deg,rgba(59,130,246,.02) 0%,transparent 100%);min-height:100vh}.marketplace-hero{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:3rem;padding:2rem;background:linear-gradient(135deg,#3b82f614,#8b5cf614);border-radius:20px;border:1px solid rgba(59,130,246,.1)}.hero-content{flex:1}.hero-title{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:flex;align-items:center;gap:1rem}.hero-subtitle{font-size:1.125rem;color:var(--color-text-muted, #6b7280);margin:0;line-height:1.6}.hero-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.refresh-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:12px;transition:transform .3s ease,box-shadow .3s ease,background .3s ease}.search-section{margin-bottom:2rem}.search-wrapper{position:relative;max-width:600px;margin:0 auto}.search-input{width:100%;padding:1rem 1.5rem;font-size:1rem;border:2px solid var(--color-border, #e5e7eb);border-radius:16px;background:var(--color-bg-card, #ffffff);transition:border-color .3s ease,box-shadow .3s ease;box-shadow:0 2px 8px #0000000a}.search-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a,0 4px 12px #00000014}.search-clear{position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:none;border:none;font-size:1.5rem;color:var(--color-text-muted, #9ca3af);cursor:pointer;padding:.25rem;line-height:1;transition:color .2s ease}.search-clear:hover{color:var(--color-text-primary, #111827)}.filters-section{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem;padding:1rem;background:var(--color-bg-card, #ffffff);border-radius:12px;border:1px solid var(--color-border, #e5e7eb);box-shadow:0 2px 8px #0000000a}.filter-group{display:flex;align-items:flex-start;gap:1rem;flex-wrap:wrap}.filter-label{font-weight:600;color:var(--color-text-primary, #111827);font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em;min-width:100px;padding-top:.625rem;flex-shrink:0}.filter-pills{display:flex;gap:.75rem;flex-wrap:wrap;flex:1}.filter-pill{display:flex;align-items:center;justify-content:center;padding:.5rem 1rem;border:2px solid var(--color-border, #e5e7eb);border-radius:50px;background:var(--color-bg-primary, #ffffff);color:var(--color-text-primary, #111827);font-size:.8125rem;font-weight:500;cursor:pointer;transition:transform .3s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease,color .3s ease;white-space:nowrap;height:36px;min-width:fit-content}.filter-pill:hover{border-color:#3b82f6;background:#3b82f60d;transform:translateY(-2px);box-shadow:0 4px 12px #3b82f626}.filter-pill.active{background:linear-gradient(135deg,#3b82f6,#8b5cf6);border-color:#3b82f6;color:#fff;box-shadow:0 4px 12px #3b82f64d}.featured-toggle{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.625rem 1.25rem;border:2px solid var(--color-border, #e5e7eb);border-radius:50px;background:var(--color-bg-primary, #ffffff);transition:border-color .3s ease,background .3s ease}.featured-toggle:hover{border-color:#fbbf24;background:#fbbf240d}.featured-toggle input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#fbbf24}.featured-toggle input[type=checkbox]:checked+.toggle-label{color:#f59e0b}.toggle-label{display:flex;align-items:center;gap:.5rem;font-weight:500;font-size:.875rem;color:var(--color-text-primary, #111827)}.view-toggle-group{display:flex;gap:.5rem;margin-left:auto;padding:.25rem;background:var(--color-bg-secondary, #f9fafb);border-radius:12px;border:1px solid var(--color-border, #e5e7eb)}.view-toggle-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:transparent;border-radius:8px;cursor:pointer;color:var(--color-text-muted, #6b7280);transition:background .3s ease,color .3s ease}.view-toggle-btn:hover{background:#3b82f61a;color:#3b82f6}.view-toggle-btn.active{background:linear-gradient(135deg,#3b82f6,#8b5cf6);color:#fff;box-shadow:0 2px 8px #3b82f64d}.results-header{margin-bottom:1.5rem;padding:.75rem 0}.results-count{font-size:.875rem;color:var(--color-text-muted, #6b7280)}.results-count strong{color:var(--color-text-primary, #111827);font-weight:700;font-size:1.125rem}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;gap:1rem}.loading-text{color:var(--color-text-muted, #6b7280);font-size:.875rem}.empty-card{padding:4rem 2rem}.strategies-container{display:grid;gap:1.5rem}.strategies-grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}.strategies-list{grid-template-columns:1fr}.strategy-card-modern{position:relative;display:flex;flex-direction:column;padding:1.75rem;background:var(--color-bg-card, #ffffff);border:2px solid var(--color-border, #e5e7eb);border-radius:20px;transition:transform .4s cubic-bezier(.4,0,.2,1),border-color .4s cubic-bezier(.4,0,.2,1),box-shadow .4s cubic-bezier(.4,0,.2,1);overflow:hidden;box-shadow:0 2px 8px #0000000a}.strategy-card-modern:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#3b82f6,#8b5cf6);opacity:0;transition:opacity .3s ease}.strategy-card-modern:hover{transform:translateY(-8px);border-color:#3b82f6;box-shadow:0 12px 32px #3b82f633}.strategy-card-modern:hover:before{opacity:1}.strategy-card-modern.featured{border-color:#fbbf24;background:linear-gradient(135deg,#fbbf240d,#fbbf2405)}.strategy-card-modern.featured:before{background:linear-gradient(90deg,#fbbf24,#f59e0b);opacity:1}.featured-badge{position:absolute;top:1rem;right:1rem;display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;border-radius:50px;font-size:.75rem;font-weight:600;box-shadow:0 4px 12px #fbbf2466;z-index:1}.featured-star{font-size:.875rem}.strategy-card-header-modern{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.strategy-title-section-modern{flex:1;min-width:0}.strategy-title-modern{font-size:1.5rem;font-weight:700;margin:0 0 .75rem;color:var(--color-text-primary, #111827);line-height:1.3}.strategy-meta-modern{display:flex;gap:.5rem;flex-wrap:wrap}.risk-badge,.category-badge{font-size:.75rem;padding:.375rem .75rem;border-radius:50px;font-weight:600}.strategy-rating-modern{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex-shrink:0}.rating-stars{font-size:.875rem;line-height:1;opacity:.8}.rating-value{font-size:1.125rem;font-weight:700;color:var(--color-text-primary, #111827)}.rating-count{font-size:.75rem;color:var(--color-text-muted, #6b7280)}.strategy-description-modern{margin:0 0 1.5rem;color:var(--color-text-secondary, #4b5563);line-height:1.6;font-size:.9375rem}.strategy-metrics-modern{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1.5rem;padding:1.25rem;background:linear-gradient(135deg,#3b82f608,#8b5cf608);border-radius:16px;border:1px solid rgba(59,130,246,.1)}.metric-item{display:flex;align-items:center;justify-content:space-between;padding:.625rem .875rem;background:var(--color-bg-primary, #ffffff);border-radius:10px;transition:transform .3s ease,box-shadow .3s ease}.metric-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.metric-icon{font-size:1.5rem;flex-shrink:0}.metric-content{display:flex;flex-direction:column;gap:.25rem;flex:1;min-width:0;align-items:flex-start}.metric-label{font-size:.6875rem;color:var(--color-text-muted, #6b7280);font-weight:600;text-transform:uppercase;letter-spacing:.05em;line-height:1.2}.metric-value{font-size:1.125rem;font-weight:700;color:var(--color-text-primary, #111827);text-align:right}.metric-value.danger{color:#ef4444}.strategy-tags-modern{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.tag-modern{padding:.375rem .875rem;background:var(--color-bg-secondary, #f9fafb);border:1px solid var(--color-border, #e5e7eb);border-radius:50px;font-size:.75rem;font-weight:500;color:var(--color-text-secondary, #4b5563);transition:background .2s ease,border-color .2s ease,color .2s ease}.tag-modern:hover{background:#3b82f61a;border-color:#3b82f6;color:#3b82f6}.strategy-card-footer-modern{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:1.25rem;border-top:1px solid var(--color-border, #e5e7eb)}.subscriber-info{display:flex;align-items:center;gap:.5rem;color:var(--color-text-muted, #6b7280);font-size:.875rem}.strategy-actions-modern{display:flex;gap:.75rem}.view-btn,.subscribe-btn{padding:.625rem 1.25rem;border-radius:12px;font-weight:600;transition:transform .3s ease,box-shadow .3s ease}.subscribe-btn{background:linear-gradient(135deg,#3b82f6,#8b5cf6);border:none;color:#fff;box-shadow:0 4px 12px #3b82f64d}.subscribe-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.strategy-card-modern.list-view{flex-direction:row;align-items:center;padding:1.5rem}.strategy-card-modern.list-view .strategy-card-header-modern{margin-bottom:0;flex:1}.strategy-card-modern.list-view .strategy-description-modern{margin:0 1.5rem;flex:1}.strategy-card-modern.list-view .strategy-metrics-modern{margin:0 1.5rem;grid-template-columns:repeat(4,1fr);padding:.75rem 1rem}.strategy-card-modern.list-view .strategy-card-footer-modern{margin-top:0;padding-top:0;border-top:none;border-left:1px solid var(--color-border, #e5e7eb);padding-left:1.5rem;flex-direction:column;align-items:flex-end;gap:.75rem}.modal-overlay-modern{position:fixed;inset:0;background:#0009;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem;animation:fadeIn .3s ease;overscroll-behavior:contain}.modal-content-modern{background:var(--color-bg-card, #ffffff);border-radius:24px;max-width:900px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 64px #0006;animation:slideUp .3s ease;border:1px solid var(--color-border, #e5e7eb)}.modal-header-modern{display:flex;justify-content:space-between;align-items:flex-start;padding:2rem;border-bottom:1px solid var(--color-border, #e5e7eb);background:linear-gradient(135deg,#3b82f60d,#8b5cf60d);border-radius:24px 24px 0 0}.modal-title-section{flex:1}.modal-title{font-size:2rem;font-weight:700;margin:0 0 .5rem;background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.modal-subtitle{font-size:1rem;color:var(--color-text-muted, #6b7280);margin:0}.modal-close-modern{background:var(--color-bg-secondary, #f9fafb);border:1px solid var(--color-border, #e5e7eb);border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-text-secondary, #4b5563);transition:background .3s ease,border-color .3s ease,color .3s ease,transform .3s ease;flex-shrink:0}.modal-close-modern:hover{background:#ef4444;border-color:#ef4444;color:#fff;transform:rotate(90deg)}.modal-tabs-modern{display:flex;border-bottom:2px solid var(--color-border, #e5e7eb);padding:0 2rem;background:var(--color-bg-primary, #ffffff)}.modal-tab{padding:1rem 1.5rem;border:none;background:none;cursor:pointer;color:var(--color-text-muted, #6b7280);font-weight:500;font-size:.9375rem;border-bottom:3px solid transparent;transition:color .3s ease,background .3s ease,border-bottom-color .3s ease;position:relative;margin-bottom:-2px}.modal-tab:hover{color:var(--color-text-primary, #111827);background:#3b82f60d}.modal-tab.active{color:#3b82f6;border-bottom-color:#3b82f6;font-weight:600}.modal-body-modern{flex:1;overflow-y:auto;padding:2rem}.tab-content-modern{animation:fadeIn .3s ease}.content-section{margin-bottom:2rem}.section-title{font-size:1.25rem;font-weight:700;margin:0 0 1rem;color:var(--color-text-primary, #111827)}.section-text{color:var(--color-text-secondary, #4b5563);line-height:1.7;font-size:.9375rem}.symbol-chips-modern{display:flex;gap:.75rem;flex-wrap:wrap}.chip-modern{padding:.625rem 1.25rem;background:linear-gradient(135deg,#3b82f6,#8b5cf6);color:#fff;border-radius:50px;font-size:.875rem;font-weight:600;box-shadow:0 4px 12px #3b82f64d}.capital-amount{font-size:1.5rem;font-weight:700;color:var(--color-text-primary, #111827)}.backtest-grid-modern{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.backtest-card{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.25rem;background:linear-gradient(135deg,#3b82f60d,#8b5cf60d);border-radius:16px;border:1px solid rgba(59,130,246,.1);transition:transform .3s ease,box-shadow .3s ease}.backtest-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #3b82f633}.backtest-label{font-size:.75rem;color:var(--color-text-muted, #6b7280);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.backtest-value{font-size:1.75rem;font-weight:700;color:var(--color-text-primary, #111827)}.backtest-value.danger{color:#ef4444}.backtest-note{text-align:center;color:var(--color-text-muted, #6b7280);font-size:.875rem;font-style:italic;margin:0}.parameters-note{color:var(--color-text-muted, #6b7280);font-size:.9375rem;line-height:1.6;margin:0}.modal-footer-modern{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem 2rem;border-top:1px solid var(--color-border, #e5e7eb);background:var(--color-bg-secondary, #f9fafb);border-radius:0 0 24px 24px}.subscribe-modal-btn{background:linear-gradient(135deg,#3b82f6,#8b5cf6);border:none;color:#fff;padding:.75rem 2rem;border-radius:12px;font-weight:600;box-shadow:0 4px 12px #3b82f64d;transition:transform .3s ease,box-shadow .3s ease}.subscribe-modal-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}@media (max-width: 1024px){.strategies-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}}@media (max-width: 768px){.strategy-marketplace-modern{padding:1rem}.marketplace-hero{flex-direction:column;gap:1.5rem;padding:1.5rem}.hero-title{font-size:2rem}.filters-section{padding:1rem}.filter-group{flex-direction:column;align-items:flex-start}.filter-label{min-width:auto}.filter-pills{width:100%}.view-toggle-group{margin-left:0;width:100%;justify-content:center}.strategies-grid,.strategy-metrics-modern{grid-template-columns:1fr}.strategy-card-modern.list-view{flex-direction:column;align-items:stretch}.strategy-card-modern.list-view .strategy-card-footer-modern{border-left:none;border-top:1px solid var(--color-border, #e5e7eb);padding-left:0;padding-top:1rem;flex-direction:row;justify-content:space-between}.modal-content-modern{max-height:95vh;margin:1rem}.modal-header-modern{padding:1.5rem}.modal-title{font-size:1.5rem}.modal-tabs-modern{padding:0 1rem;overflow-x:auto}.modal-tab{padding:1rem;white-space:nowrap}.modal-body-modern{padding:1.5rem}.backtest-grid-modern{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.backtest-grid-modern{grid-template-columns:1fr}.strategy-actions-modern{flex-direction:column;width:100%}.view-btn,.subscribe-btn{width:100%}}@media (max-width: 768px){.chat-messages{padding:.5rem 0!important}.chat-message{margin-bottom:1rem!important;gap:.5rem!important}.card{overflow:hidden}textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports (-webkit-touch-callout: none){textarea,input[type=text],input[type=search]{font-size:16px!important}}}@media (max-width: 480px){.hero-title{font-size:1.5rem!important}.hero-subtitle{font-size:.9375rem!important}.chat-bubble{max-width:90%!important;padding:.625rem .75rem!important;font-size:.875rem!important}}@media (prefers-reduced-motion: reduce){.modal-overlay-modern,.modal-content-modern,.tab-content-modern{animation:none}.strategy-card-modern,.strategy-card-modern:before,.filter-pill,.metric-item,.tag-modern,.view-toggle-btn,.search-input,.search-clear,.refresh-btn,.featured-toggle,.view-btn,.subscribe-btn,.backtest-card,.modal-close-modern,.modal-tab,.subscribe-modal-btn,.chip-modern{transition:none}.strategy-card-modern:hover,.filter-pill:hover,.metric-item:hover,.backtest-card:hover,.subscribe-btn:hover,.subscribe-modal-btn:hover:not(:disabled){transform:none}}.chat-history-sidebar{transition:transform .3s ease,box-shadow .3s ease;top:var(--header-height, 64px);z-index:200;pointer-events:auto}.chat-history-sidebar.rtl{direction:rtl}[data-theme=light] .chat-history-sidebar{background:linear-gradient(180deg,#fff,#f8fafc);border-right:1px solid rgba(0,0,0,.08);box-shadow:2px 0 12px #0000000a}[data-theme=dark] .chat-history-sidebar{background:linear-gradient(180deg,#1a1a1a,#151515);border-right:1px solid rgba(255,255,255,.1);box-shadow:2px 0 12px #0000004d}[dir=rtl][data-theme=light] .chat-history-sidebar{border-left:1px solid rgba(0,0,0,.08);border-right:none;box-shadow:-2px 0 12px #0000000a}[dir=rtl][data-theme=dark] .chat-history-sidebar{border-left:1px solid rgba(255,255,255,.1);border-right:none;box-shadow:-2px 0 12px #0000004d}.chat-history-overlay{animation:fadeIn .2s ease;top:var(--header-height, 64px)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-history-sidebar .sidebar-header{background:var(--color-surface);border-bottom:1px solid var(--color-border-subtle)}[data-theme=light] .chat-history-sidebar .sidebar-header{background:linear-gradient(135deg,#fff,#f1f5f9);border-bottom:1px solid rgba(0,0,0,.08)}[data-theme=dark] .chat-history-sidebar .sidebar-header{background:linear-gradient(135deg,#1f1f1f,#1a1a1a);border-bottom:1px solid rgba(255,255,255,.1)}.chat-history-sidebar .new-chat-button{background:var(--color-primary);color:#fff;transition:all .2s ease}[data-theme=light] .chat-history-sidebar .new-chat-button{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 2px 8px #3b82f64d}[data-theme=light] .chat-history-sidebar .new-chat-button:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 4px 12px #3b82f666;transform:translateY(-1px)}[data-theme=dark] .chat-history-sidebar .new-chat-button{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 2px 8px #3b82f666}[data-theme=dark] .chat-history-sidebar .new-chat-button:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 4px 12px #3b82f680;transform:translateY(-1px)}.chat-history-sidebar .search-input{background:var(--color-surface-subtle);border:1px solid var(--color-border-subtle);transition:all .2s ease}[data-theme=light] .chat-history-sidebar .search-input{background:#f1f5f9;border-color:#0000001a}[data-theme=light] .chat-history-sidebar .search-input:focus{background:#fff;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}[data-theme=dark] .chat-history-sidebar .search-input{background:#252525;border-color:#ffffff1a;color:#e5e7eb}[data-theme=dark] .chat-history-sidebar .search-input:focus{background:#2a2a2a;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f633}.chat-history-sidebar .conversation-item{transition:all .2s ease;border-radius:8px;cursor:pointer;pointer-events:auto}[data-theme=light] .chat-history-sidebar .conversation-item:hover{background:linear-gradient(90deg,#f1f5f9,#e2e8f0)}[data-theme=dark] .chat-history-sidebar .conversation-item:hover{background:linear-gradient(90deg,#2a2a2a,#252525)}.chat-history-sidebar .conversation-item.active{background:var(--color-primary);color:#fff}[data-theme=light] .chat-history-sidebar .conversation-item.active{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 2px 8px #3b82f64d}[data-theme=dark] .chat-history-sidebar .conversation-item.active{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 2px 8px #3b82f666}.chat-history-sidebar::-webkit-scrollbar{width:6px}.chat-history-sidebar::-webkit-scrollbar-track{background:transparent}[data-theme=light] .chat-history-sidebar::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}[data-theme=dark] .chat-history-sidebar::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.chat-history-sidebar::-webkit-scrollbar-thumb:hover{background:var(--color-text-secondary)}[data-theme=light] .chat-history-sidebar::-webkit-scrollbar-thumb:hover{background:#0006}[data-theme=dark] .chat-history-sidebar::-webkit-scrollbar-thumb:hover{background:#fff6}[dir=rtl] .chat-history-sidebar{border-left:1px solid var(--color-border-subtle);border-right:none}[dir=rtl] .chat-history-sidebar .conversation-item{text-align:right}@media (max-width: 768px){.chat-history-sidebar{animation:slideIn .3s ease;top:0;z-index:999}.chat-history-overlay{top:0;z-index:998}[dir=rtl] .chat-history-sidebar{animation:slideInRTL .3s ease}}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRTL{0%{transform:translate(100%)}to{transform:translate(0)}}.modal-overlay{animation:fadeIn .2s ease;z-index:var(--z-modal-backdrop, 400)}.modal-content{animation:slideUp .3s ease;z-index:var(--z-modal, 500)}[data-theme=light] .modal-content{background:#fff;box-shadow:0 10px 40px #00000026}[data-theme=dark] .modal-content{background:#1f1f1f;box-shadow:0 10px 40px #00000080;border:1px solid rgba(255,255,255,.1)}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}[dir=rtl] .modal-content{text-align:right}[dir=rtl] .modal-content form{direction:rtl}
