.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;width:90%;max-width:700px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e0e0e0}.modal-header h2{margin:0;font-size:24px;color:#333}.close-btn{background:none;border:none;font-size:32px;cursor:pointer;color:#666;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.close-btn:hover:not(:disabled){background:#f0f0f0;color:#333}.close-btn:disabled{opacity:.5;cursor:not-allowed}.modal-body{padding:24px;overflow-y:auto;flex:1}.file-selection{margin-bottom:24px}.file-selection label{display:block;margin-bottom:8px;font-weight:600;color:#333}.file-selection select{width:100%;padding:10px 12px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;transition:border-color .2s}.file-selection select:hover:not(:disabled){border-color:#007bff}.file-selection select:disabled{opacity:.6;cursor:not-allowed}.operation-buttons{display:flex;gap:16px;margin-bottom:24px}.operation-buttons .btn{flex:1;display:flex;flex-direction:column;align-items:center;padding:16px;font-size:16px;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .3s;position:relative}.operation-buttons .btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0003}.operation-buttons .btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-danger{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff}.btn-success{background:linear-gradient(135deg,#28a745,#218838);color:#fff}.btn-secondary{background:#6c757d;color:#fff}.btn-description{display:block;font-size:12px;font-weight:400;margin-top:8px;opacity:.9}.logs-container{margin-top:24px;border-top:2px solid #e0e0e0;padding-top:16px}.logs-container h3{margin:0 0 12px;font-size:16px;color:#333}.logs{background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;padding:12px;max-height:300px;overflow-y:auto;font-family:Courier New,monospace;font-size:13px}.log-entry{display:flex;gap:8px;padding:6px 0;border-bottom:1px solid #e9ecef}.log-entry:last-child{border-bottom:none}.log-message{white-space:pre-wrap;word-break:break-word;color:#333}.log-completed .log-message{color:#28a745;font-weight:600}.log-failed .log-message,.log-error .log-message{color:#dc3545;font-weight:600}.loading-spinner{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px}.spinner{border:4px solid #f3f3f3;border-top:4px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}.loading-spinner p{margin:0;color:#666;font-size:14px}.modal-footer{padding:16px 24px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.modal-footer .btn{padding:10px 24px;font-size:14px;border:none;border-radius:6px;cursor:pointer;transition:all .2s}.modal-footer .btn:hover:not(:disabled){opacity:.9}.modal-footer .btn:disabled{opacity:.6;cursor:not-allowed}.beehive-container{padding:20px;max-width:1800px;margin:0 auto}.beehive-container h1{text-align:center;color:#333;margin-bottom:30px;font-size:2.5em}.beehive-content{display:grid;grid-template-columns:1fr 2fr;gap:20px;margin-bottom:30px}.beehive-panel{background:#fff;border-radius:8px;padding:20px;box-shadow:0 2px 8px #0000001a}.results-panel{min-height:500px}.beehive-panel h2{margin-top:0;color:#333;border-bottom:2px solid #007bff;padding-bottom:10px}.beehive-panel h3{color:#555;margin-top:20px;margin-bottom:15px;font-size:1.2em}.setup-section,.process-section{margin-bottom:25px}.csv-select{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.btn{width:100%;padding:12px 20px;border:none;border-radius:4px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s;margin-bottom:10px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#007bff;color:#fff}.btn-primary:hover:not(:disabled){background:#0056b3}.btn-success{background:#28a745;color:#fff}.btn-success:hover:not(:disabled){background:#1e7e34}.help-text{font-size:12px;color:#666;margin:5px 0 0;font-style:italic}.logs-container{margin-top:20px}.logs{max-height:300px;overflow-y:auto;background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;padding:10px;font-family:Courier New,monospace;font-size:12px}.log-entry{display:flex;gap:8px;margin-bottom:5px;padding:5px;border-radius:3px}.log-entry.log-completed{background:#d4edda;color:#155724}.log-entry.log-failed,.log-entry.log-error{background:#f8d7da;color:#721c24}.log-entry.log-progress{color:#333}.log-icon{flex-shrink:0}.log-message{white-space:pre-wrap;word-break:break-word}.loading-spinner{text-align:center;padding:20px}.spinner{border:4px solid #f3f3f3;border-top:4px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 10px}.system-stats{margin-bottom:30px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-top:15px}.stat-card{background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;padding:15px;text-align:center}.stat-label{font-size:12px;color:#666;text-transform:uppercase;font-weight:600;margin-bottom:8px}.stat-value{font-size:24px;font-weight:700;color:#333}.stat-value.pending{color:#ffc107}.search-input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;margin-bottom:15px;font-size:14px}.member-table-container{overflow-x:auto;max-height:500px;overflow-y:auto;border:1px solid #dee2e6;border-radius:4px}.member-table{width:100%;border-collapse:collapse;font-size:13px}.member-table thead{position:sticky;top:0;background:#007bff;color:#fff;z-index:10}.member-table th{padding:12px 8px;text-align:left;font-weight:600;border-bottom:2px solid #0056b3}.member-table tbody tr{border-bottom:1px solid #dee2e6;cursor:pointer;transition:background .2s}.member-table tbody tr:hover{background:#f8f9fa}.member-table tbody tr.selected{background:#e7f3ff}.member-table td{padding:10px 8px}.wallet-cell{font-family:Courier New,monospace;font-size:12px;color:#495057}.level-cell{text-align:center}.level-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:700;color:#fff}.level-badge.level-0{background:#6c757d}.level-badge.level-1{background:#8b4513}.level-badge.level-2{background:#cd7f32}.level-badge.level-3{background:silver}.level-badge.level-4{background:gold}.level-badge.level-5{background:#4169e1}.level-badge.level-6{background:#e5e4e2}.level-badge.level-7{background:#9370db}.level-badge.level-8{background:#b9f2ff}.level-badge.level-9{background:#ff1493}.level-badge.level-10{background:#00ced1}.level-badge.level-11{background:#9400d3}.level-badge.level-12{background:#ff8c00}.level-badge.level-13{background:red}.level-badge.level-14{background:#dc143c}.level-badge.level-15{background:#ff69b4}.level-badge.level-16{background:#ff4500}.level-badge.level-17{background:#8b0000}.level-badge.level-18{background:indigo}.level-badge.level-19{background:#000}.currency-cell{text-align:right;font-weight:600}.currency-cell.earned{color:#28a745}.currency-cell.pending{color:#ffc107}.center-cell{text-align:center}.referrer-cell{color:#6c757d}.scope-controls{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:15px;align-items:flex-end}.scope-field{display:flex;flex-direction:column;min-width:200px;flex:1 1 220px}.scope-field label{font-size:12px;font-weight:600;color:#555;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.scope-field select,.scope-field input{padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.scope-actions{display:flex;gap:10px;align-items:center;flex:0 0 auto}.scope-btn{padding:10px 16px;border:none;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.scope-btn:disabled{opacity:.6;cursor:not-allowed}.scope-apply{background:#007bff;color:#fff}.scope-apply:hover:not(:disabled){background:#0056b3}.scope-reset{background:#6c757d;color:#fff}.scope-reset:hover:not(:disabled){background:#545b62}.scope-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:4px;padding:10px 12px;font-size:13px;margin-bottom:12px}.scope-summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px;font-size:13px;color:#555}.scope-badge{background:#e9ecef;color:#495057;padding:4px 10px;border-radius:999px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;font-size:11px}.scope-badge.scope-root{background:#fff4e6;color:#d9822b}.scope-badge.scope-all{background:#e6ffed;color:#1e7e34}.scope-badge.scope-wallet{background:#e6f4ff;color:#1d6fa5}.scope-meta{font-weight:500}.scope-refresh{color:#007bff;font-weight:600}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin-bottom:15px;align-items:end}.filter-input-group label{display:block;font-size:12px;font-weight:600;color:#555;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.filter-input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.filter-meta{background:#f8f9fa;border:1px dashed #ced4da;border-radius:6px;padding:12px;display:flex;flex-direction:column;gap:4px;justify-content:center;font-size:12px;color:#495057}.filter-meta-label{text-transform:uppercase;font-weight:600;letter-spacing:.5px;color:#6c757d}.filter-meta-value{font-weight:600}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px;margin-bottom:15px}.summary-card{background:#fff;border:1px solid #dee2e6;border-radius:6px;padding:15px;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 3px #0000000d}.summary-label{font-size:12px;color:#6c757d;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.summary-value{font-size:20px;font-weight:700;color:#333}.summary-value.pending{color:#ffc107}.levels-reference{background:#fff;border-radius:8px;padding:20px;box-shadow:0 2px 8px #0000001a;margin-top:30px}.levels-reference h2{margin-top:0;color:#333;border-bottom:2px solid #007bff;padding-bottom:10px}.levels-table-container{overflow-x:auto;margin-top:15px}.levels-table{width:100%;border-collapse:collapse;font-size:14px}.levels-table thead{background:#f8f9fa;border-bottom:2px solid #dee2e6}.levels-table th{padding:12px 10px;text-align:left;font-weight:600;color:#495057}.levels-table tbody tr{border-bottom:1px solid #dee2e6}.levels-table tbody tr:nth-child(2n){background:#f8f9fa}.levels-table td{padding:10px}.empty-state{text-align:center;padding:80px 20px;color:#999;font-size:18px}@media (max-width: 1200px){.beehive-content{grid-template-columns:1fr}}@media (max-width: 768px){.beehive-container h1{font-size:2em}.scope-controls{flex-direction:column;align-items:stretch}.scope-actions{justify-content:flex-start}.filters-grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.member-table{font-size:11px}.member-table th,.member-table td{padding:8px 5px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5}#root{height:100vh;display:flex;flex-direction:column}.container{display:flex;flex:1;overflow:hidden}.sidebar{width:300px;background:#fff;border-right:1px solid #e0e0e0;padding:20px;overflow-y:auto}.main-content{flex:1;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.toolbar{background:#fff;border-bottom:1px solid #e0e0e0;padding:15px 20px;display:flex;gap:15px;align-items:center}.tree-container{flex:1;position:relative;background:#fafafa;padding:50px;overflow:auto}.search-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;width:200px}.search-input:focus{outline:none;border-color:#007bff}.btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .2s}.btn-primary{background-color:#007bff;color:#fff}.btn-primary:hover{background-color:#0056b3}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#545b62}.member-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:15px;margin-bottom:10px}.member-card h3{font-size:16px;margin-bottom:8px;color:#333}.member-card p{font-size:14px;color:#666;margin-bottom:4px}.member-card .wallet{font-family:monospace;font-size:12px;background:#f8f9fa;padding:4px 8px;border-radius:4px;word-break:break-all}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.stat-card{background:#f8f9fa;padding:10px;border-radius:4px;text-align:center}.stat-card .number{font-size:20px;font-weight:700;color:#007bff}.stat-card .label{font-size:12px;color:#666;text-transform:uppercase}.loading{display:flex;justify-content:center;align-items:center;height:200px;font-size:16px;color:#666}.error{color:#dc3545;background:#f8d7da;border:1px solid #f5c6cb;padding:10px;border-radius:4px;margin:10px 0}#cy{width:100%;height:100%}.cy-node{font-size:12px}.cy-node .node-label{font-size:10px;text-align:center;word-wrap:break-word;max-width:60px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.container{flex-direction:column}.sidebar{width:100%;height:200px}.toolbar{flex-wrap:wrap}.search-input{width:150px}}.clear-cache-btn:hover{background-color:#5a6268!important;transform:translateY(-1px);transition:all .2s ease}.member-management{display:flex;flex-direction:column;height:100%}.member-management-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #e0e0e0}.member-management-header h3{margin:0;color:#333}.header-actions{display:flex;gap:10px;align-items:center}.member-management-content{display:flex;flex:1;gap:20px;overflow:hidden}.members-list{flex:1;display:flex;flex-direction:column;overflow:hidden}.members-header{display:grid;grid-template-columns:2fr 1fr .5fr .5fr 1fr;gap:10px;padding:10px;background:#f8f9fa;border-radius:4px;font-weight:700;font-size:12px;color:#666;text-transform:uppercase}.member-row{display:grid;grid-template-columns:2fr 1fr .5fr .5fr 1fr;gap:10px;padding:12px 10px;border-bottom:1px solid #e0e0e0;cursor:pointer;transition:background-color .2s;align-items:center}.member-row:hover{background-color:#f8f9fa}.member-row.selected{background-color:#e3f2fd;border-left:3px solid #007bff}.member-row .wallet-address{font-family:monospace;font-size:12px;color:#333}.member-row .username{font-size:14px;color:#666}.member-row .layer{text-align:center;font-weight:700;color:#007bff}.member-row .children-count{text-align:center;font-weight:700;color:#28a745}.member-row .actions{display:flex;gap:5px}.btn-sm{padding:4px 8px;font-size:12px}.btn-danger{background-color:#dc3545;color:#fff}.btn-danger:hover{background-color:#c82333}.member-details{width:300px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;overflow-y:auto}.member-details h4{margin:0 0 15px;color:#333;border-bottom:1px solid #e0e0e0;padding-bottom:10px}.member-info{margin-bottom:20px}.member-info>div{margin-bottom:8px;font-size:14px}.member-info strong{color:#333;margin-right:8px}.layer-info{border-top:1px solid #e0e0e0;padding-top:15px}.layer-info h5{margin:0 0 10px;color:#333;font-size:16px}.layer-info h6{margin:10px 0 5px;color:#666;font-size:14px}.sponsor-chain ol{margin:0;padding-left:20px}.sponsor-chain li{margin-bottom:4px;font-size:12px;font-family:monospace}.pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:15px;padding:10px}.pagination span{font-size:14px;color:#666}.error-message{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;padding:10px;border-radius:4px;margin-bottom:15px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background:#fff;border-radius:8px;padding:20px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto}.modal h3{margin:0 0 20px;color:#333}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;font-weight:700;color:#333}.form-group input{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.form-group input:focus{outline:none;border-color:#007bff}.form-group input.disabled-input{background-color:#f8f9fa;color:#666;cursor:not-allowed}.form-group small{display:block;margin-top:5px;color:#666;font-size:12px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid #e0e0e0}.tab-buttons{display:flex;margin-bottom:20px;border-bottom:1px solid #e0e0e0}.tab-button{flex:1;padding:10px 15px;border:none;background:transparent;cursor:pointer;font-size:14px;color:#666;border-bottom:2px solid transparent;transition:all .2s}.tab-button:hover{color:#333;background-color:#f8f9fa}.tab-button.active{color:#007bff;border-bottom-color:#007bff;background-color:#f8f9fa}@media (max-width: 768px){.member-management-content{flex-direction:column}.member-details{width:100%}.members-header,.member-row{grid-template-columns:1fr .5fr .5fr .5fr 1fr;font-size:11px}.member-row .actions,.tab-buttons{flex-direction:column}.tab-button{border-bottom:none;border-right:2px solid transparent}.tab-button.active{border-right-color:#007bff;border-bottom-color:transparent}}
