.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.login-card{max-width:450px;width:100%;animation:fadeIn .5s ease}.login-header{text-align:center;margin-bottom:2rem}.login-logo{width:120px;height:120px;object-fit:contain;margin-bottom:1rem;animation:bounce 1s ease infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.login-header h1{background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.error-message{background:#f871711a;border:1px solid var(--danger);color:var(--danger);padding:.75rem;border-radius:8px;margin-bottom:1rem;text-align:center}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.stat-card{display:flex;align-items:center;gap:1.5rem}.stat-icon{width:60px;height:60px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:clamp(1.2rem,2vw,1.6rem);white-space:nowrap;letter-spacing:-.5px}.stat-icon svg{color:var(--text-primary)}.stat-label{color:var(--text-secondary);font-size:.875rem;margin-bottom:.25rem}.stat-value{font-size:clamp(1.2rem,2vw,1.6rem);white-space:nowrap;letter-spacing:-.5px;font-weight:700;color:var(--text-primary)}.table-container{overflow-x:auto;margin-top:1.5rem}.rank-badge{font-size:1.25rem;font-weight:700}.rank-1{color:#fbbf24;font-weight:900}.rank-2{color:#94a3b8;font-weight:900}.rank-3{color:#cd7f32;font-weight:900}.total-earnings{font-size:1.125rem;color:var(--primary)}.empty-state{text-align:center;padding:3rem;color:var(--text-secondary)}.vat-toggle{display:flex;align-items:center}.toggle-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle-checkbox{display:none}.toggle-switch{position:relative;width:50px;height:26px;background:var(--border);border-radius:13px;transition:background .3s ease}.toggle-switch:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .3s ease}.toggle-checkbox:checked+.toggle-switch{background:var(--success)}.toggle-checkbox:checked+.toggle-switch:before{transform:translate(24px)}.toggle-text{font-weight:600;color:var(--text-primary);min-width:100px}@media (max-width: 768px){.dashboard-header{flex-direction:column;align-items:flex-start;gap:1rem}}.masters-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.master-card{display:flex;flex-direction:column;gap:1rem}.master-card-header{display:flex;justify-content:space-between;align-items:flex-start}.master-card-header h3{margin:0;font-size:1.25rem}.master-card-body{flex:1;display:flex;flex-direction:column;gap:.75rem}.master-info{display:flex;flex-direction:column;gap:.25rem}.master-card-actions{display:flex;gap:.75rem}.master-card-actions .btn{flex:1;padding:.5rem 1rem;justify-content:center}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.modal-content{max-width:500px;width:90%;max-height:90vh;overflow-y:auto;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@media (max-width: 768px){.masters-header{flex-direction:column;align-items:flex-start;gap:1rem}}.details-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem}.back-link{color:var(--text-secondary);text-decoration:none;display:inline-block;margin-bottom:.5rem;transition:color .3s ease}.back-link:hover{color:var(--primary)}.earnings-breakdown{display:flex;flex-direction:column;gap:1.5rem;margin-top:1.5rem}.earnings-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:var(--bg-darker);border-radius:8px}.earnings-value{font-size:1.25rem;font-weight:700}@media (max-width: 768px){.details-header{flex-direction:column;gap:1rem}}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.hierarchy-container{padding:2rem;height:calc(100vh - 80px);display:flex;flex-direction:column}.hierarchy-header{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.hierarchy-controls{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}.hierarchy-legend{display:flex;gap:1.5rem}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.875rem}.legend-color{width:20px;height:20px;border-radius:4px}.hierarchy-content{flex:1;display:flex;gap:1.5rem;min-height:0}.hierarchy-flow{flex:1;background:var(--bg-card);border-radius:16px;border:1px solid var(--border);overflow:hidden}.hierarchy-sidebar{width:300px;flex-shrink:0}.sidebar-info{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}.info-item{display:flex;flex-direction:column;gap:.25rem}.info-label{font-size:.875rem;color:var(--text-secondary)}.hierarchy-node{text-align:center}.node-name{font-weight:700;margin-bottom:.25rem}.node-address{font-size:.75rem;opacity:.9}@media (max-width: 1024px){.hierarchy-content{flex-direction:column}.hierarchy-sidebar{width:100%}.hierarchy-header{flex-direction:column;align-items:flex-start;gap:1rem}}.full-width-card{min-height:60vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;background:var(--bg-card);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:100}.sidebar-header{padding:1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.75rem}.sidebar-logo{width:32px;height:32px;object-fit:contain}.sidebar-title{font-size:1.125rem;font-weight:700;margin:0}.sidebar-nav{flex:1;padding:1rem .75rem;display:flex;flex-direction:column;gap:.25rem;overflow-y:auto}.sidebar-link{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-radius:8px;color:var(--text-secondary);text-decoration:none;transition:all .2s ease;font-weight:500}.sidebar-link:hover{background:var(--bg-hover);color:var(--text-primary)}.sidebar-link.active{background:#ff6b351a;color:var(--primary)}.sidebar-link svg{flex-shrink:0}.sidebar-footer{padding:1rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.75rem}.sidebar-user{display:flex;align-items:center;gap:.75rem;padding:.5rem}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.125rem}.user-info{flex:1}.user-role{font-size:.875rem;color:var(--text-secondary)}.sidebar-logout{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-radius:8px;background:transparent;border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;transition:all .2s ease;font-weight:500;width:100%}.sidebar-logout:hover{background:var(--bg-hover);color:var(--danger);border-color:var(--danger)}.sidebar-logout svg{flex-shrink:0}@media (max-width: 768px){.sidebar{width:70px}.sidebar-header{flex-direction:column;padding:1rem .5rem}.sidebar-title,.sidebar-link span,.sidebar-logout span{display:none}.sidebar-link,.sidebar-logout{justify-content:center}.user-info{display:none}.sidebar-user{justify-content:center}}:root{color-scheme:dark;--primary: #ff6b35;--primary-dark: #e85a28;--secondary: #004e89;--secondary-dark: #003a66;--success: #4ade80;--warning: #fbbf24;--danger: #f87171;--bg-dark: #0a0a0a;--bg-darker: #000000;--bg-card: #1a1a1a;--bg-hover: #252525;--text-primary: #ffffff;--text-secondary: #a0a0a0;--border: #2a2a2a}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg-dark);color:var(--text-primary);min-height:100vh;line-height:1.6}#root{min-height:100vh}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:var(--bg-darker)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.2;margin-bottom:1rem}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.5rem}.container{max-width:1400px;margin:0 auto;padding:2rem}.card{background:var(--bg-card);border-radius:12px;padding:1.5rem;border:1px solid var(--border);box-shadow:none;transition:all .2s ease}.card:hover{border-color:#3a3a3a}.btn{padding:.75rem 1.5rem;border-radius:8px;border:none;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);box-shadow:0 4px 6px #0000004d,inset 0 1px #ffffff1a}.btn-primary{background:linear-gradient(135deg,#ff6b35cc,#e65a28cc);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 16px #ff6b3580,inset 0 1px #fff3;background:linear-gradient(135deg,#ff6b35e6,#e65a28e6)}.btn-secondary{background:linear-gradient(135deg,#004e89cc,#003c6ecc);color:#fff}.btn-secondary:hover{transform:translateY(-2px);box-shadow:0 6px 16px #004e8980,inset 0 1px #fff3;background:linear-gradient(135deg,#004e89e6,#003c6ee6)}.btn-success{background:#4ade80cc;color:var(--bg-dark)}.btn-success:hover{transform:translateY(-2px);box-shadow:0 6px 16px #4ade8066,inset 0 1px #fff3;background:#4ade80e6}.btn-danger{background:#ef4444cc;color:#fff}.btn-danger:hover{transform:translateY(-2px);box-shadow:0 6px 16px #ef444466,inset 0 1px #fff3;background:#ef4444e6}.btn:disabled{opacity:.5;cursor:not-allowed}.input{width:100%;padding:.75rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--bg-darker);color:var(--text-primary);font-size:1rem;transition:all .3s ease}.input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #ff6b351a}.input::placeholder{color:var(--text-secondary)}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:var(--text-primary)}.table{width:100%;border-collapse:collapse;background:var(--bg-card);border-radius:12px;overflow:hidden}.table thead{background:var(--bg-darker)}.table th,.table td{padding:1rem;text-align:left;border-bottom:1px solid var(--border)}.table th{font-weight:700;color:var(--text-primary);text-transform:uppercase;font-size:.875rem;letter-spacing:.05em}.table tbody tr{transition:background .2s ease}.table tbody tr:hover{background:#ff6b350d}.badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.875rem;font-weight:600}.badge-success{background:#4ade8033;color:var(--success)}.badge-warning{background:#fbbf2433;color:var(--warning)}.badge-danger{background:#f8717133;color:var(--danger)}.grid{display:grid;gap:1.5rem}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}@media (max-width: 1024px){.grid-4,.grid-3{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.text-center{text-align:center}.text-secondary{color:var(--text-secondary)}.text-success{color:var(--success)}.text-warning{color:var(--warning)}.text-danger{color:var(--danger)}.loading{display:inline-block;width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease}
