.border-magic-btn{position:relative;display:inline-flex;height:36px;width:100%;overflow:hidden;border-radius:9999px;padding:1px;cursor:pointer;border:none;background:transparent;transition:all .3s}.border-magic-btn:focus{outline:none;box-shadow:0 0 0 2px #94a3b880}.border-magic-gradient{position:absolute;inset:-1000%;background:conic-gradient(from 90deg at 50% 50%,#e2cbff,#000,#e2cbff);animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.border-magic-content{display:inline-flex;height:100%;width:100%;align-items:center;justify-content:center;border-radius:9999px;background:#000;padding:0 14px;font-size:12px;font-weight:600;color:#fff;gap:6px;position:relative;z-index:1}.border-magic-icon{display:flex;align-items:center;flex-shrink:0}.border-magic-btn:hover .border-magic-content{background:#000}.border-magic-btn:active{transform:scale(.98)}.shimmer-btn{display:inline-flex;height:48px;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid #1e293b;background:linear-gradient(110deg,#000103,#1e2631 45% 55%,#000103);background-size:200% 100%;padding:0 24px;font-weight:600;font-size:14px;color:#94a3b8;cursor:pointer;transition:all .3s;animation:shimmer 2s linear infinite}.shimmer-btn:hover{color:#e2e8f0;border-color:#334155}.shimmer-btn:active{transform:scale(.98)}.shimmer-btn-icon{display:flex;align-items:center}@keyframes shimmer{0%{background-position:0 0}to{background-position:-200% 0}}.search-bar-container{position:relative;width:100%}.search-bar-wrapper{position:relative;display:flex;align-items:center;gap:10px;background:var(--bg-primary);border:2px solid var(--border);border-radius:12px;padding:10px 14px;transition:all .3s cubic-bezier(.4,0,.2,1)}.search-bar-container.focused .search-bar-wrapper{border-color:var(--text-primary);background:var(--bg-secondary);transform:translateY(-1px);box-shadow:0 4px 20px #0000001a}.search-icon{flex-shrink:0;color:var(--text-secondary);transition:all .3s}.search-bar-container.focused .search-icon{color:var(--text-primary);transform:scale(1.1)}.search-input{flex:1;background:none;border:none;outline:none;color:var(--text-primary);font-size:14px;font-family:inherit}.search-input::placeholder{color:var(--text-secondary);transition:color .3s}.search-bar-container.focused .search-input::placeholder{color:transparent}.search-clear{flex-shrink:0;background:var(--bg-hover);border:none;border-radius:6px;padding:4px;cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;transition:all .2s;animation:fadeIn .2s}.search-clear:hover{background:var(--bg-secondary);color:var(--text-primary);transform:rotate(90deg)}@keyframes fadeIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.search-bar-glow{position:absolute;inset:-2px;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1) 50%,transparent 100%);border-radius:12px;opacity:0;animation:shimmer 2s infinite;pointer-events:none;z-index:-1}@keyframes shimmer{0%{transform:translate(-100%);opacity:0}50%{opacity:.5}to{transform:translate(100%);opacity:0}}.filter-pills{display:flex;gap:8px;padding:0 20px 16px}.filter-pill{flex:1;padding:9px 14px;background:transparent;border:2px solid var(--border);border-radius:10px;color:var(--text-secondary);font-size:13px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:6px;position:relative;overflow:hidden}.filter-pill:before{content:"";position:absolute;inset:0;background:var(--bg-hover);transform:scaleX(0);transform-origin:left;transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:-1}.filter-pill:hover:before{transform:scaleX(1)}.filter-pill.active{background:var(--bg-primary);border-color:var(--text-primary);color:var(--text-primary)}.filter-pill.active:before{transform:scaleX(1)}.filter-pill svg{transition:transform .3s}.filter-pill:hover svg{transform:scale(1.1)}.filter-pill.active svg{fill:var(--text-primary)}.chat-filters{display:flex;gap:12px;padding:0 20px 16px}.filter-tab{position:relative;flex:1;height:36px;overflow:hidden;border-radius:10px;padding:1px;cursor:pointer;border:none;background:#ffffff0f;transition:all .3s;display:flex;align-items:center;justify-content:center}.filter-tab:before{content:"";position:absolute;inset:-200%;background:conic-gradient(from 90deg at 50% 50%,transparent 0%,rgba(139,92,246,.15) 25%,transparent 50%);animation:spin 4s linear infinite;opacity:0;transition:opacity .3s}.filter-tab:hover:before{opacity:1}.filter-tab.active:before{background:conic-gradient(from 90deg at 50% 50%,transparent 0%,rgba(167,139,250,.5) 25%,rgba(139,92,246,.8) 50%,transparent 75%);opacity:1;animation:spin 3s linear infinite}.filter-tab-content{display:flex;align-items:center;justify-content:center;gap:6px;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:9px;background:#080808;font-size:12px;font-weight:600;color:var(--text-secondary);position:relative;z-index:1;transition:all .3s}.filter-tab:hover .filter-tab-content{background:#0a0a0a;color:var(--text-primary)}.filter-tab.active .filter-tab-content{background:#080808;color:#fff}.filter-tab svg{transition:transform .3s;flex-shrink:0}.filter-tab:hover svg{transform:scale(1.1)}.filter-tab.active svg{fill:#fff}body.light-theme{--bg-primary: #ffffff;--bg-secondary: #f9fafb;--bg-tertiary: #f3f4f6;--bg-hover: #e5e7eb;--border: #d1d5db;--text-primary: #111827;--text-secondary: #4b5563;--text-tertiary: #6b7280;--accent: #111827;--accent-hover: #374151;--accent-dim: rgba(0, 0, 0, .05)}body.light-theme{background:var(--bg-primary);color:var(--text-primary)}body.light-theme .sidebar{background:var(--bg-secondary);border-right:1px solid var(--border);box-shadow:2px 0 12px #0000000d}body.light-theme .sidebar-header{border-bottom:1px solid var(--border);background:var(--bg-primary)}body.light-theme .logo{color:var(--text-primary)}body.light-theme .new-chat-btn{background:var(--bg-primary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .new-chat-btn:hover{background:var(--bg-hover);border-color:var(--text-tertiary)}body.light-theme .chat-history .chat-history-item .chat-history-item-text{color:var(--text-primary)!important}body.light-theme .chat-history .chat-history-item .chat-favorite-btn,body.light-theme .chat-history .chat-history-item .delete-chat-btn,body.light-theme .chat-history .chat-history-item .share-chat-btn{color:var(--text-secondary)!important}body.light-theme .chat-history .chat-history-item .chat-favorite-btn:hover,body.light-theme .chat-history .chat-history-item .delete-chat-btn:hover,body.light-theme .chat-history .chat-history-item .share-chat-btn:hover{background:var(--bg-hover)!important;color:var(--text-primary)!important}body.light-theme .chat-history .chat-history-item:hover{background:var(--bg-hover)!important}body.light-theme .chat-history .chat-history-item.active{background:var(--bg-tertiary)!important}body.light-theme .chat-history-item{color:var(--text-primary)}body.light-theme .chat-history-item:hover{background:var(--bg-hover)}body.light-theme .chat-history-item.active{background:var(--bg-tertiary);border-color:var(--border)}body.light-theme .search-box{background:var(--bg-primary);border:1px solid var(--border)}body.light-theme .search-box input{color:var(--text-primary)}body.light-theme .search-box input::placeholder{color:var(--text-tertiary)}body.light-theme .chat-container,body.light-theme .messages{background:var(--bg-primary)}body.light-theme .message.user .message-content{background:#e5e7eb;color:var(--text-primary)}body.light-theme .message.assistant .message-content{background:transparent;color:var(--text-primary)}body.light-theme .input-container{background:var(--bg-primary);border-top:1px solid var(--border)}body.light-theme .chat-input-wrapper{background:var(--bg-tertiary);border:1px solid var(--border)}body.light-theme .chat-input-wrapper:focus-within{border-color:#9ca3af}body.light-theme #messageInput{color:var(--text-primary);background:transparent}body.light-theme #messageInput::placeholder{color:var(--text-tertiary)}body.light-theme .send-btn-new{background:var(--text-primary);color:var(--bg-primary)}body.light-theme .send-btn-new:hover{background:var(--accent-hover)}body.light-theme .voice-btn{color:var(--text-secondary)}body.light-theme .voice-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .mode-btn,body.light-theme .toggle-btn{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-secondary)}body.light-theme .mode-btn:hover,body.light-theme .toggle-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .toggle-btn.active{background:#dbeafe;border-color:#3b82f6;color:#2563eb}body.light-theme .mode-dropdown,body.light-theme .paper-type-dropdown,body.light-theme .presentation-type-dropdown{background:var(--bg-primary);border:1px solid var(--border);box-shadow:0 4px 20px #00000026}body.light-theme .mode-item:hover{background:var(--bg-hover)}body.light-theme .welcome-screen,body.light-theme .welcome-greeting{color:var(--text-primary)}body.light-theme .welcome-subtitle{color:var(--text-secondary)}body.light-theme .example-prompt{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .example-prompt:hover{background:var(--bg-hover);border-color:var(--text-tertiary)}body.light-theme .temp-chat-btn{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-secondary)}body.light-theme .temp-chat-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .modal-overlay{background:#0006}body.light-theme .modal-box{background:var(--bg-primary);border:1px solid var(--border)}body.light-theme .modal-title{color:var(--text-primary)}body.light-theme .modal-message{color:var(--text-secondary)}body.light-theme pre code{background:#f3f4f6;border:1px solid var(--border)}body.light-theme .code-header{background:#e5e7eb;border-bottom:1px solid var(--border)}body.light-theme ::-webkit-scrollbar{width:8px}body.light-theme ::-webkit-scrollbar-track{background:var(--bg-secondary)}body.light-theme ::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}body.light-theme ::-webkit-scrollbar-thumb:hover{background:#9ca3af}body.light-theme .user-profile{border-top:1px solid var(--border);background:var(--bg-secondary)}body.light-theme .user-avatar{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .filter-tab{color:var(--text-secondary)}body.light-theme .filter-tab:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .filter-tab.active{background:var(--bg-tertiary);color:var(--text-primary);border-bottom:2px solid var(--text-primary)}body.light-theme .sidebar-tool-btn{color:var(--text-secondary);background:transparent}body.light-theme .sidebar-tool-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .sidebar-tool-btn span{color:inherit}body.light-theme .user-profile{background:var(--bg-secondary);border-top:1px solid var(--border)}body.light-theme .user-profile:hover{background:var(--bg-hover)}body.light-theme .user-avatar{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border)}body.light-theme .user-name{color:var(--text-primary)!important}body.light-theme .user-email,body.light-theme .user-tier,body.light-theme .user-details .user-email{color:var(--text-secondary)!important}body.light-theme .profile-arrow svg{stroke:var(--text-secondary)}body.light-theme .memory-indicator{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .memory-indicator span{color:var(--text-secondary)}body.light-theme .memory-badge{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .attached-file{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .attached-file-name{color:var(--text-primary)}body.light-theme .attached-file-size{color:var(--text-secondary)}body.light-theme [data-tooltip]:after{background:var(--text-primary);color:var(--bg-primary)}.theme-toggle-btn{position:absolute;top:16px;right:170px;display:flex;align-items:center;justify-content:center;padding:10px;background:transparent;border:1px solid var(--border);border-radius:50%;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;z-index:100}.theme-toggle-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--text-tertiary)}.theme-toggle-btn .sun-icon{display:none}.theme-toggle-btn .moon-icon,body.light-theme .theme-toggle-btn .sun-icon{display:block}body.light-theme .theme-toggle-btn .moon-icon{display:none}@media (max-width: 768px){.theme-toggle-btn{right:60px;padding:10px}}body.light-theme .business-header{background:var(--bg-secondary);border-bottom:1px solid var(--border)}body.light-theme .business-input-container{background:var(--bg-primary)}body.light-theme .business-textarea{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .business-textarea::placeholder{color:var(--text-tertiary)}body.light-theme .analysis-card{background:var(--bg-secondary);border:1px solid var(--border)}body.light-theme .score-card{background:var(--bg-tertiary)}body.light-theme .competitor-card{background:var(--bg-tertiary);border:1px solid var(--border)}body.light-theme .landing-page{background:var(--bg-primary)}body.light-theme .hero h1{background:linear-gradient(135deg,#111827,#4b5563);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}body.light-theme .hero p{color:var(--text-secondary)}body.light-theme .example-chip{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .example-chip:hover{background:var(--bg-hover);border-color:var(--text-tertiary)}body.light-theme .sidebar-toggle-fixed{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-secondary)}body.light-theme .sidebar-toggle-fixed:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .analysis-history-item{color:var(--text-primary)}body.light-theme .analysis-history-item:hover{background:var(--bg-hover)}body.light-theme .analysis-history-item.active{background:var(--bg-tertiary)}body.light-theme .analysis-section{background:var(--bg-secondary);border:1px solid var(--border)}body.light-theme .section-header{color:var(--text-primary)}body.light-theme .section-content,body.light-theme .empty-history{color:var(--text-secondary)}body.light-theme .empty-history-icon{color:var(--text-tertiary)}body.light-theme .empty-history-title{color:var(--text-primary)}body.light-theme .empty-history-text{color:var(--text-secondary)}body.light-theme pre{background:#f8f9fa!important;border:1px solid var(--border)}body.light-theme pre code{background:transparent!important;color:#1f2937!important}body.light-theme .code-header{background:#e9ecef!important;border-bottom:1px solid var(--border);color:var(--text-secondary)}body.light-theme .code-header span{color:var(--text-secondary)}body.light-theme .copy-btn{color:var(--text-secondary);background:transparent}body.light-theme .copy-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme code:not(pre code){background:#e9ecef!important;color:#c7254e!important;border:none}body.light-theme .message-content h1,body.light-theme .message-content h2,body.light-theme .message-content h3,body.light-theme .message-content h4,body.light-theme .message-content p,body.light-theme .message-content li{color:var(--text-primary)}body.light-theme .message-content a{color:#2563eb}body.light-theme .message-content blockquote{border-left:3px solid var(--border);background:var(--bg-tertiary);color:var(--text-secondary)}body.light-theme .message-content table{border:1px solid var(--border)}body.light-theme .message-content th{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary)}body.light-theme .message-content td{border:1px solid var(--border);color:var(--text-primary)}body.light-theme .mode-item,body.light-theme .mode-item-title{color:var(--text-primary)}body.light-theme .mode-item-desc,body.light-theme .attach-btn,body.light-theme .connect-apps-btn,body.light-theme #attachBtn,body.light-theme #connectAppsBtn{color:var(--text-secondary)}body.light-theme .attach-btn:hover,body.light-theme .connect-apps-btn:hover,body.light-theme #attachBtn:hover,body.light-theme #connectAppsBtn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .typing-indicator{color:var(--text-secondary)}body.light-theme .typing-indicator span{background:var(--text-tertiary)}body.light-theme .process-steps{border-left-color:var(--border)}body.light-theme .process-step:before{background:var(--bg-primary);border-color:var(--border)}body.light-theme .process-step.active:before{border-color:var(--accent);background:var(--accent)}body.light-theme .process-step.complete:before{border-color:#22c55e;background:#22c55e}body.light-theme .sources-section{background:var(--bg-tertiary);border:1px solid var(--border)}body.light-theme .source-item{background:var(--bg-primary);border:1px solid var(--border)}body.light-theme .source-title{color:var(--text-primary)}body.light-theme .source-url{color:var(--text-secondary)}body.light-theme .sidebar-overlay{background:#0000004d}body.light-theme .sidebar-close{color:var(--text-secondary)}body.light-theme .sidebar-close:hover{color:var(--text-primary);background:var(--bg-hover)}body.light-theme .rv-content.rv-editing{border:2px dashed #3b82f6;background:#3b82f60d}body.light-theme .rv-content.rv-editing:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f633}body.light-theme .rv-edit-indicator{background:linear-gradient(135deg,#3b82f61a,#60a5fa1a);color:#2563eb}body.light-theme .rv-edit-btn,body.light-theme .rv-undo-btn,body.light-theme .rv-btn{color:var(--text-secondary)}body.light-theme .rv-edit-btn:hover,body.light-theme .rv-btn:hover{background:var(--bg-hover);color:var(--text-primary)}body.light-theme .rv-header{background:var(--bg-secondary);border-bottom:1px solid var(--border)}body.light-theme .rv-title{color:var(--text-primary)}body.light-theme .rv-meta{background:var(--bg-tertiary);color:var(--text-secondary)}body.light-theme .rv-content{background:var(--bg-primary);color:var(--text-primary)}body.light-theme .rv-content h2,body.light-theme .rv-content h3{color:var(--text-primary)}body.light-theme .rv-sources{background:var(--bg-tertiary);border-top:1px solid var(--border)}body.light-theme .rv-sources-header{color:var(--text-secondary)}body.light-theme .rv-source{background:var(--bg-primary);border:1px solid var(--border)}body.light-theme .rv-source a{color:#2563eb}body.light-theme .rv-context-menu{background:#fff;border:1px solid #d1d5db;box-shadow:0 4px 20px #00000026}body.light-theme .rv-context-menu button{color:var(--text-primary)}body.light-theme .rv-context-menu button:hover{background:#f3f4f6}body.light-theme .rv-context-menu button svg{color:var(--text-secondary)}body.light-theme .rv-history-item{background:#f9fafb;border:1px solid #e5e7eb}body.light-theme .rv-history-item:hover{background:#f3f4f6;border-color:#3b82f6}body.light-theme .rv-help-text{background:#3b82f60d;border-bottom:1px solid #e5e7eb}body.light-theme .rv-help-text strong{color:#1e293b}.upm-overlay{position:fixed;inset:0;background:#000000b3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:10001;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{opacity:0;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.upm-container{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;display:flex;width:calc(100% - 32px);max-width:820px;height:560px;max-height:88vh;background:#0c0c0cf2;border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;box-shadow:0 40px 80px #00000080,inset 0 1px #ffffff0d;z-index:10002;outline:none;animation:scaleIn .2s ease-out}.upm-container *{pointer-events:auto}.upm-container button,.upm-container a,.upm-container input,.upm-container select,.upm-container textarea{pointer-events:auto!important;cursor:pointer}.upm-container .sidebar{width:220px;height:auto;position:relative;transform:none;background:#080808cc;border-right:1px solid rgba(255,255,255,.06);border-left:none;display:flex;flex-direction:column;flex-shrink:0;pointer-events:auto}.upm-container .sidebar-brand{display:flex;align-items:center;gap:10px;padding:22px 20px 18px;color:#fff;font-size:18px;font-weight:600;letter-spacing:-.02em}.upm-container .sidebar-brand svg{opacity:.9}.upm-container .sidebar-nav{flex:1;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.upm-container .nav-btn{display:flex;align-items:center;gap:12px;padding:12px 14px;background:transparent;border:none;border-radius:10px;color:#ffffff80;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;text-align:left;pointer-events:auto}.upm-container .nav-btn:hover{background:#ffffff0a;color:#fffc}.upm-container .nav-btn.active{background:#ffffff14;color:#fff}.upm-container .nav-btn svg{flex-shrink:0;opacity:.6}.upm-container .nav-btn:hover svg,.upm-container .nav-btn.active svg{opacity:1}.nav-badge{margin-left:auto;font-size:11px;font-weight:600;padding:3px 8px;border-radius:10px;background:#22c55e33;color:#4ade80}.upm-container .sidebar-footer{padding:12px;border-top:1px solid rgba(255,255,255,.06)}.upm-container .btn-logout{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;background:transparent;border:none;border-radius:10px;color:#fff6;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;pointer-events:auto}.upm-container .btn-logout:hover{background:#ef44441a;color:#f87171}.upm-container .main-content{flex:1;display:flex;flex-direction:column;min-width:0;background:#0e0e0e99;pointer-events:auto}.upm-container .main-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.06)}.upm-container .main-header h2{font-size:18px;font-weight:600;color:#fff;margin:0;letter-spacing:-.02em}.btn-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#ffffff0a;border:1px solid rgba(255,255,255,.06);border-radius:8px;color:#ffffff80;cursor:pointer;transition:all .2s ease;position:relative;z-index:100;pointer-events:auto}.btn-close:hover{background:#ffffff14;color:#fff}.btn-close:active{transform:scale(.95)}.upm-container .main-scroll{flex:1;padding:24px;overflow-y:auto;pointer-events:auto}.main-scroll::-webkit-scrollbar{width:6px}.main-scroll::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:3px}.tab-content{display:flex;flex-direction:column;gap:16px}.tab-hint{font-size:14px;color:#ffffff80;margin:0 0 8px;line-height:1.5}.glass-card{background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:18px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.genius-credits-card{background:linear-gradient(135deg,#f59e0b14,#ea580c0d);border:1px solid rgba(245,158,11,.2)}.genius-credits-header{display:flex;align-items:center;gap:8px;margin-bottom:12px}.genius-credits-icon{font-size:16px}.genius-credits-title{font-size:14px;font-weight:600;color:#f59e0b}.genius-credits-badge{font-size:10px;font-weight:600;color:#f59e0bcc;background:#f59e0b26;padding:2px 6px;border-radius:4px;margin-left:auto}.genius-credits-bar{height:6px;background:#ffffff1a;border-radius:3px;overflow:hidden;margin-bottom:8px}.genius-credits-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#ea580c);border-radius:3px;transition:width .3s ease}.genius-credits-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.genius-credits-remaining{font-size:14px;font-weight:600;color:#fff}.genius-credits-reset{font-size:12px;color:#ffffff80}.genius-credits-desc{font-size:12px;color:#fff6}.card-label{font-size:12px;font-weight:600;color:#fff6;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px}.profile-row{display:flex;align-items:center;gap:16px}.avatar-lg{width:52px;height:52px;border-radius:12px;background:#ffffff0d;border:2px solid var(--accent, rgba(255, 255, 255, .1));display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600;color:var(--accent, #888);overflow:hidden;flex-shrink:0}.avatar-lg img{width:100%;height:100%;object-fit:cover}.profile-info{display:flex;flex-direction:column;gap:4px}.profile-name{font-size:16px;font-weight:600;color:#fff}.profile-email{font-size:14px;color:#ffffff80}.plan-row{display:flex;align-items:center;justify-content:space-between}.plan-info{display:flex;flex-direction:column;gap:4px}.plan-name{font-size:16px;font-weight:600}.plan-desc{font-size:14px;color:#ffffff80}.btn-upgrade{padding:10px 20px;background:#fff;border:none;border-radius:8px;color:#000;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-upgrade:hover{background:#e5e5e5;transform:translateY(-1px)}.usage-overview{padding:20px}.usage-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.plan-badge{font-size:18px;font-weight:700}.btn-upgrade-sm{padding:8px 16px;background:#fff;border:none;border-radius:6px;color:#000;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-upgrade-sm:hover{background:#e5e5e5}.usage-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);margin:16px 0}.usage-stat{display:flex;align-items:center;gap:14px;padding:14px 0}.usage-stat:not(:last-child){border-bottom:1px solid rgba(255,255,255,.04)}.stat-icon{width:40px;height:40px;border-radius:10px;background:#ffffff0a;display:flex;align-items:center;justify-content:center;color:#fff9}.stat-info{flex:1;display:flex;flex-direction:column;gap:2px}.stat-label{font-size:14px;font-weight:500;color:#ffffffe6}.stat-sublabel{font-size:13px;color:#fff6}.stat-value{font-size:18px;font-weight:600;color:#fff}.history-header{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:12px}.history-icon{width:36px;height:36px;border-radius:8px;background:#ffffff0a;display:flex;align-items:center;justify-content:center;color:#fff9}.history-title{flex:1;font-size:14px;font-weight:500;color:#ffffffe6}.history-arrow{color:#ffffff4d}.history-table{display:flex;flex-direction:column}.history-row{display:grid;grid-template-columns:1fr 140px 80px;gap:12px;padding:12px 0;font-size:13px;color:#ffffffb3;border-bottom:1px solid rgba(255,255,255,.04)}.history-row.header{font-size:12px;font-weight:500;color:#fff6;text-transform:uppercase;letter-spacing:.05em;padding-bottom:10px}.history-row.clickable{cursor:pointer;transition:background .15s ease;margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:8px}.history-row.clickable:hover{background:#ffffff0d}.history-task{font-weight:500;color:#ffffffe6}.history-date{color:#ffffff80}.history-credits{text-align:right;font-weight:500;color:#fff9}.connectors-grid{display:flex;flex-direction:column;gap:10px}.connector-card{display:flex;align-items:center;gap:14px;padding:14px 16px;transition:all .2s ease}.connector-card:hover{background:#ffffff0d}.connector-card.connected{background:#22c55e0f;border-color:#22c55e26}.connector-icon{width:42px;height:42px;border-radius:10px;background:#ffffff0d;display:flex;align-items:center;justify-content:center;flex-shrink:0}.connector-info{flex:1;display:flex;flex-direction:column;gap:3px}.connector-name{font-size:14px;font-weight:600;color:#fff}.connector-desc{font-size:13px;color:#ffffff73}.btn-connect{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;background:transparent;border:1px solid var(--accent, rgba(255, 255, 255, .2));color:var(--accent, rgba(255, 255, 255, .8))}.btn-connect:hover:not(:disabled){background:#ffffff0d}.btn-connect:disabled{opacity:.5;cursor:not-allowed}.btn-connected{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:6px;background:#22c55e1f;border:1px solid rgba(34,197,94,.25);color:#4ade80}.btn-connected:hover{background:#ef44441f;border-color:#ef444440;color:#f87171}.btn-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px;background:transparent;border:1px dashed rgba(255,255,255,.12);border-radius:12px;color:#ffffff80;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-add:hover{background:#ffffff08;border-color:#fff3;color:#fffc}.secret-form{display:flex;flex-direction:column;gap:12px}.secret-form input{padding:12px 14px;background:#0000004d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:14px;box-sizing:border-box}.secret-form input::placeholder{color:#ffffff4d}.secret-form input:focus{outline:none;border-color:#fff3}.form-actions{display:flex;gap:10px}.btn-cancel,.btn-save{flex:1;padding:11px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-cancel{background:transparent;border:1px solid rgba(255,255,255,.1);color:#fff9}.btn-cancel:hover{background:#ffffff0a;color:#fff}.btn-save{background:#fff;border:none;color:#000}.btn-save:hover:not(:disabled){background:#e5e5e5}.btn-save:disabled{opacity:.3;cursor:not-allowed}.secrets-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}.secret-item{display:flex;align-items:center;gap:12px;padding:12px 14px}.secret-icon{width:36px;height:36px;border-radius:8px;background:#8b5cf61f;display:flex;align-items:center;justify-content:center;color:#a78bfa}.secret-info{flex:1;display:flex;flex-direction:column;gap:2px}.secret-name{font-size:14px;font-weight:600;color:#fff}.secret-mask{font-size:12px;color:#ffffff4d;font-family:monospace}.btn-delete{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;color:#ffffff4d;cursor:pointer;transition:all .2s ease}.btn-delete:hover{background:#ef44441f;color:#ef4444}.empty-state{text-align:center;padding:32px;color:#ffffff59;font-size:14px}.history-empty{text-align:center;padding:24px;color:#ffffff59;font-size:13px;font-style:italic}.tooltip{background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 12px;font-size:12px;color:#ffffffe6;box-shadow:0 8px 24px #0006;z-index:10002}.tooltip-arrow{fill:#141414f2}.mobile-tab-bar{display:none}.btn-back{display:none!important}.mobile-menu-item,.mobile-layout,.mobile-main-view,.mobile-sub-view{display:none}@media screen and (max-width: 768px){.upm-overlay{background:#0a0a0a!important;z-index:10001!important}.upm-container.mobile{position:fixed!important;transform:none!important;flex-direction:column!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;min-height:100vh!important;border-radius:0!important;margin:0!important;background:#0a0a0a!important;border:none!important;inset:0!important;z-index:10002!important}.mobile-layout{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;background:#0a0a0a!important}.mobile-header{display:flex!important;justify-content:flex-end!important;padding:12px 16px!important;background:transparent!important}.btn-close-mobile{width:32px!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:none!important;color:#ffffff80!important;cursor:pointer!important}.mobile-scroll{flex:1!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:0 16px 32px!important}.mobile-main-view{display:block!important}.mobile-profile{display:flex!important;align-items:center!important;gap:14px!important;padding:8px 0 24px!important}.mobile-profile .avatar-lg{width:48px!important;height:48px!important;border-radius:12px!important;font-size:18px!important}.mobile-profile .profile-name{display:flex!important;align-items:center!important;gap:4px!important;font-size:20px!important;font-weight:600!important;color:#fff!important}.mobile-profile .profile-name svg{color:#fff6!important}.mobile-profile .profile-email{font-size:14px!important;color:#ffffff80!important}.mobile-plan-card{background:#ffffff0a!important;border-radius:16px!important;padding:16px!important;margin-bottom:24px!important}.mobile-plan-row{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:12px!important}.mobile-plan-row .plan-name{font-size:16px!important;font-weight:600!important}.mobile-plan-row .btn-upgrade{padding:8px 20px!important;font-size:14px!important;border-radius:20px!important;background:#fff!important;color:#000!important;font-weight:600!important;border:none!important;cursor:pointer!important}.mobile-credits-row{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-top:12px!important;border-top:1px dashed rgba(255,255,255,.1)!important}.mobile-credits-row .credits-label{font-size:14px!important;color:#fff9!important}.mobile-credits-row .credits-value{display:flex!important;align-items:center!important;gap:6px!important;font-size:14px!important;color:#fffc!important}.mobile-credits-row .credits-value svg:first-child{color:#f59e0b!important}.mobile-credits-row .credits-value svg:last-child{color:#ffffff4d!important}.mobile-section-label{font-size:12px!important;font-weight:500!important;color:#ffffff59!important;text-transform:uppercase!important;letter-spacing:.05em!important;margin:24px 0 8px!important}.mobile-menu-list{display:flex!important;flex-direction:column!important}.mobile-menu-item{display:flex!important;align-items:center!important;gap:14px!important;padding:16px 0!important;background:transparent!important;border:none!important;border-bottom:1px solid rgba(255,255,255,.06)!important;color:#fff!important;font-size:16px!important;font-weight:400!important;cursor:pointer!important;width:100%!important;text-align:left!important}.mobile-menu-item:last-child{border-bottom:none!important}.mobile-menu-item svg:first-child{color:#ffffff80!important;flex-shrink:0!important}.mobile-menu-item span{flex:1!important}.mobile-menu-item .menu-badge{font-size:12px!important;font-weight:600!important;padding:2px 8px!important;border-radius:10px!important;background:#22c55e33!important;color:#4ade80!important;flex-shrink:0!important;min-width:fit-content!important}.mobile-menu-item .menu-arrow{color:#ffffff4d!important}.mobile-menu-item.logout{color:#fff9!important}.mobile-menu-item.logout svg:first-child{color:#fff6!important}.mobile-sub-view{display:flex!important;flex-direction:column!important;height:100%!important}.mobile-sub-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 0 16px!important;background:#0a0a0a!important}.mobile-sub-header .btn-back{display:flex!important;width:40px!important;height:40px!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:none!important;color:#fff!important;cursor:pointer!important;margin-left:-8px!important}.mobile-sub-header h2{font-size:17px!important;font-weight:600!important;color:#fff!important;margin:0!important}.mobile-sub-content{flex:1!important}.mobile-sub-content .tab-content{padding:0!important;gap:16px!important}.mobile-sub-content .tab-hint{padding:0 0 12px!important;margin:0!important;font-size:14px!important;color:#fff6!important}.mobile-sub-content .glass-card{background:transparent!important;border:none!important;border-radius:0!important;padding:0!important;margin:0 0 16px!important}.mobile-sub-content .card-label{display:none!important}.mobile-sub-content .usage-overview{background:#ffffff08!important;border-radius:12px!important;padding:14px!important;margin-bottom:16px!important}.mobile-sub-content .usage-top{margin-bottom:12px!important}.mobile-sub-content .plan-badge{font-size:16px!important;font-weight:600!important}.mobile-sub-content .btn-upgrade-sm{padding:6px 14px!important;font-size:12px!important;border-radius:14px!important}.mobile-sub-content .usage-divider{margin:12px 0!important}.mobile-sub-content .usage-stat{padding:10px 0!important;gap:10px!important}.mobile-sub-content .stat-icon{width:32px!important;height:32px!important;border-radius:8px!important}.mobile-sub-content .stat-icon svg{width:16px!important;height:16px!important}.mobile-sub-content .stat-label{font-size:14px!important}.mobile-sub-content .stat-sublabel{font-size:12px!important}.mobile-sub-content .stat-value{font-size:16px!important}.mobile-sub-content .connectors-grid{gap:0!important}.mobile-sub-content .connector-card{padding:12px 0!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important;border-radius:0!important}.mobile-sub-content .connector-card:last-child{border-bottom:none!important}.mobile-sub-content .connector-icon{width:36px!important;height:36px!important;border-radius:8px!important}.mobile-sub-content .connector-name{font-size:15px!important}.mobile-sub-content .connector-desc{font-size:12px!important}.mobile-sub-content .btn-connect,.mobile-sub-content .btn-connected{padding:6px 14px!important;font-size:12px!important;border-radius:14px!important}.mobile-sub-content .btn-add{margin:0 0 16px!important;padding:12px!important;border-radius:10px!important;font-size:14px!important}.mobile-sub-content .secrets-list{margin:0!important;gap:0!important}.mobile-sub-content .secret-item{padding:12px 0!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important}.mobile-sub-content .secret-icon{width:32px!important;height:32px!important}.mobile-sub-content .secret-name{font-size:14px!important}.mobile-sub-content .secret-mask{font-size:11px!important}.mobile-sub-content .secret-form{padding:0!important;margin:0 0 16px!important;gap:10px!important}.mobile-sub-content .secret-form input{padding:10px 12px!important;font-size:14px!important}.mobile-sub-content .form-actions{gap:8px!important}.mobile-sub-content .btn-cancel,.mobile-sub-content .btn-save{padding:10px!important;font-size:14px!important}.mobile-sub-content .history-header{display:none!important}.mobile-sub-content .history-table{padding:0!important}.mobile-sub-content .history-row{display:flex!important;flex-direction:column!important;gap:2px!important;padding:12px 0!important;border-bottom:1px solid rgba(255,255,255,.06)!important;position:relative!important}.mobile-sub-content .history-row.header{display:none!important}.mobile-sub-content .history-row.clickable{margin:0!important;padding:12px 0!important;border-radius:0!important}.mobile-sub-content .history-task{font-size:14px!important;font-weight:500!important;color:#fff!important;padding-right:50px!important;line-height:1.3!important}.mobile-sub-content .history-date{font-size:12px!important;color:#fff6!important}.mobile-sub-content .history-credits{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;font-size:14px!important;font-weight:500!important;color:#ffffff80!important}.mobile-sub-content .empty-state,.mobile-sub-content .history-empty{padding:32px 0!important;font-size:13px!important}}.profile-name{display:flex;align-items:center;gap:8px}.btn-edit-name{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;color:#ffffff4d;cursor:pointer;transition:all .2s ease;padding:0}.btn-edit-name:hover{background:#ffffff14;color:#ffffffb3}.edit-name-form{display:flex;flex-direction:column;gap:10px;width:100%}.edit-name-input{padding:10px 12px;background:#0000004d;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:14px;width:100%;box-sizing:border-box}.edit-name-input:focus{outline:none;border-color:#ffffff4d}.edit-name-actions{display:flex;gap:8px}.btn-cancel-sm,.btn-save-sm{padding:8px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-cancel-sm{background:transparent;border:1px solid rgba(255,255,255,.1);color:#fff9}.btn-cancel-sm:hover{background:#ffffff0a;color:#fff}.btn-save-sm{background:#fff;border:none;color:#000}.btn-save-sm:hover:not(:disabled){background:#e5e5e5}.btn-save-sm:disabled{opacity:.3;cursor:not-allowed}.danger-zone{border-color:#ef444433;background:#ef444408}.delete-row{display:flex;align-items:center;justify-content:space-between}.delete-info{display:flex;flex-direction:column;gap:4px}.delete-title{font-size:14px;font-weight:500;color:#fff}.delete-desc{font-size:13px;color:#ffffff80}.btn-delete{padding:8px 16px;background:transparent;border:1px solid rgba(239,68,68,.3);border-radius:6px;color:#ef4444;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;width:auto;height:auto}.btn-delete:hover{background:#ef44441a;border-color:#ef444480}.delete-confirm-form{display:flex;flex-direction:column;gap:12px}.delete-warning{font-size:13px;color:#ffffffb3;line-height:1.5;margin:0}.delete-instruction{font-size:13px;color:#ffffff80;margin:0}.delete-instruction strong{color:#ef4444}.delete-confirm-input{padding:10px 12px;background:#0000004d;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#fff;font-size:14px;width:100%;box-sizing:border-box}.delete-confirm-input:focus{outline:none;border-color:#ef444480}.delete-confirm-actions{display:flex;gap:8px}.btn-delete-confirm{padding:10px 20px;background:#ef4444;border:none;border-radius:6px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-delete-confirm:hover:not(:disabled){background:#dc2626}.btn-delete-confirm:disabled{opacity:.4;cursor:not-allowed}@media screen and (max-width: 768px){.mobile-sub-content .danger-zone{background:#ef44440d!important;border:1px solid rgba(239,68,68,.15)!important;border-radius:12px!important;padding:14px!important;margin-top:16px!important}.mobile-sub-content .danger-zone .card-label{display:block!important;color:#ef4444!important;margin-bottom:12px!important}.edit-name-form{gap:8px}.edit-name-input{padding:10px 12px;font-size:15px}.delete-row{flex-direction:column;align-items:flex-start;gap:12px}.btn-delete{width:100%;padding:10px;text-align:center}.delete-confirm-form{gap:10px}.delete-confirm-actions{flex-direction:column}.delete-confirm-actions .btn-cancel-sm,.delete-confirm-actions .btn-delete-confirm{width:100%;padding:12px}.mobile-danger-zone{margin-bottom:16px!important}.mobile-danger-zone .delete-confirm-form{background:#ef44440d!important;border:1px solid rgba(239,68,68,.15)!important;border-radius:12px!important;padding:16px!important}.mobile-danger-zone .delete-warning{font-size:14px!important;color:#ffffffb3!important;line-height:1.5!important;margin:0 0 12px!important}.mobile-danger-zone .delete-instruction{font-size:14px!important;color:#ffffff80!important;margin:0 0 12px!important}.mobile-danger-zone .delete-confirm-input{width:100%!important;padding:12px!important;font-size:15px!important;background:#0000004d!important;border:1px solid rgba(239,68,68,.3)!important;border-radius:8px!important;color:#fff!important;box-sizing:border-box!important}.mobile-danger-zone .delete-confirm-actions{display:flex!important;flex-direction:column!important;gap:8px!important;margin-top:12px!important}.mobile-danger-zone .btn-cancel-sm{width:100%!important;padding:12px!important;background:transparent!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:8px!important;color:#fff9!important;font-size:14px!important;font-weight:600!important;cursor:pointer!important}.mobile-danger-zone .btn-delete-confirm{width:100%!important;padding:12px!important;background:#ef4444!important;border:none!important;border-radius:8px!important;color:#fff!important;font-size:14px!important;font-weight:600!important;cursor:pointer!important}.mobile-danger-zone .btn-delete-confirm:disabled{opacity:.4!important;cursor:not-allowed!important}.mobile-menu-item.danger{color:#ef4444!important}.mobile-menu-item.danger svg:first-child{color:#ef4444!important}.mobile-menu-item.danger .menu-arrow{color:#ef444480!important}.mobile-profile .edit-name-form.mobile-edit-name{width:100%!important}.mobile-profile .edit-name-input{width:100%!important;padding:10px 12px!important;font-size:15px!important;background:#0000004d!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:8px!important;color:#fff!important;box-sizing:border-box!important}.mobile-profile .edit-name-actions{display:flex!important;gap:8px!important;margin-top:8px!important}.mobile-profile .btn-cancel-sm,.mobile-profile .btn-save-sm{flex:1!important;padding:10px!important;border-radius:8px!important;font-size:14px!important;font-weight:600!important;cursor:pointer!important}.mobile-profile .btn-cancel-sm{background:transparent!important;border:1px solid rgba(255,255,255,.1)!important;color:#fff9!important}.mobile-profile .btn-save-sm{background:#fff!important;border:none!important;color:#000!important}.mobile-profile .btn-save-sm:disabled{opacity:.3!important;cursor:not-allowed!important}.mobile-profile .btn-edit-name{width:28px!important;height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#ffffff14!important;border:none!important;border-radius:6px!important;color:#ffffff80!important;cursor:pointer!important;padding:0!important}}
