@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root{--ink:#17202f;--muted:#738093;--line:#e7eaf0;--purple:#6558d9;--purple-soft:#efedff;--green:#18a978;--bg:#f6f7fb;--white:#fff;--shadow:0 10px 35px rgba(30,40,70,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#151b29;color:#c6ccda;padding:28px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;padding:0 10px 32px}.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#8b78ff,#5141ca);display:grid;place-items:center;font:800 21px Manrope;box-shadow:0 8px 20px #6558d94d}.brand b,.brand small{display:block}.brand b{font:700 17px Manrope}.brand small{font-size:10px;letter-spacing:1.6px;color:#858da1;margin-top:2px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#626b7f;margin:20px 12px 8px}.sidebar nav a{display:flex;align-items:center;gap:13px;color:#aeb5c5;text-decoration:none;padding:12px 13px;margin:3px 0;border-radius:10px;font-size:14px}.sidebar nav a span{font-size:19px;width:20px;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{background:#6558d9;color:white}.sidebar nav a i{font-size:9px;font-style:normal;margin-left:auto;background:#282f40;padding:3px 6px;border-radius:10px}.side-user{margin-top:auto;border-top:1px solid #2b3242;padding:20px 8px 0;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:10px;background:#2d3750;display:grid;place-items:center;color:white;font-size:12px}.side-user b,.side-user small{display:block}.side-user b{color:#fff;font-size:12px}.side-user small{font-size:10px;color:#727c91;margin-top:3px}main{margin-left:250px}header{height:78px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 42px;position:sticky;top:0;z-index:5}header>div{display:flex;flex-direction:column}header b{font:700 16px Manrope}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#8b94a5}.menu{display:none;border:0;background:transparent;font-size:22px}.primary{display:inline-flex;align-items:center;justify-content:center;background:var(--purple);color:#fff!important;border:0;border-radius:10px;padding:12px 17px;text-decoration:none;font:600 13px 'DM Sans';box-shadow:0 8px 18px #6558d933}.primary.small{margin-left:auto;padding:10px 15px}.content{max-width:1250px;margin:auto;padding:38px 42px}.welcome{background:linear-gradient(120deg,#242e4c,#393367);border-radius:20px;padding:34px 38px;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow);position:relative;overflow:hidden}.welcome:after{content:'';position:absolute;width:300px;height:300px;border-radius:50%;border:55px solid #ffffff0a;right:80px;top:-140px}.welcome h1,.title-row h1{font:800 29px Manrope;margin:11px 0 6px}.welcome p,.title-row p{margin:0;color:#b9c1d4;font-size:14px}.pill{font-size:9px;letter-spacing:1.4px;background:#ffffff17;border:1px solid #ffffff1c;padding:6px 9px;border-radius:20px}.welcome .primary{position:relative;z-index:1;background:#fff;color:#292650!important}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.stats article{background:white;border:1px solid var(--line);border-radius:15px;padding:21px;display:flex;gap:16px;align-items:center}.stat-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-size:20px}.stat-icon.violet{background:#efedff;color:#6558d9}.stat-icon.green{background:#e5f8f1;color:#18a978}.stat-icon.amber{background:#fff4dc;color:#d88b19}.stats small,.stats em,.stats strong{display:block}.stats small{font-size:11px;color:var(--muted)}.stats strong{font:800 25px Manrope;margin:1px 0}.stats em{font-size:10px;font-style:normal;color:#18a978}.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:24px}.card-head{display:flex;align-items:center;justify-content:space-between}.card-head h2,.section-title h2{font:700 17px Manrope;margin:4px 0}.card-head a{color:var(--purple);font-size:12px;text-decoration:none}.mini-tree{text-align:center;padding:25px 10px 8px}.member-chip{display:inline-flex;flex-direction:column;align-items:center;min-width:110px}.member-chip span,.person>span{width:39px;height:39px;background:#efedff;color:#6558d9;border-radius:11px;display:grid;place-items:center;font-size:11px;font-weight:700}.member-chip b{font-size:11px;margin-top:7px}.member-chip small{font-size:9px;color:var(--muted);margin-top:2px}.member-chip.root{position:relative}.member-chip.root:after{content:'';position:absolute;height:23px;width:1px;background:#d9dce5;bottom:-25px}.branches{display:flex;justify-content:space-around;border-top:1px solid #d9dce5;margin-top:24px;padding-top:24px}.actions a{display:flex;align-items:center;gap:12px;padding:13px 5px;border-bottom:1px solid var(--line);color:var(--muted);text-decoration:none;font-size:12px}.actions a:last-child{border:0}.actions a>span{width:35px;height:35px;background:#f1f2f7;border-radius:9px;display:grid;place-items:center;color:#6558d9;font-size:17px}.actions a div{flex:1}.actions b,.actions small{display:block}.actions b{color:var(--ink);font-size:12px}.actions small{font-size:10px;margin-top:3px}.title-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.title-row h1{margin:5px 0}.title-row p{color:var(--muted)}.search{display:flex;gap:8px;margin-bottom:20px}.search input{max-width:380px}.search button{border:0;background:#20283a;color:#fff;border-radius:9px;padding:0 17px}.search.compact{margin:0}.table-card{padding:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#8a93a4;font-size:9px;letter-spacing:1px;padding:12px;border-bottom:1px solid var(--line)}td{padding:15px 12px;border-bottom:1px solid #eef0f4;white-space:nowrap}td small{display:block;color:var(--muted);margin-top:3px}.person{display:flex;align-items:center;gap:10px}.person b{display:block}.person>span{width:34px;height:34px}.status{color:var(--green);background:#eaf8f3;border-radius:20px;padding:5px 8px;font-size:10px}.empty{text-align:center;color:var(--muted);padding:35px}.pagination nav{display:flex;margin-top:16px}.pagination svg{width:16px}.pagination p{font-size:11px;color:var(--muted)}.pagination a,.pagination span{font-size:11px}.form-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:20px}.section-title{display:flex;gap:13px;align-items:flex-start;padding-bottom:19px;border-bottom:1px solid var(--line)}.section-title>span{width:31px;height:31px;background:#efedff;color:#6558d9;border-radius:9px;display:grid;place-items:center;font-size:10px;font-weight:700}.section-title h2{margin:0}.section-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:20px}.fields.one-col{grid-template-columns:1fr}.fields label>span,fieldset legend{display:block;font-size:11px;font-weight:600;margin-bottom:7px}input,select,textarea{width:100%;border:1px solid #dfe3eb;border-radius:9px;padding:11px 12px;background:#fff;font:12px 'DM Sans';color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#6558d9;box-shadow:0 0 0 3px #6558d917}textarea{min-height:82px;resize:vertical}.wide{grid-column:1/-1}.field-error{color:#d94e5d!important;font-size:10px;display:block;margin-top:5px}.invalid{border-color:#d94e5d}.positions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.positions input{display:none}.positions label span{border:1px solid #dfe3eb;border-radius:9px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;color:var(--muted);font-size:9px}.positions label span b{font-size:13px;color:var(--ink)}.positions input:checked+span{border-color:#6558d9;background:#efedff;color:#6558d9}.info{padding:12px;background:#f5f4ff;color:#675da6;border-radius:9px;font-size:10px;line-height:1.5}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:18px}.form-actions>a{font-size:12px;color:var(--muted);text-decoration:none}.alert{border-radius:11px;padding:13px 16px;margin-bottom:18px;font-size:12px}.alert.success{background:#e9f8f2;color:#117e5b}.alert.error{background:#fff0f1;color:#b53c48;display:flex;justify-content:space-between}.legend{display:flex;justify-content:flex-end;gap:18px;font-size:10px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.active-dot{background:#1cc886}.tree-scroll{overflow:auto;padding:30px 15px}.genealogy{min-width:680px;text-align:center}.tree-level{display:flex;justify-content:center}.tree-node{width:150px;background:#fff;border:1px solid #e0e4ec;box-shadow:0 9px 24px #27325212;border-radius:14px;padding:16px 10px;display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--ink);position:relative}.node-avatar{width:43px;height:43px;border-radius:12px;background:linear-gradient(135deg,#7466e8,#5145bb);color:white;display:grid;place-items:center;font-size:12px;font-weight:700}.tree-node i{width:8px;height:8px;background:#1cc886;border-radius:50%;position:absolute;top:12px;right:12px}.tree-node b{font-size:11px;margin-top:8px}.tree-node strong{font-size:9px;color:#6558d9;margin-top:2px}.tree-node small{font-size:9px;color:var(--muted);margin-top:3px}.connector.down{height:45px;width:1px;background:#cfd4df;margin:auto}.child-level{border-top:1px solid #cfd4df;justify-content:space-around;padding-top:27px}.branch{width:30%;position:relative;display:flex;justify-content:center}.branch:before{content:'';position:absolute;width:1px;height:28px;background:#cfd4df;top:-28px}.position-tag{position:absolute;top:-22px;left:calc(50% + 8px);font-size:8px;color:#8992a4}.empty-node{width:150px;height:130px;border:1px dashed #cfd4df;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a9b0be;font-size:25px}.empty-node small{font-size:10px;margin-top:8px}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.menu{display:block;margin-right:14px}main{margin-left:0}.content{padding:25px 20px}header{padding:0 20px}.grid-2,.form-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.welcome{align-items:flex-start;gap:22px;flex-direction:column}.welcome h1{font-size:24px}.title-row{align-items:flex-start;gap:15px;flex-direction:column}.search.compact{width:100%}.search.compact input{flex:1}.form-actions{grid-column:1}.fields{grid-template-columns:1fr}.wide{grid-column:1}.alert.error{flex-direction:column;gap:4px}}@media(max-width:520px){header .eyebrow{display:none}.primary.small{font-size:0}.primary.small:first-letter{font-size:17px}.content{padding:20px 14px}.card{padding:18px}.welcome{padding:27px 22px}.stats article{padding:16px}.positions{grid-template-columns:1fr}.legend{justify-content:flex-start;flex-wrap:wrap}}
.side-user form{margin-left:auto}.side-user button,.text-button{border:0;background:transparent;color:#8f98aa;cursor:pointer}.person{text-decoration:none;color:inherit}.badge{display:inline-block;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:700}.badge.approved,.badge.paid,.badge.completed,.badge.active{background:#e5f8f1;color:#13815e}.badge.pending,.badge.processing{background:#fff4dc;color:#a66d17}.badge.rejected,.badge.cancelled{background:#fff0f1;color:#b53c48}.inline-form{display:flex;gap:10px;margin-bottom:20px;align-items:end}.inline-form>*{flex:1}.inline-form button{flex:0 0 auto}.inline-form.wrap{flex-wrap:wrap}.row-form{display:flex;gap:5px}.row-form input,.row-form select{padding:7px;width:110px}.row-form button{border:0;border-radius:7px;background:#242d40;color:#fff;padding:5px 9px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product{position:relative}.product-icon{width:44px;height:44px;display:grid;place-items:center;background:var(--purple-soft);color:var(--purple);border-radius:12px;font-size:22px}.product .badge{position:absolute;right:18px;top:18px}.product h2{font:700 15px Manrope;margin:17px 0 3px}.product p,.product small{display:block;color:var(--muted);font-size:10px}.product strong{display:block;font:800 20px Manrope;margin:14px 0 3px}.wallet-hero{background:linear-gradient(120deg,#5044bf,#7669e7);border-radius:18px;padding:28px 32px;color:#fff;display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.wallet-hero span,.wallet-hero small,.wallet-hero strong{display:block}.wallet-hero span{font-size:9px;letter-spacing:1.4px}.wallet-hero strong{font:800 34px Manrope;margin:6px 0}.wallet-hero small{color:#d8d4ff}.wallet-hero form{display:flex;gap:8px}.wallet-hero input{border-color:#ffffff3b;background:#ffffff12;color:#fff}.wallet-hero input::placeholder{color:#d8d4ff}.wallet-hero button{border:0;border-radius:9px;padding:10px;background:#fff;color:#40369d;font-weight:700}.ledger{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:13px 0;font-size:11px}.ledger>div{flex:1}.ledger b,.ledger small{display:block}.ledger small{color:var(--muted);margin-top:3px}.txn{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:15px;font-weight:700}.txn.credit{background:#e5f8f1;color:#13815e}.txn.debit{background:#fff0f1;color:#b53c48}.report-stats{grid-template-columns:repeat(5,1fr)}.profile-form .primary{margin-top:20px}.full{width:100%}.auth-body{min-height:100vh;background:radial-gradient(circle at 20% 10%,#7669e72b,transparent 30%),#f4f5fa;display:grid;place-items:center}.auth-shell{width:min(420px,calc(100% - 30px));margin:40px auto}.auth-brand{display:flex;justify-content:center;align-items:center;gap:10px;font:800 20px Manrope;margin-bottom:20px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:var(--shadow)}.auth-card h1{font:800 24px Manrope;margin:7px 0}.auth-card>p{font-size:12px;color:var(--muted);margin-bottom:24px}.auth-card label>span{font-size:11px;font-weight:600;display:block;margin:15px 0 6px}.auth-row{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.auth-row a,.back-link{font-size:11px;color:var(--purple);text-decoration:none}.check{display:flex!important;align-items:center;gap:6px;font-size:11px}.check input{width:auto}.auth-foot{text-align:center;color:var(--muted);font-size:10px}.demo-box{margin-top:18px;padding:12px;background:#f5f4ff;border-radius:9px}.demo-box b,.demo-box small{display:block;font-size:10px;margin:2px 0}.back-link{display:block;text-align:center;margin-top:18px}
@media(max-width:900px){.product-grid{grid-template-columns:1fr 1fr}.report-stats{grid-template-columns:1fr 1fr}.inline-form{align-items:stretch;flex-direction:column}.wallet-hero{align-items:stretch;gap:20px;flex-direction:column}}@media(max-width:520px){.product-grid{grid-template-columns:1fr}.wallet-hero form{flex-direction:column}.report-stats{grid-template-columns:1fr}}

/* Member directory */
.members-page{max-width:1180px;margin:0 auto}.members-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.members-heading h1{font:800 30px Manrope;margin:6px 0}.members-heading p{margin:0;color:var(--muted);font-size:13px}.member-count{min-width:124px;padding:12px 16px;border-left:1px solid #dfe3eb}.member-count span,.member-count small{display:block}.member-count span{font:800 23px Manrope}.member-count small{color:var(--muted);font-size:10px;margin-top:2px}.members-card{padding:0;overflow:hidden;border-radius:18px;box-shadow:0 16px 45px rgba(27,36,58,.08)}.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid var(--line)}.directory-toolbar h2{font:700 17px Manrope;margin:0 0 3px}.directory-toolbar p{color:var(--muted);font-size:11px;margin:0}.member-search{width:min(430px,50%);height:42px;display:flex;align-items:center;border:1px solid #dfe3eb;border-radius:10px;background:#fafbfc;padding-left:13px;transition:.2s}.member-search:focus-within{background:#fff;border-color:var(--purple);box-shadow:0 0 0 3px #6558d912}.member-search>span{font-size:21px;color:#8892a3;line-height:1;transform:rotate(-15deg)}.member-search input{border:0;box-shadow:none!important;background:transparent;padding:10px;width:100%}.member-search>a{color:#8b94a5;text-decoration:none;font-size:19px;padding:5px}.member-search button{align-self:stretch;border:0;border-radius:0 9px 9px 0;background:#20283a;color:#fff;padding:0 18px;font:600 12px 'DM Sans';cursor:pointer}.member-table-wrap{padding:0 24px}.member-table{font-size:12px}.member-table th{padding:14px 12px 11px;color:#8a93a4;font-size:9px;letter-spacing:1.25px;text-transform:uppercase}.member-table td{height:68px;padding:12px;border-bottom-color:#edf0f4}.member-table tbody tr{transition:background .15s}.member-table tbody tr:hover{background:#fafaff}.member-person>span{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#f1efff,#e7e4ff);font-size:10px}.member-person b{font-size:12px}.member-person small{color:#7770ba;font-size:9px}.cell-primary{font-weight:500}.code-chip{font-size:10px;font-weight:600;color:#5b55a9;background:#f3f1ff;padding:5px 7px;border-radius:6px}.rank-badge{font-size:10px;font-weight:600;color:#475267;background:#f1f3f7;padding:5px 8px;border-radius:6px}.status-stack{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.member-status{display:inline-flex;align-items:center;gap:5px;color:#12805d;background:#e8f7f1;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:700}.member-status i{width:5px;height:5px;border-radius:50%;background:currentColor}.member-status.inactive,.member-status.suspended{color:#b04a58;background:#fff0f2}.status-action{border:0;background:none;padding:0 7px;color:#8a93a4;font:500 9px 'DM Sans';cursor:pointer}.status-action:hover{color:#c34756}.row-action{display:inline-flex;align-items:center;gap:6px;color:#6558d9;text-decoration:none;font-size:10px;font-weight:700}.row-action span{font-size:14px;transition:transform .15s}.row-action:hover span{transform:translateX(2px)}.member-pagination{padding:16px 24px;border-top:1px solid var(--line)}.member-pagination nav{margin:0}.member-empty{height:240px!important}.member-empty>span,.member-empty>b,.member-empty>small{display:block;margin:auto}.member-empty>span{font-size:28px;color:#a3aabc}.member-empty>b{font:700 14px Manrope;margin-top:8px}.member-empty>small{margin-top:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.members-heading{align-items:flex-start}.directory-toolbar{align-items:flex-start;flex-direction:column}.member-search{width:100%}.member-table-wrap{padding:0 14px}.member-table{min-width:920px}}
@media(max-width:520px){.members-heading{gap:18px}.members-heading h1{font-size:25px}.member-count{min-width:auto;padding:8px 0 8px 15px}.member-count span{font-size:19px}.directory-toolbar{padding:18px}.member-search button{padding:0 13px}.member-table-wrap{padding:0 6px}}

/* Refined enterprise directory */
.members-page{max-width:none}.members-heading{margin-bottom:28px}.members-heading h1{font-size:32px;letter-spacing:-.7px;margin:8px 0 5px}.members-heading p{font-size:14px}.members-card{border-radius:12px;box-shadow:0 1px 2px rgba(20,27,45,.03);border-color:#dde2ea}.directory-toolbar{min-height:82px;padding:18px 22px;background:#fff}.directory-toolbar h2{display:flex;align-items:center;gap:9px;font-size:16px}.directory-toolbar h2 span{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:21px;padding:0 7px;border-radius:5px;background:#f0f1f5;color:#566174;font:700 10px 'DM Sans'}.directory-toolbar p{font-size:11px;margin-top:4px}.member-search{width:390px;max-width:48%;height:40px;border-radius:7px;background:#fff;padding-left:11px}.member-search>span{font-size:19px}.member-search button{border-radius:0 6px 6px 0;padding:0 17px}.member-table-wrap{padding:0}.member-table{table-layout:auto;font-size:13px}.member-table th{height:42px;padding:0 22px;background:#f8f9fb;border-bottom-color:#e4e8ee;color:#687386;font-size:9px;font-weight:700}.member-table th:first-child,.member-table td:first-child{padding-left:22px}.member-table th:last-child,.member-table td:last-child{padding-right:22px}.member-table td{height:76px;padding:14px 22px;border-bottom-color:#e8ebf0;vertical-align:middle}.member-table tbody tr:last-child td{border-bottom:0}.member-table tbody tr:hover{background:#fbfbfe}.member-person{gap:12px}.member-person>span{width:40px;height:40px;border-radius:10px;background:#eeecff;font-size:11px}.member-person b{font-size:13px;font-weight:600}.member-person small,.member-table td small{font-size:10px;margin-top:4px;color:#7c8799}.cell-primary,.network-primary{display:block;font-size:12px;font-weight:500;color:#252e3d}.rank-text{font-size:12px;font-weight:600;color:#3d4758}.member-status{padding:5px 9px;border-radius:6px;font-size:10px}.action-heading{text-align:right}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;white-space:nowrap}.row-action{font-size:11px;color:#5548c5}.status-action{padding:0;font-size:10px;color:#8791a2}.status-action:hover{color:#b83c4b}.member-pagination{padding:15px 22px;background:#fafbfc}.member-empty{height:250px!important}
@media(max-width:1400px) and (min-width:901px){.member-table th,.member-table td{padding-left:12px;padding-right:12px}.member-table th:first-child,.member-table td:first-child{padding-left:18px}.member-table th:last-child,.member-table td:last-child{padding-right:14px}.member-table th:nth-child(1){width:24%}.member-table th:nth-child(2){width:18%}.member-table th:nth-child(3){width:23%}.member-table th:nth-child(4){width:12%}.member-table th:nth-child(5){width:12%}.member-table th:nth-child(6){width:11%}.row-actions{gap:8px;flex-wrap:wrap}.row-action{white-space:nowrap}}
@media(max-width:900px){.member-search{width:100%;max-width:none}.member-table-wrap{padding:0}.member-table{min-width:900px}.members-heading h1{font-size:28px}}

/* Professional portal system */
:root{--ink:#182033;--muted:#6f7a8f;--line:#e5e8ef;--purple:#6558d9;--purple-dark:#5044bd;--purple-soft:#f0eeff;--green:#12a477;--bg:#f5f6fa;--white:#fff;--shadow:0 8px 30px rgba(28,36,58,.06);--shadow-lg:0 18px 55px rgba(28,36,58,.1)}
html{scroll-behavior:smooth}body{font-size:14px;line-height:1.5;background:var(--bg);-webkit-font-smoothing:antialiased}button,a,input,select,textarea{transition:border-color .18s,box-shadow .18s,background .18s,color .18s,transform .18s}button{font-family:inherit}.shell{display:flex}.sidebar{width:268px;padding:24px 18px 20px;background:linear-gradient(180deg,#171d2c 0%,#111725 100%);box-shadow:8px 0 30px rgba(15,20,34,.08)}.brand{padding:4px 10px 30px}.brand-mark{width:42px;height:42px;border-radius:13px}.brand b{font-size:18px;letter-spacing:-.3px}.brand small{font-size:9px;letter-spacing:1.8px}.nav-label{margin:22px 13px 9px;font-weight:700}.sidebar nav a{position:relative;min-height:44px;padding:11px 13px;border-radius:9px;font-weight:500}.sidebar nav a .nav-icon{width:22px;height:22px;border:1px solid #343c50;border-radius:6px;display:grid;place-items:center;font-size:8px;font-weight:700;color:#7f8aa2}.sidebar nav a:hover{background:#22293a;color:#fff}.sidebar nav a.active{background:linear-gradient(135deg,#7063e5,#5a4dcc);box-shadow:0 8px 20px rgba(84,72,194,.3)}.sidebar nav a.active:before{content:'';position:absolute;left:-18px;width:3px;height:22px;border-radius:0 3px 3px 0;background:#a99fff}.sidebar nav a.active .nav-icon{color:#fff;border-color:#ffffff55;background:#ffffff12}.side-user{padding:18px 8px 0}.side-user .avatar{width:38px;height:38px;background:linear-gradient(135deg,#3c4761,#283248);border:1px solid #ffffff12}.side-user button{font-size:17px;padding:8px;border-radius:7px}.side-user button:hover{color:#fff;background:#ffffff0d}main{margin-left:268px;width:calc(100% - 268px)}header{height:76px;padding:0 38px;border-color:#e8eaf0;box-shadow:0 1px 0 rgba(20,28,45,.01)}header b{font-size:16px}.header-meta{margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:22px}.live-indicator{display:flex;align-items:center;gap:7px;font-size:10px;color:#7d8798;font-weight:600}.live-indicator i{width:7px;height:7px;border-radius:50%;background:#1bb783;box-shadow:0 0 0 4px #e7f8f2}.primary{min-height:42px;border-radius:9px;padding:11px 18px;background:linear-gradient(135deg,#6d60df,#594bc6);box-shadow:0 8px 18px rgba(101,88,217,.2);font-weight:700;cursor:pointer}.primary:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(101,88,217,.28)}.primary.small{margin-left:0;min-height:38px;padding:9px 15px}.primary.small span{font-size:17px;line-height:0;margin-right:6px}.content{max-width:1440px;padding:36px 40px 50px}.welcome{min-height:210px;padding:38px 42px;border-radius:17px;background:linear-gradient(118deg,#242d49 0%,#37315f 62%,#514794 120%);box-shadow:0 18px 45px rgba(33,39,70,.17)}.welcome:before{content:'';position:absolute;inset:auto -40px -110px auto;width:260px;height:260px;border:1px solid #ffffff17;border-radius:50%}.welcome:after{right:115px;top:-155px;border-width:45px}.welcome h1{font-size:32px;letter-spacing:-.8px;margin:13px 0 8px}.welcome p{max-width:620px;line-height:1.65;color:#c7ccda}.welcome .primary{padding:12px 20px;box-shadow:0 10px 25px #0f142230}.pill{font-weight:700}.stats{gap:18px;margin:22px 0}.stats article{min-height:112px;padding:22px 24px;border-radius:13px;border-color:#e6e9ef;box-shadow:0 3px 16px rgba(30,38,60,.035)}.stats article:hover{border-color:#d9dceb;box-shadow:var(--shadow);transform:translateY(-2px)}.stat-icon{width:48px;height:48px;border-radius:12px}.stats small{font-size:11px}.stats strong{font-size:26px;letter-spacing:-.5px}.grid-2{gap:20px}.card{border-color:#e3e6ed;border-radius:14px;padding:25px;box-shadow:0 3px 20px rgba(29,37,58,.04)}.card-head{min-height:36px}.card-head h2,.section-title h2{font-size:17px}.card-head a{font-weight:700}.actions a{padding:15px 5px}.actions a:hover{color:var(--purple);transform:translateX(3px)}.actions a>span{background:#f1efff}.title-row{margin-bottom:26px}.title-row h1,.members-heading h1{font-size:31px;letter-spacing:-.7px}.title-row p{font-size:13px;color:var(--muted)}.table-card{padding:0;overflow:hidden}.table-card .card-head{padding:22px 24px;border-bottom:1px solid var(--line)}table{font-size:12px}th{height:43px;padding:0 18px;background:#f8f9fb;font-weight:700;color:#717c8e}td{height:64px;padding:13px 18px}tbody tr:hover{background:#fbfbfe}.form-grid{gap:22px}.section-title{padding-bottom:20px}.fields{gap:19px;margin-top:23px}.fields label>span,fieldset legend{color:#424b5c;font-weight:700}input,select,textarea{min-height:42px;border-color:#dce1e9;border-radius:8px;padding:11px 13px;background:#fcfcfd;font-size:12px}input:hover,select:hover,textarea:hover{border-color:#c9cfda;background:#fff}input:focus,select:focus,textarea:focus{background:#fff}.inline-form{padding:20px 22px;box-shadow:none}.row-form button{min-height:32px;padding:6px 11px;cursor:pointer}.badge,.member-status{letter-spacing:.1px}.product-grid{gap:20px}.product{min-height:205px;padding:24px}.product:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}.product-icon{width:48px;height:48px}.product h2{font-size:16px}.wallet-hero{min-height:190px;padding:32px 36px;border-radius:16px;background:linear-gradient(120deg,#4e43b7,#7467e3);box-shadow:0 18px 44px rgba(80,68,190,.22)}.wallet-hero strong{font-size:38px}.tree-card{padding-top:20px}.tree-node{border-color:#dfe3eb;box-shadow:0 8px 25px rgba(39,50,82,.08)}.tree-node:hover{border-color:#bcb5f0;transform:translateY(-3px);box-shadow:0 13px 30px rgba(39,50,82,.12)}.empty-node{background:#fafbfc}.members-card{border-radius:13px}.directory-toolbar{padding:20px 24px}.member-search{background:#fafbfc}.member-pagination{background:#fafbfc}.alert{border:1px solid transparent}.alert.success{border-color:#cfeee3}.auth-body{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);padding:0;background:#f7f7fa}.auth-visual{min-height:100vh;padding:65px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:radial-gradient(circle at 85% 15%,#8579ef55,transparent 27%),radial-gradient(circle at 5% 85%,#6558d933,transparent 32%),linear-gradient(145deg,#181f31,#302b55)}.auth-visual>div{margin:auto 0}.auth-visual h2{font:800 clamp(38px,4vw,60px)/1.12 Manrope;margin:22px 0 18px;letter-spacing:-2px}.auth-visual p{max-width:480px;color:#c0c6d6;font-size:15px;line-height:1.7}.auth-visual>small{color:#8d96aa;letter-spacing:1.2px}.auth-shell{width:min(430px,calc(100% - 40px));margin:auto}.auth-brand{justify-content:flex-start;margin-bottom:25px}.auth-brand>span:last-child b,.auth-brand>span:last-child small{display:block}.auth-brand>span:last-child small{font-size:8px;color:#8992a3;letter-spacing:1.5px;margin-top:2px}.auth-card{padding:34px;border-radius:15px;box-shadow:0 18px 60px rgba(29,36,55,.09)}.auth-card h1{font-size:27px;letter-spacing:-.5px}.auth-card>p{line-height:1.6}.auth-foot{margin-top:18px}.demo-box{border:1px solid #e5e1ff}.sidebar-backdrop{display:none}
@media(max-width:1000px){.content{padding:30px 28px}.report-stats{grid-template-columns:repeat(2,1fr)}.auth-visual{padding:42px}}
@media(max-width:900px){.shell{display:block}.sidebar{width:268px}.sidebar.open+.shell main{pointer-events:none}main{width:100%;margin-left:0}.sidebar.open~.sidebar-backdrop,.sidebar.open+main~.sidebar-backdrop{display:block}.content{padding:26px 20px 40px}header{padding:0 20px}.header-meta{gap:12px}.live-indicator{display:none}.welcome{padding:30px;min-height:unset}.stats{grid-template-columns:repeat(3,1fr)}.stats article{align-items:flex-start;flex-direction:column}.auth-body{grid-template-columns:1fr}.auth-visual{display:none}.auth-shell{margin:40px auto}.report-stats{grid-template-columns:1fr 1fr}}
@media(max-width:680px){header{height:68px}.header-meta .primary.small{width:40px;padding:0;font-size:0}.header-meta .primary.small span{font-size:22px;margin:0}.welcome h1{font-size:27px}.stats{grid-template-columns:1fr}.stats article{flex-direction:row;align-items:center}.content{padding:22px 14px 35px}.title-row h1,.members-heading h1{font-size:27px}.card{padding:20px}.table-card{padding:0}.wallet-hero{padding:27px 23px}.auth-card{padding:28px 24px}.members-heading{display:block}.directory-toolbar{padding:18px}.product-grid{grid-template-columns:1fr}}
@media print{.sidebar,header,.primary,.inline-form{display:none!important}main{margin:0;width:100%}.content{max-width:none;padding:20px}.card,.stats article{box-shadow:none}}

/* Premium member registration */
.member-create-page{max-width:1280px;margin:0 auto}.create-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:28px}.create-heading h1{font:800 32px/1.2 Manrope;margin:7px 0 7px;letter-spacing:-.8px}.create-heading p{margin:0;max-width:650px;color:var(--muted);font-size:13px}.back-to-members{display:inline-block;margin-bottom:18px;color:#707a8c;text-decoration:none;font-size:11px;font-weight:600}.back-to-members:hover{color:var(--purple)}.create-progress{display:flex;align-items:center;min-width:390px;padding:16px 18px;border:1px solid #e2e5ec;border-radius:12px;background:#fff}.progress-item{display:flex;align-items:center;gap:10px;min-width:145px}.progress-item>span{width:29px;height:29px;border:1px solid #dce0e8;border-radius:50%;display:grid;place-items:center;color:#8490a2;font-size:10px;font-weight:800}.progress-item b,.progress-item small{display:block}.progress-item b{font-size:10px;color:#566174}.progress-item small{margin-top:2px;color:#9aa2b0;font-size:8px}.progress-item.active>span{border-color:var(--purple);background:var(--purple);color:#fff;box-shadow:0 0 0 4px var(--purple-soft)}.progress-item.active b{color:var(--ink)}.create-progress>i{width:35px;height:1px;margin:0 14px;background:#dfe3ea}.registration-card{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.75fr);background:#fff;border:1px solid #dfe3ea;border-radius:16px;box-shadow:0 14px 45px rgba(28,36,58,.07);overflow:hidden}.registration-main{padding:0 30px}.form-section{padding:28px 0}.form-section+.form-section{border-top:1px solid #e8eaf0}.form-section-head{display:flex;align-items:center;gap:13px}.form-section-head .section-icon{flex:0 0 34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#f0eeff;color:var(--purple);font-size:9px;font-weight:800}.form-section-head .section-icon.accent{background:#fff;color:#fff;background:linear-gradient(135deg,#7568e5,#574ac2)}.form-section-head h2{font:700 16px Manrope;margin:0;color:#20283a}.form-section-head p{font-size:10px;color:#8490a2;margin:3px 0 0}.required-note{margin-left:auto;color:#9aa2b1;font-size:9px}.registration-fields{margin-top:24px;gap:17px 20px}.registration-fields label>span,.placement-fields label>span,.placement-fields legend{font-size:10px;letter-spacing:.05px}.registration-fields input,.registration-fields select,.registration-fields textarea,.placement-fields input,.placement-fields select{height:44px;background:#fff;border-color:#d9dee7}.registration-fields textarea{height:82px;min-height:82px}.access-section{padding-bottom:30px}.access-fields{margin-top:20px}.placement-panel{padding:28px 26px;background:#fafafe;border-left:1px solid #e4e6ed;display:flex;flex-direction:column}.placement-guide{display:flex;gap:10px;margin:22px 0 20px;padding:12px 13px;background:#f0eeff;border:1px solid #e3dfff;border-radius:9px}.placement-guide>span{flex:0 0 18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#6c5fda;color:#fff;font:700 10px Georgia}.placement-guide p{margin:0;color:#62599d;font-size:9px;line-height:1.55}.placement-fields{margin-top:0;gap:16px}.manual-placement{display:grid;gap:16px}.manual-placement[hidden]{display:none}.professional-positions{gap:8px}.professional-positions label span{min-height:58px;background:#fff;border-radius:8px}.professional-positions label span b{font-size:14px}.professional-positions input:checked+span{box-shadow:0 0 0 2px #6558d91c}.placement-capacity{margin-top:auto;padding-top:22px;border-top:1px solid #e3e6ed}.placement-capacity div{display:flex;align-items:center;gap:8px}.placement-capacity div>span{width:8px;height:8px;border-radius:50%;background:#18a978;box-shadow:0 0 0 4px #e3f7f0}.placement-capacity b{font-size:10px}.placement-capacity small{display:block;margin:6px 0 0 16px;color:#8791a2;font-size:9px}.registration-footer{grid-column:1/-1;min-height:78px;padding:16px 24px 16px 30px;border-top:1px solid #e4e7ed;background:#fff;display:flex;align-items:center;justify-content:space-between}.registration-footer>div:first-child b,.registration-footer>div:first-child small{display:block}.registration-footer>div:first-child b{font-size:11px}.registration-footer>div:first-child small{margin-top:3px;color:#8a94a5;font-size:9px}.registration-actions{display:flex;align-items:center;gap:22px}.registration-actions>a{color:#788294;text-decoration:none;font-size:11px;font-weight:600}.registration-actions .primary{min-width:150px}.registration-actions .primary span{margin-left:8px}
@media(max-width:1100px){.create-heading{align-items:flex-start;flex-direction:column}.create-progress{width:100%;min-width:0}.registration-card{grid-template-columns:1fr}.placement-panel{border-left:0;border-top:1px solid #e4e6ed}.placement-capacity{margin-top:24px}}
@media(max-width:680px){.create-heading h1{font-size:27px}.create-progress{display:none}.registration-main{padding:0 20px}.placement-panel{padding:24px 20px}.registration-fields{grid-template-columns:1fr}.registration-footer{padding:18px 20px;align-items:stretch;gap:18px;flex-direction:column}.registration-actions{justify-content:space-between}.registration-actions .primary{min-width:155px}.required-note{display:none}}

/* Unified operational pages */
.genealogy-page,.profile-page{max-width:1280px;margin:0 auto}.genealogy-heading{align-items:center}.genealogy-search{width:360px}.genealogy-search label>span{display:block;margin-bottom:7px;color:#5b6577;font-size:10px;font-weight:700}.genealogy-search label>div{display:flex}.genealogy-search input{border-radius:8px 0 0 8px}.genealogy-search button{min-width:92px;border:0;border-radius:0 8px 8px 0;background:#20283a;color:#fff;font-size:10px;font-weight:700;cursor:pointer}.genealogy-summary{min-height:82px;margin-bottom:16px;padding:14px 20px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;display:flex;align-items:center;justify-content:space-between}.genealogy-summary>div:first-child{display:flex;align-items:center;gap:13px}.summary-icon{width:45px;height:45px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#7366e1,#5144b9);color:#fff;font-size:11px;font-weight:800}.genealogy-summary small,.genealogy-summary b,.genealogy-summary p{display:block}.genealogy-summary>div:first-child small{color:#8c96a8;font-size:8px;font-weight:700;letter-spacing:1px}.genealogy-summary>div:first-child b{margin-top:2px;font-size:13px}.genealogy-summary p{margin:1px 0 0;color:#7c8799;font-size:9px}.tree-metrics{display:flex}.tree-metrics>span{min-width:130px;padding:5px 20px;border-left:1px solid #e7e9ef}.tree-metrics b{font:700 13px Manrope}.tree-metrics small{margin-top:2px;color:#8b95a6;font-size:8px}.genealogy-workspace{background:#fff;border:1px solid #dfe3ea;border-radius:14px;box-shadow:0 10px 35px rgba(28,36,58,.055);overflow:hidden}.tree-toolbar{position:static;height:auto;min-height:76px;padding:17px 22px;border-bottom:1px solid #e6e8ee;display:flex;align-items:center;justify-content:space-between}.tree-toolbar h2{font:700 15px Manrope;margin:0}.tree-toolbar p{margin:3px 0 0;color:#8791a2;font-size:9px}.tree-toolbar .legend{justify-content:flex-end}.open-dot{background:#cbd1dc}.professional-tree{padding:18px 0 8px}.root-wrap{position:relative;padding-top:22px}.level-label{position:absolute;top:0;left:50%;transform:translateX(-50%);color:#959eac;font-size:7px;font-weight:700;letter-spacing:1.1px;white-space:nowrap}.professional-tree .tree-node{width:164px;min-height:134px;padding:18px 12px;background:#fff}.professional-tree .node-avatar{width:46px;height:46px}.professional-tree .child-level{margin:0 auto;max-width:900px}.professional-tree .position-tag{top:-25px;left:50%;transform:translateX(-50%);padding:3px 7px;background:#f3f4f7;border-radius:4px;color:#737e90;white-space:nowrap}.professional-tree .empty-node{width:164px;height:134px;background:#fbfbfd;border-color:#cfd4de}.professional-tree .empty-node>span{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#f0eeff;color:#6558d9;font-size:19px}.professional-tree .empty-node b{margin-top:9px;color:#697487;font-size:9px}.professional-tree .empty-node small{margin-top:2px;font-size:8px}.tree-footer{min-height:58px;padding:13px 22px;border-top:1px solid #e6e8ee;background:#fafbfc;display:flex;align-items:center;gap:14px}.tree-footer>span{padding:4px 7px;border-radius:5px;background:#eeecff;color:#6558d9;font-size:8px;font-weight:800}.tree-footer p{margin:0;color:#808b9d;font-size:9px}.tree-footer a{margin-left:auto;color:#5b4ec7;text-decoration:none;font-size:10px;font-weight:700}.profile-hero{min-height:118px;margin-bottom:20px;padding:22px 26px;background:linear-gradient(120deg,#242d49,#37315f);border-radius:15px;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 35px rgba(33,39,70,.14)}.profile-identity{display:flex;align-items:center;gap:16px}.profile-avatar{width:60px;height:60px;border-radius:15px;display:grid;place-items:center;background:#ffffff17;border:1px solid #ffffff24;font-weight:800}.profile-hero .eyebrow{color:#aaa4ed}.profile-hero h1{font:800 24px Manrope;margin:3px 0}.profile-hero p{margin:0;color:#bac1d1;font-size:10px}.profile-hero .member-status{background:#ffffff12;color:#8fe2c5;border:1px solid #ffffff1a}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.profile-form{padding:27px}.profile-form .fields{margin-top:24px}.profile-actions{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:20px}.profile-actions a{color:#7b8596;text-decoration:none;font-size:11px}.account-summary{align-self:start;padding:25px}.account-summary h2{font:700 17px Manrope;margin:5px 0 20px}.account-summary dl{margin:0}.account-summary dl>div{padding:13px 0;border-bottom:1px solid #e9ebf0;display:flex;justify-content:space-between;gap:15px}.account-summary dt{color:#8791a1;font-size:9px}.account-summary dd{margin:0;text-align:right;color:#3a4353;font-size:10px;font-weight:700}.account-summary>a{display:block;margin-top:20px;color:#5a4ec3;text-decoration:none;font-size:10px;font-weight:700}
/* Tables, commerce and management surfaces */
.title-row+.inline-form{margin-top:-5px;margin-bottom:20px}.inline-form.wrap{padding:18px;background:#fff;border-radius:12px}.inline-form.wrap input,.inline-form.wrap select{min-width:130px}.table-card{border-radius:13px}.table-wrap table th:first-child,.table-wrap table td:first-child{padding-left:22px}.table-wrap table th:last-child,.table-wrap table td:last-child{padding-right:22px}.table-wrap tbody tr:last-child td{border-bottom:0}.row-form{align-items:center}.row-form input,.row-form select{height:34px;min-height:34px;background:#fff}.row-form button:hover{background:#6558d9}.product-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.product{overflow:hidden}.product:after{content:'';position:absolute;right:-25px;bottom:-35px;width:100px;height:100px;border-radius:50%;background:#f5f3ff}.product>*{position:relative;z-index:1}.product strong{letter-spacing:-.4px}.report-stats article{position:relative;overflow:hidden}.report-stats article:before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background:#6558d9}.report-stats strong{font-size:21px}.wallet-hero input{height:42px}.wallet-hero button{font-size:10px;cursor:pointer}.grid-2>.card>h2{font:700 16px Manrope;margin:0 0 15px}.ledger:last-child{border-bottom:0}.auth-card input{height:45px}.auth-card .primary{margin-top:4px}.auth-card .back-link{padding:7px}.empty{font-size:11px}
@media(max-width:900px){.genealogy-heading{align-items:flex-start}.genealogy-search{width:100%}.genealogy-summary{align-items:flex-start;gap:18px;flex-direction:column}.tree-metrics{width:100%}.tree-metrics>span{flex:1;border-left:0;border-top:1px solid #e7e9ef;padding:12px 0}.profile-layout{grid-template-columns:1fr}.account-summary{width:100%}}
@media(max-width:620px){.tree-toolbar{align-items:flex-start;gap:15px;flex-direction:column}.tree-toolbar .legend{justify-content:flex-start}.tree-footer{align-items:flex-start;flex-wrap:wrap}.tree-footer a{margin-left:0;width:100%}.profile-hero{align-items:flex-start;gap:18px;flex-direction:column}.profile-form .fields{grid-template-columns:1fr}.profile-form .wide{grid-column:1}.tree-metrics>span{min-width:0}.inline-form.wrap{padding:15px}}

/* Clean member form revision */
.member-create-page{max-width:1160px}.create-heading{align-items:flex-start;margin-bottom:22px}.create-heading h1{font-size:28px;margin:5px 0}.create-heading p{font-size:12px}.back-to-members{margin-bottom:14px}.create-page-tag{margin-top:30px;padding:6px 10px;border:1px solid #dfe3ea;border-radius:6px;background:#fff;color:#667184;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.7px}.registration-card{grid-template-columns:minmax(0,1fr) 340px;border-radius:10px;box-shadow:0 4px 18px rgba(28,36,58,.045)}.registration-main{padding:0 28px}.form-section{padding:25px 0}.form-section-head{align-items:flex-start}.form-section-head>div{flex:1}.section-kicker{display:block;margin-bottom:4px;color:#6558d9;font-size:8px;font-weight:800;letter-spacing:1.2px}.form-section-head h2{font-size:15px}.form-section-head p{font-size:9px}.registration-fields{margin-top:20px;gap:15px 18px}.registration-fields input,.registration-fields select,.registration-fields textarea,.placement-fields input,.placement-fields select{height:41px;border-radius:6px}.registration-fields textarea{height:72px;min-height:72px}.placement-panel{padding:25px 24px;background:#f8f9fb}.placement-fields{margin-top:22px;gap:15px}.professional-positions label span{min-height:54px;border-radius:6px}.placement-capacity{margin-top:25px;padding:14px;border:1px solid #e1e4eb;border-radius:7px;background:#fff}.placement-capacity div>span{width:6px;height:6px;box-shadow:0 0 0 3px #e3f7f0}.placement-capacity small{margin-left:14px;line-height:1.55}.registration-footer{min-height:70px;padding:13px 20px 13px 28px;background:#fafbfc}.registration-actions .primary{min-width:142px;min-height:39px}.required-note{padding-top:5px}
@media(max-width:1050px){.registration-card{grid-template-columns:1fr}.placement-panel{border-left:0;border-top:1px solid #e4e6ed}.create-page-tag{display:none}}
@media(max-width:680px){.member-create-page{max-width:none}.registration-main{padding:0 18px}.placement-panel{padding:22px 18px}.create-heading h1{font-size:25px}}

/* Restrained enterprise theme — all portal pages */
:root{--ink:#182033;--muted:#717c8e;--line:#e2e6ed;--purple:#6255cf;--purple-dark:#5145b8;--purple-soft:#f0effb;--green:#168565;--bg:#f5f6f8;--shadow:0 2px 8px rgba(26,34,52,.035);--shadow-lg:0 8px 22px rgba(26,34,52,.07)}
.sidebar{background:#171d2b;box-shadow:none}.brand-mark{background:#6255cf;box-shadow:none;border-radius:9px}.sidebar nav a{border-radius:6px}.sidebar nav a.active{background:#6255cf;box-shadow:none}.sidebar nav a:hover{background:#222a3b}.sidebar nav a.active:hover{background:#6255cf}header{height:70px;box-shadow:none;padding:0 32px}.content{padding:30px 34px 44px}.primary{min-height:39px;padding:10px 16px;border-radius:6px;background:#6255cf;box-shadow:none}.primary:hover{background:#5145b8;box-shadow:none;transform:none}.card{border-radius:9px;box-shadow:var(--shadow)}.title-row{margin-bottom:22px}.title-row h1,.members-heading h1{font-size:27px;letter-spacing:-.45px}.title-row p,.members-heading p{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.25px}.welcome{min-height:178px;padding:30px 34px;border-radius:10px;background:#252d45;box-shadow:none}.welcome:before,.welcome:after{display:none}.welcome h1{font-size:28px}.welcome .primary{background:#fff;color:#2e3650!important;box-shadow:none}.stats{gap:14px;margin:16px 0}.stats article{min-height:100px;padding:18px 20px;border-radius:8px;box-shadow:none}.stats article:hover{box-shadow:var(--shadow);transform:none}.stat-icon{width:41px;height:41px;border-radius:8px;font-size:11px;font-weight:800}.stats strong{font-size:23px}.grid-2{gap:16px}.grid-2 .card{padding:22px}.card-head h2,.section-title h2{font-size:15px}.actions a{padding:13px 3px}.actions a:hover{transform:none}.actions a>span{width:31px;height:31px;border-radius:6px;font-size:9px;font-weight:800}.table-card,.members-card{border-radius:9px;box-shadow:none}.directory-toolbar{min-height:74px;padding:15px 20px}.directory-toolbar h2{font-size:14px}.member-search{height:38px;border-radius:6px}.member-search button{border-radius:0 5px 5px 0}.member-table td{height:66px}.member-person>span{border-radius:7px}.member-status,.badge{border-radius:5px}.product-grid{gap:14px}.product{min-height:185px;padding:20px;border-radius:9px}.product:hover{transform:none;box-shadow:var(--shadow-lg)}.product:after{display:none}.product-icon{width:40px;height:40px;border-radius:7px}.product h2{font-size:14px}.product strong{font-size:18px}.inline-form,.inline-form.wrap{padding:16px;border-radius:9px;box-shadow:none}.table-card .card-head{padding:17px 20px}th{height:40px;padding:0 15px}td{height:58px;padding:11px 15px}.table-wrap table th:first-child,.table-wrap table td:first-child{padding-left:18px}.table-wrap table th:last-child,.table-wrap table td:last-child{padding-right:18px}.row-form button{background:#2c3447;border-radius:5px}.wallet-hero{min-height:165px;padding:27px 30px;border-radius:9px;background:#6255cf;box-shadow:none}.wallet-hero strong{font-size:32px}.ledger{padding:11px 0}.txn{border-radius:6px}.genealogy-summary,.genealogy-workspace{border-radius:9px;box-shadow:none}.summary-icon,.node-avatar{border-radius:8px}.tree-toolbar{min-height:68px}.professional-tree .tree-node{border-radius:8px;box-shadow:var(--shadow)}.professional-tree .tree-node:hover{transform:none;box-shadow:var(--shadow-lg)}.professional-tree .empty-node{border-radius:8px}.profile-hero{min-height:105px;padding:19px 22px;border-radius:9px;background:#252d45;box-shadow:none}.profile-avatar{width:52px;height:52px;border-radius:9px}.profile-hero h1{font-size:21px}.profile-layout{gap:15px}.profile-form,.account-summary{padding:22px}.auth-visual{background:#20283b}.auth-visual h2{font-size:48px}.auth-card{border-radius:9px;box-shadow:0 8px 28px rgba(29,36,55,.07)}.auth-card h1{font-size:24px}.demo-box{border-radius:6px}.alert{border-radius:7px}.search button{border-radius:6px}.positions label span{border-radius:6px}.tree-node,.empty-node{border-radius:8px}.pagination a,.pagination span{border-radius:4px!important}
@media(max-width:900px){header{padding:0 18px}.content{padding:24px 18px 36px}.stats{grid-template-columns:1fr}.stats article{flex-direction:row}.welcome{padding:26px}.title-row h1,.members-heading h1{font-size:25px}}
@media(max-width:520px){.content{padding:20px 12px 32px}.welcome{padding:23px 20px}.wallet-hero{padding:23px 20px}.grid-2 .card{padding:18px}.auth-card{padding:25px 21px}}

/* KYC review workspace */
.kyc-page{max-width:1280px;margin:0 auto}.kyc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.kyc-stats article{height:76px;padding:14px 17px;background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:13px}.kyc-stat-mark{width:9px;height:36px;border-radius:3px;background:#d2d7e0}.kyc-stat-mark.pending{background:#e3a936}.kyc-stat-mark.approved{background:#23a77a}.kyc-stat-mark.rejected{background:#d56572}.kyc-stat-mark.total{background:#6255cf}.kyc-stats small,.kyc-stats strong{display:block}.kyc-stats small{color:#7d8798;font-size:9px}.kyc-stats strong{font:800 21px Manrope;margin-top:1px}.kyc-review-card,.kyc-upload{background:#fff;border:1px solid #dfe3ea;border-radius:9px;overflow:hidden}.kyc-card-head{position:static;height:auto;min-height:68px;padding:14px 19px;border-bottom:1px solid #e4e7ed;display:flex;align-items:center;justify-content:space-between}.kyc-card-head h2,.kyc-upload-head h2{font:700 15px Manrope;margin:0}.kyc-card-head p,.kyc-upload-head p{margin:3px 0 0;color:#8993a3;font-size:9px}.queue-note{padding:5px 8px;border:1px solid #e1e4e9;border-radius:5px;color:#6e7889;font-size:8px;font-weight:700}.queue-note i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#dda435}.kyc-table th{height:39px}.kyc-table td{height:66px}.kyc-person{display:flex;align-items:center;gap:10px}.kyc-person>span{width:34px;height:34px;border-radius:7px;display:grid;place-items:center;background:#efedff;color:#6255cf;font-size:9px;font-weight:800}.kyc-person b,.kyc-person small{display:block}.kyc-person b{font-size:11px}.kyc-person small{font-size:8px}.document-type{display:inline-block;padding:4px 6px;border:1px solid #dfe3ea;border-radius:4px;color:#596476;font-size:8px;font-weight:800}.document-number{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:.2px}.kyc-review-form{display:grid;grid-template-columns:100px 125px 64px;gap:6px;align-items:center}.kyc-review-form select,.kyc-review-form input{height:33px;min-height:33px;padding:6px 8px;border-radius:5px;font-size:10px}.kyc-review-form button{height:33px;border:0;border-radius:5px;background:#283146;color:#fff;font-size:9px;font-weight:700;cursor:pointer}.kyc-review-form button:hover{background:#6255cf}.kyc-empty{padding:45px 20px;text-align:center}.kyc-empty>span{width:35px;height:35px;margin:0 auto 9px;border-radius:8px;display:grid;place-items:center;background:#f0f1f4;color:#8b95a5;font-weight:800}.kyc-empty b{display:block;font-size:11px}.kyc-empty p{margin:3px 0 0;color:#8b95a5;font-size:9px}.kyc-upload{margin-bottom:17px}.kyc-upload-head{padding:17px 19px;border-bottom:1px solid #e4e7ed}.kyc-upload-fields{padding:17px 19px;display:grid;grid-template-columns:.75fr 1fr 1fr auto;gap:12px;align-items:end}.kyc-upload-fields label>span{display:block;margin-bottom:6px;font-size:9px;font-weight:700}.kyc-upload-fields input,.kyc-upload-fields select{height:39px}.kyc-upload-fields .primary{height:39px}
/* Keep full navigation on tablet/desktop widths; use drawer only on small screens. */
@media(min-width:761px) and (max-width:900px){.shell{display:flex}.sidebar{transform:none;width:240px}.menu{display:none}main{margin-left:240px;width:calc(100% - 240px)}.content{padding:24px}.header-meta{margin-left:auto}.live-indicator{display:flex}}
@media(max-width:1000px){.kyc-stats{grid-template-columns:1fr 1fr}.kyc-review-form{grid-template-columns:90px 110px 58px}.kyc-table{min-width:930px}}
@media(max-width:760px){.kyc-stats{grid-template-columns:1fr 1fr}.kyc-upload-fields{grid-template-columns:1fr}.kyc-upload-fields .primary{width:100%}}
@media(max-width:480px){.kyc-stats{grid-template-columns:1fr}.kyc-card-head{align-items:flex-start;gap:10px;flex-direction:column}}

/* Full-screen KYC sizing */
body:has(.kyc-page) .content{max-width:none;width:100%;padding:38px 46px 55px}.kyc-page{max-width:none;width:100%}.kyc-page .title-row{margin-bottom:28px}.kyc-page .title-row h1{font-size:34px;margin-top:7px}.kyc-page .title-row p{font-size:14px}.kyc-page .eyebrow{font-size:10px}.kyc-stats{gap:16px;margin-bottom:22px}.kyc-stats article{height:96px;padding:18px 22px;border-radius:10px}.kyc-stat-mark{width:10px;height:48px}.kyc-stats small{font-size:11px}.kyc-stats strong{font-size:28px;margin-top:2px}.kyc-review-card{border-radius:11px}.kyc-card-head{min-height:84px;padding:18px 24px}.kyc-card-head h2{font-size:19px}.kyc-card-head p{font-size:11px}.queue-note{padding:7px 10px;font-size:10px}.kyc-table{font-size:14px}.kyc-table th{height:50px;padding:0 22px;font-size:10px}.kyc-table td{height:82px;padding:15px 22px}.kyc-person{gap:13px}.kyc-person>span{width:43px;height:43px;border-radius:9px;font-size:11px}.kyc-person b{font-size:14px}.kyc-person small{font-size:10px}.document-type{padding:6px 8px;font-size:10px}.document-number{font-size:13px}.kyc-table .badge{padding:6px 9px;font-size:10px}.kyc-table td>small{font-size:10px}.kyc-review-form{grid-template-columns:125px minmax(130px,1fr) 76px;gap:8px;min-width:365px}.kyc-review-form select,.kyc-review-form input{height:40px;min-height:40px;padding:8px 10px;font-size:12px}.kyc-review-form button{height:40px;font-size:11px}.kyc-upload-head{padding:21px 24px}.kyc-upload-head h2{font-size:18px}.kyc-upload-head p{font-size:11px}.kyc-upload-fields{padding:21px 24px;gap:16px}.kyc-upload-fields label>span{font-size:11px}.kyc-upload-fields input,.kyc-upload-fields select,.kyc-upload-fields .primary{height:44px}
@media(max-width:1200px){body:has(.kyc-page) .content{padding:30px 28px 44px}.kyc-page .title-row h1{font-size:30px}.kyc-table{min-width:1050px}}
@media(max-width:760px){body:has(.kyc-page) .content{padding:24px 15px 36px}.kyc-page .title-row h1{font-size:27px}.kyc-stats article{height:82px}.kyc-stats strong{font-size:23px}}

/* Large-display scale across the complete portal */
@media(min-width:1101px){
  .content{max-width:none;width:100%;padding:38px 46px 56px}
  .content>*,.members-page,.member-create-page,.genealogy-page,.profile-page{max-width:none;width:100%}
  .title-row,.members-heading,.create-heading{margin-bottom:28px}
  .title-row h1,.members-heading h1,.create-heading h1{font-size:34px}
  .title-row p,.members-heading p,.create-heading p{font-size:14px}
  .eyebrow{font-size:10px}
  .welcome{min-height:220px;padding:38px 42px}
  .welcome h1{font-size:35px}.welcome p{font-size:15px}
  .stats{gap:18px;margin:20px 0}.stats article{min-height:122px;padding:23px 25px}
  .stats small{font-size:12px}.stats strong{font-size:30px}.stats em{font-size:11px}.stat-icon{width:50px;height:50px}
  .card{padding:28px}.card-head h2,.section-title h2{font-size:19px}.card-head a{font-size:13px}
  .grid-2{gap:20px}.grid-2 .card{padding:28px}
  .actions a{min-height:62px;font-size:14px}.actions b{font-size:14px}.actions small{font-size:11px}.actions a>span{width:38px;height:38px}
  .directory-toolbar{min-height:92px;padding:20px 25px}.directory-toolbar h2{font-size:18px}.directory-toolbar p{font-size:12px}
  .member-search{width:460px;height:44px}.member-search input{font-size:13px}.member-search button{font-size:12px}
  table,.member-table{font-size:14px}th,.member-table th{height:50px;font-size:10px;padding-left:22px;padding-right:22px}td,.member-table td{height:78px;padding:15px 22px}
  .member-person>span{width:44px;height:44px}.member-person b{font-size:14px}.member-person small,.member-table td small{font-size:11px}
  .cell-primary,.network-primary,.rank-text{font-size:13px}.member-status,.badge{font-size:11px;padding:6px 9px}.row-action{font-size:12px}.status-action{font-size:11px}
  input,select,textarea{min-height:46px;font-size:13px}.fields label>span,fieldset legend{font-size:12px}.fields{gap:20px;margin-top:24px}
  .inline-form,.inline-form.wrap{padding:21px}.row-form input,.row-form select{height:40px;min-height:40px;font-size:12px}.row-form button{min-height:40px;font-size:11px}
  .registration-card{grid-template-columns:minmax(0,1fr) 390px}.registration-main{padding:0 34px}.form-section{padding:32px 0}.form-section-head h2{font-size:19px}.form-section-head p{font-size:11px}.section-kicker{font-size:9px}
  .registration-fields input,.registration-fields select,.placement-fields input,.placement-fields select{height:47px}.registration-fields textarea{height:92px}.placement-panel{padding:32px 30px}.registration-footer{min-height:82px;padding:16px 28px 16px 34px}
  .profile-hero{min-height:135px;padding:25px 30px}.profile-avatar{width:66px;height:66px}.profile-hero h1{font-size:28px}.profile-hero p{font-size:12px}.profile-layout{grid-template-columns:minmax(0,1fr) 360px;gap:20px}.profile-form,.account-summary{padding:30px}
  .genealogy-summary{min-height:98px;padding:18px 24px}.summary-icon{width:52px;height:52px}.tree-toolbar{min-height:82px;padding:19px 25px}.tree-toolbar h2{font-size:18px}.tree-toolbar p{font-size:11px}.professional-tree{padding:28px 0 18px}.professional-tree .tree-node,.professional-tree .empty-node{width:185px;min-height:150px}.professional-tree .node-avatar{width:52px;height:52px}.tree-footer{min-height:68px;padding:15px 25px}
  .product-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.product{min-height:230px;padding:26px}.product-icon{width:48px;height:48px}.product h2{font-size:18px}.product p,.product small{font-size:12px}.product strong{font-size:24px}
  .wallet-hero{min-height:205px;padding:34px 38px}.wallet-hero strong{font-size:42px}.wallet-hero small{font-size:12px}.ledger{min-height:66px;font-size:13px}.grid-2>.card>h2{font-size:19px}
  .report-stats strong{font-size:26px}
}

/* Shared portal footer */
.shell>main{min-height:100vh;display:flex;flex-direction:column}.shell>main>.content{flex:1}.portal-footer{min-height:76px;margin:0 34px;padding:17px 4px;border-top:1px solid #dde2e9;display:flex;align-items:center;justify-content:space-between;background:transparent}.portal-footer>div{display:flex;align-items:center;gap:10px}.footer-mark{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;background:#e9e7fa;color:#6255cf;font:800 12px Manrope}.portal-footer p{margin:0}.portal-footer b,.portal-footer small{display:block}.portal-footer b{color:#4f596b;font-size:10px}.portal-footer small{margin-top:2px;color:#929baa;font-size:8px}.portal-footer nav{display:flex;align-items:center;gap:12px}.portal-footer nav a{color:#747f90;text-decoration:none;font-size:9px;font-weight:600}.portal-footer nav a:hover{color:#6255cf}.portal-footer nav span{width:3px;height:3px;border-radius:50%;background:#bec4cd}.auth-foot{display:flex;align-items:center;justify-content:center;gap:13px}.auth-foot a{color:#707b8c;text-decoration:none}.auth-foot a:hover{color:#6255cf}
@media(min-width:1101px){.portal-footer{margin:0 46px}}
@media(max-width:760px){.portal-footer{margin:0 15px;padding:17px 0;align-items:flex-start;gap:14px;flex-direction:column}.portal-footer nav{padding-left:40px}}

/* Member table actions */
.member-actions{gap:8px;flex-wrap:nowrap}.member-actions form{margin:0}.view-action{height:34px;padding:0 11px;border:1px solid #d7d3f4;border-radius:6px;background:#f5f4fc;color:#5549bd;font-size:10px;text-decoration:none;display:inline-flex;align-items:center;gap:8px}.view-action span{font-size:10px}.view-action b{font-size:13px;font-weight:500;line-height:1}.view-action:hover{border-color:#6255cf;background:#6255cf;color:#fff}.member-actions .status-action{height:34px;padding:0 10px;border:1px solid #dfe3e9;border-radius:6px;background:#fff;color:#687386;font-size:9px;font-weight:700;display:inline-flex;align-items:center;gap:6px}.member-actions .status-action i{width:6px;height:6px;border-radius:50%;background:#d26a75}.member-actions .status-action:hover{border-color:#d3a6ac;background:#fff6f7;color:#a13e49}.member-actions .activate-action i{background:#20a678}.member-actions .activate-action:hover{border-color:#a5d9c8;background:#f2fbf8;color:#147358}
@media(min-width:1101px){.view-action,.member-actions .status-action{height:38px;padding-left:13px;padding-right:13px}.view-action span,.member-actions .status-action{font-size:11px}}

/* Sidebar section icons */
.sidebar nav a .nav-icon{width:23px;height:23px;border:0;border-radius:0;background:transparent;display:grid;place-items:center;color:#8f99ad;font-family:"Segoe UI Symbol","Arial Unicode MS",sans-serif;font-size:16px;font-weight:400;line-height:1}.sidebar nav a:hover .nav-icon{color:#d8dce5}.sidebar nav a.active .nav-icon{border:0;background:transparent;color:#fff}.sidebar nav a .nav-overview{font-size:20px;transform:translateY(-1px)}.sidebar nav a .nav-tree{font-size:18px}.sidebar nav a .nav-members{font-size:18px}.sidebar nav a .nav-kyc{font-size:17px}.sidebar nav a .nav-products{font-size:17px}.sidebar nav a .nav-orders{font-size:18px}.sidebar nav a .nav-wallet{font-size:16px}.sidebar nav a .nav-reports{font-size:17px}

/* Member password management */
.password-action{height:34px;padding:0 10px;border:1px solid #dfe3e9;border-radius:6px;background:#fff;color:#626d7f;text-decoration:none;font-size:9px;font-weight:700;display:inline-flex;align-items:center}.password-action:hover{border-color:#bdb7e7;background:#f6f5fc;color:#5549bd}.profile-layout>aside{display:flex;flex-direction:column;gap:15px}.profile-layout>aside .account-summary{width:100%}.password-card{padding:22px;scroll-margin-top:90px}.password-card h2{font:700 16px Manrope;margin:5px 0 3px}.password-card>p{margin:0 0 17px;color:#7f8999;font-size:10px}.password-card label{display:block;margin-bottom:12px}.password-card label>span{display:block;margin-bottom:6px;font-size:10px;font-weight:700}.password-card input{height:41px}.password-card .primary{margin-top:3px}
@media(min-width:1101px){.password-action{height:38px;padding:0 13px;font-size:11px}.password-card{padding:26px}.password-card h2{font-size:18px}.password-card>p{font-size:11px}}

/* Profile network and activation details */
.profile-network-card{margin-top:18px}.profile-three-legs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.profile-leg{min-height:112px;border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;grid-template-columns:34px 1fr;align-items:start;gap:2px 10px}.profile-leg>span{grid-row:1/4;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#efedff;color:#6255cf;font-weight:800}.profile-leg small,.profile-leg em{color:var(--muted);font-size:9px;font-style:normal}.profile-leg a{display:grid;text-decoration:none;color:inherit}.profile-leg.available{background:#fafbfc}.profile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-upline{display:grid;gap:8px}.profile-upline>div{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid var(--line)}.profile-upline>div>span{width:29px;height:29px;border-radius:8px;background:#efedff;color:#6255cf;display:grid;place-items:center;font-size:9px;font-weight:800}.profile-upline a{display:grid;text-decoration:none;color:inherit}.profile-upline small{color:var(--muted);font-size:9px}.profile-verification{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-verification>div{border:1px solid var(--line);border-radius:9px;padding:12px}.profile-verification>div>span,.profile-verification>div>small{display:block}.profile-verification>div>span{font-size:9px;font-weight:700;margin-bottom:6px}.profile-verification>div>small{font-size:9px;color:var(--muted);margin-top:6px;word-break:break-all}@media(max-width:800px){.profile-three-legs,.profile-detail-grid{grid-template-columns:1fr}}

/* Logout confirmation */
.logout-dialog{width:min(430px,calc(100% - 30px));padding:0;border:0;border-radius:12px;background:transparent;color:var(--ink);box-shadow:0 24px 70px rgba(20,27,45,.24)}.logout-dialog::backdrop{background:rgba(17,23,36,.62);backdrop-filter:blur(3px)}.logout-modal{position:relative;margin:0;padding:34px 32px 28px;background:#fff;text-align:center}.logout-close{position:absolute;top:13px;right:14px;width:31px;height:31px;border:0;border-radius:6px;background:#f3f4f7;color:#7a8495;font-size:21px;line-height:1;cursor:pointer}.logout-close:hover{background:#e9eaf0;color:#343d4e}.logout-icon{width:54px;height:54px;margin:0 auto 18px;border-radius:12px;display:grid;place-items:center;background:#f0eeff;color:#6255cf;font-size:25px;font-weight:700}.logout-modal h2{margin:0 0 9px;font:800 22px Manrope}.logout-modal p{max-width:340px;margin:0 auto;color:#737e90;font-size:12px;line-height:1.65}.logout-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}.logout-actions button{height:43px;border-radius:7px;font:700 11px 'DM Sans';cursor:pointer}.logout-cancel{border:1px solid #dfe3ea;background:#fff;color:#5f6a7c}.logout-cancel:hover{background:#f7f8fa}.logout-confirm{border:1px solid #6255cf;background:#6255cf;color:#fff;box-shadow:0 7px 16px rgba(98,85,207,.2)}.logout-confirm:hover{background:#5549bd}@media(max-width:480px){.logout-modal{padding:31px 21px 22px}.logout-actions{grid-template-columns:1fr}.logout-confirm{grid-row:1}.logout-cancel{grid-row:2}}

/* Admin order notifications */
.order-notification{position:relative;width:38px;height:38px;margin-left:auto;border:1px solid #dfe3ea;border-radius:8px;display:grid;place-items:center;background:#fff;color:#596476;text-decoration:none;font-size:17px;transition:.15s}.order-notification:hover{border-color:#bdb7e7;background:#f6f5fc;color:#5549bd}.order-notification>b{position:absolute;top:-6px;right:-7px;min-width:19px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:10px;display:grid;place-items:center;background:#d94e5d;color:#fff;font:800 9px 'DM Sans';box-sizing:border-box}.header-meta:has(.order-notification) .live-indicator{margin-left:0}@media(max-width:520px){.order-notification{width:36px;height:36px}.header-meta:has(.order-notification) .live-indicator{display:none}}
.notification-row{border-bottom:1px solid var(--line)}.notification-row:last-of-type{border:0}.notification-row button{width:100%;padding:17px 8px;border:0;background:#fff;display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer}.notification-row.unread button{background:#f7f6ff}.notification-row button>span:nth-child(2){flex:1}.notification-row b,.notification-row small{display:block}.notification-row b{font-size:12px}.notification-row small{margin-top:4px;color:var(--muted);font-size:10px}.notification-row i{color:var(--purple);font-size:10px;font-style:normal}.notification-dot{width:8px;height:8px;border-radius:50%;background:#cbd0d9}.notification-row.unread .notification-dot{background:var(--purple)}

/* Grow Tree visual system */
:root{--ink:#17231f;--muted:#718078;--line:#e3e9e6;--purple:#177b60;--purple-soft:#eaf5f0;--green:#168463;--bg:#f4f7f5;--white:#fff;--shadow:0 10px 30px rgba(24,57,46,.06);--forest:#0e352b;--forest-2:#154b3d;--sage:#dcece5;--amber:#bd7b22}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#0d3329 0%,#102b25 100%);border-right:1px solid rgba(255,255,255,.06);box-shadow:8px 0 28px rgba(14,53,43,.08)}
.brand{padding-bottom:28px}.brand-mark,.footer-mark{background:linear-gradient(135deg,#42b98c,#168463);color:#fff;box-shadow:0 8px 20px rgba(22,132,99,.25);font-size:12px;letter-spacing:-.5px}.brand b{font-size:16px;letter-spacing:-.2px}.brand small{color:#8fb2a5}.nav-label{color:#6f9688}.sidebar nav a{color:#afc5bd;border:1px solid transparent}.sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff}.sidebar nav a.active{background:linear-gradient(90deg,rgba(50,169,127,.28),rgba(50,169,127,.14));border-color:rgba(107,210,173,.2);color:#fff;box-shadow:inset 3px 0 0 #45c795}.sidebar nav a.active .nav-icon{color:#8ce0c1}.sidebar nav a .nav-icon{color:#88aa9d}.side-user{border-top-color:rgba(255,255,255,.1)}.avatar{background:#235044;color:#dff3ea}.side-user small{color:#81a497}
header{height:76px;border-color:#e2e8e5;padding:0 38px;box-shadow:0 1px 0 rgba(23,56,46,.02)}header b{color:#22312c}.eyebrow{color:#77877f}.header-meta{gap:11px}.live-indicator{color:#65776f}.live-indicator i{background:#1ca878;box-shadow:0 0 0 3px #dff4eb}
.primary{background:#177b60;border:1px solid #177b60;border-radius:8px;box-shadow:0 7px 16px rgba(23,123,96,.18);transition:.15s}.primary:hover{background:#106c52;transform:translateY(-1px)}.order-notification:hover{border-color:#9fcbbb;background:#edf7f2;color:#126d53}.order-notification>b{background:#df6b55}
.content{padding-top:34px}.card,.stats article,.members-card,.kyc-review-card,.kyc-upload{border-color:#dfe6e2;box-shadow:0 4px 18px rgba(23,55,45,.04)}.card{border-radius:11px}.welcome{background:linear-gradient(120deg,#103d31,#1d684f);border-radius:13px;box-shadow:0 14px 35px rgba(15,66,51,.16)}.welcome:after{border-color:rgba(255,255,255,.06)}.welcome .primary{color:#155641!important}.stat-icon.violet,.product-icon,.section-title>span{background:#e6f3ed;color:#177b60}.stat-icon.green{background:#e4f5ed}.stat-icon.amber{background:#fff2dc;color:#ad6d16}
.title-row h1,.members-heading h1,.create-heading h1{color:#172c25;letter-spacing:-.7px}.pill{border-color:rgba(255,255,255,.18)}table th{background:#f7f9f8;color:#718078}td{border-bottom-color:#e8edea}.member-table tbody tr:hover{background:#f5faf7}.badge.pending,.badge.processing{background:#fff3df;color:#9a641b}.badge.approved,.badge.paid,.badge.completed,.badge.active{background:#e5f5ed;color:#126d52}.member-status{background:#e5f5ed;color:#126d52}
input,select,textarea{border-color:#d8e1dc;border-radius:7px}input:focus,select:focus,textarea:focus{border-color:#2a9676;box-shadow:0 0 0 3px rgba(42,150,118,.12)}.search button,.row-form button{background:#173d32}.wallet-hero{background:linear-gradient(120deg,#125841,#1d8060);border-radius:12px}.txn.credit{background:#e5f5ed;color:#137354}.profile-hero{background:linear-gradient(120deg,#123a30,#22594a)}.node-avatar,.member-person>span{background:linear-gradient(145deg,#e9f5ef,#d9eee4);color:#176f56}.professional-tree .node-avatar{background:linear-gradient(135deg,#218663,#135c47);color:#fff}
.auth-body{background:#f4f7f5;place-items:stretch}.auth-visual{width:100%;background:linear-gradient(150deg,#0d3329,#17634c)}.auth-card{border-color:#dde6e1;box-shadow:0 15px 45px rgba(20,56,45,.08)}.auth-brand .brand-mark{width:42px;height:42px}.demo-box,.info{background:#edf7f2;color:#356b59}.auth-row a,.back-link{color:#177b60}
.notification-row.unread button{background:#f0f8f4}.notification-row.unread .notification-dot{background:#177b60}.notification-row i{color:#177b60}.logout-icon{background:#e8f5ef;color:#177b60}.logout-confirm{background:#177b60;border-color:#177b60;box-shadow:0 7px 16px rgba(23,123,96,.2)}.logout-confirm:hover{background:#106c52}.portal-footer{border-color:#dce5e0}.footer-mark{box-shadow:none}
@media(max-width:760px){header{padding:0 15px}.content{padding-top:23px}.sidebar{box-shadow:12px 0 35px rgba(7,32,25,.25)}}
.order-refund{margin-top:7px}.order-refund input{width:105px}.table-card .row-action{margin-top:7px}.table-card .text-button{color:#a44b4b;font-size:10px}
.upi-review{min-width:190px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.upi-review>small{grid-column:1/-1;padding:6px 8px;border-radius:5px;background:#f0f5f2;color:#52645d;font-family:ui-monospace,monospace}.upi-review form{margin:0}.upi-review button{width:100%;height:32px;border-radius:5px;font-size:9px;font-weight:700;cursor:pointer}.approve-payment{border:0;background:#177b60;color:#fff}.reject-payment{border:1px solid #e2b8b8;background:#fff5f5;color:#a54343}
.commission-plans .card{padding:0;overflow:hidden}.commission-plans .card-head{padding:22px 24px;border-bottom:1px solid var(--line)}.commission-plans .card-head small{color:var(--muted);font-size:10px}.commission-rule-list>label{min-height:72px;padding:14px 24px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 115px 90px;align-items:center;gap:15px}.commission-rule-list b,.commission-rule-list small{display:block}.commission-rule-list b{font-size:12px}.commission-rule-list small{color:var(--muted);font-size:9px;margin-top:3px}.rate-input{position:relative}.rate-input input{padding-right:29px;text-align:right}.rate-input i{position:absolute;right:12px;top:14px;color:var(--muted);font-style:normal}.rule-toggle{font-size:10px;color:var(--muted)}.rule-toggle input{width:auto;min-height:0;margin-right:5px}.plan-footer{padding:18px 24px;display:flex;align-items:center;justify-content:space-between}.plan-footer>small{color:var(--muted)}@media(max-width:600px){.commission-rule-list>label{grid-template-columns:1fr 90px}.rule-toggle{grid-column:1/-1}.plan-footer{align-items:stretch;gap:15px;flex-direction:column}}
.registration-card.registration-simple{max-width:1180px;margin:0 auto;grid-template-columns:1fr;border-radius:14px;overflow:hidden;background:#fff}.registration-simple .registration-main{max-width:none;width:100%;margin:0;padding:28px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);grid-template-rows:auto auto;gap:18px;background:#f6f9f7}.registration-simple .form-section{margin:0;padding:25px;border:1px solid #dde7e2;border-radius:11px;background:#fff;box-shadow:0 5px 20px rgba(19,61,48,.04)}.registration-simple .member-personal-panel{grid-row:1/3}.registration-simple .member-payment-panel,.registration-simple .member-access-panel{padding:23px}.registration-simple .form-section-head{padding-bottom:17px;border-bottom:1px solid #e7ece9}.registration-simple .form-section-head h2{font-size:17px}.registration-simple .registration-fields{gap:15px;margin-top:18px}.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{grid-template-columns:1fr}.registration-simple .member-payment-panel .wide{grid-column:1}.registration-simple input,.registration-simple select,.registration-simple textarea{background:#fff}.registration-simple textarea{min-height:105px}.registration-simple .registration-footer{grid-column:1;min-height:78px;padding:15px 28px;border-top:1px solid #dfe7e3;background:#fff}.registration-simple .registration-footer>div:first-child{max-width:520px}.registration-simple .registration-actions .primary{min-width:150px}.registration-simple .section-kicker{color:#177b60}@media(max-width:950px){.registration-simple .registration-main{grid-template-columns:1fr}.registration-simple .member-personal-panel{grid-row:auto}.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{grid-template-columns:1fr 1fr}.registration-simple .member-payment-panel .wide{grid-column:1/-1}}@media(max-width:600px){.registration-simple .registration-main{padding:12px;gap:12px}.registration-simple .form-section{padding:19px}.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{grid-template-columns:1fr}.registration-simple .member-payment-panel .wide{grid-column:1}.registration-simple .registration-footer{padding:15px 18px;align-items:stretch;gap:15px;flex-direction:column}.registration-simple .registration-actions{justify-content:space-between}}
.registration-simple .registration-wizard{grid-column:1;padding:21px 28px;border-bottom:1px solid #dfe7e3;display:flex;align-items:center;justify-content:center;background:#fff}.registration-wizard>i{width:80px;height:1px;margin:0 18px;background:#dce5e0}.wizard-step{padding:4px;border:0;background:transparent;display:flex;align-items:center;gap:10px;color:#87948e;text-align:left;cursor:pointer}.wizard-step:hover{color:#176f56}.wizard-step>span{width:32px;height:32px;border:1px solid #d6e0db;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:11px;font-weight:800}.wizard-step b,.wizard-step small{display:block}.wizard-step b{font-size:11px}.wizard-step small{font-size:8px;margin-top:2px}.wizard-step.active{color:#176f56}.wizard-step.active>span{border-color:#177b60;background:#177b60;color:#fff;box-shadow:0 0 0 4px #e6f3ed}.wizard-step.complete>span{border-color:#75bca3;background:#e8f5ef;color:#177b60}.registration-simple .registration-main{display:block;max-width:900px;margin:auto}.registration-simple .member-personal-panel{grid-row:auto}.registration-simple .wizard-panel[hidden]{display:none}.registration-simple .wizard-panel{min-height:365px}.wizard-back{min-height:42px;padding:10px 15px;border:1px solid #d9e2dd;border-radius:8px;background:#fff;color:#596861;cursor:pointer}.registration-actions{gap:10px}@media(max-width:700px){.registration-simple .registration-wizard{padding:18px 14px}.registration-wizard>i{width:24px;margin:0 8px}.wizard-step div{display:none}.wizard-step>span{width:29px;height:29px}.registration-simple .wizard-panel{min-height:0}}

/* Full-workspace registration wizard */
.member-create-page{max-width:none!important;width:100%}.member-create-page .create-heading{margin-bottom:20px}.registration-card.registration-simple{max-width:none;width:100%;min-height:calc(100vh - 235px);margin:0;border:0;border-radius:0;box-shadow:none;background:#fff;overflow:visible}.registration-simple .registration-wizard{min-height:86px;justify-content:flex-start;padding-left:42px;padding-right:42px;border-top:1px solid #dfe7e3}.registration-wizard>i{flex:0 1 150px}.registration-simple .registration-main{max-width:none;width:100%;padding:0;background:#fff}.registration-simple .wizard-panel{min-height:500px;margin:0;padding:38px 42px;border:0;border-radius:0;background:#fff;box-shadow:none}.registration-simple .wizard-panel .form-section-head{max-width:none;padding-bottom:22px}.registration-simple .wizard-panel .form-section-head h2{font-size:21px}.registration-simple .wizard-panel .form-section-head p{font-size:11px}.registration-simple .member-personal-panel .registration-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px;row-gap:23px}.registration-simple .member-personal-panel .wide{grid-column:1/-1}.registration-simple .member-personal-panel textarea{min-height:130px}.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px;row-gap:23px}.registration-simple .member-payment-panel .wide{grid-column:1/-1}.registration-simple .registration-footer{padding-left:42px;padding-right:42px;border-bottom:1px solid #dfe7e3}.registration-simple [hidden]{display:none!important}@media(min-width:1500px){.registration-simple .wizard-panel{min-height:550px;padding:44px 50px}.registration-simple .registration-wizard,.registration-simple .registration-footer{padding-left:50px;padding-right:50px}.registration-simple input,.registration-simple select{min-height:50px}.registration-simple textarea{min-height:150px}}@media(max-width:800px){.registration-card.registration-simple{min-height:0}.registration-simple .registration-wizard{min-height:70px;justify-content:center;padding-left:18px;padding-right:18px}.registration-simple .registration-main{padding:0}.registration-simple .wizard-panel{min-height:0;padding:24px 18px}.registration-simple .registration-footer{padding-left:18px;padding-right:18px}.registration-simple .member-personal-panel .registration-fields,.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{grid-template-columns:1fr}.registration-simple .member-personal-panel .wide,.registration-simple .member-payment-panel .wide{grid-column:1}}
.registration-simple .registration-footer{justify-content:flex-end}.registration-simple .registration-actions{margin-left:auto}
.wizard-error-summary{margin:18px 0 0;padding:12px 15px;border:1px solid #efc8c8;border-radius:8px;display:flex;align-items:center;gap:9px;background:#fff5f5;color:#9c3f46}.wizard-error-summary b{font-size:11px}.wizard-error-summary span{font-size:10px}.wizard-client-error{display:block;margin-top:6px;color:#bd4751;font-size:10px;font-weight:600}.registration-simple input.invalid,.registration-simple select.invalid,.registration-simple textarea.invalid{border-color:#d76670;background:#fffafa;box-shadow:0 0 0 3px rgba(215,102,112,.1)}
.member-account-status{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #ffffff40;border-radius:20px;background:#ffffff14;font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}.member-account-status i{width:8px;height:8px;border-radius:50%;background:#ffbd54;box-shadow:0 0 0 4px #ffbd5425}.member-account-status.active i{background:#52e0a8;box-shadow:0 0 0 4px #52e0a825}.member-account-status.inactive{color:#ffe0a8}
.product-order-button{width:100%;margin-top:18px}.product-empty{grid-column:1/-1;min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.product-empty>span{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#e8f5ef;color:#177b60;font-size:24px}.product-empty h2{margin:14px 0 5px}.product-empty p{margin:0;color:var(--muted)}
.order-quantity{display:flex;flex-direction:column}.order-quantity>span{font-size:10px;font-weight:700;margin-bottom:5px}.order-quantity small{margin-top:4px;color:var(--muted);font-size:9px}
.review-complete{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:7px;font-size:11px;font-weight:800}.review-complete.approved{background:#e5f5ed;color:#137354}.review-complete.rejected{background:#fff0f1;color:#b53c48}
.admin-balance-chip{display:flex;flex-direction:column;padding:7px 12px;border:1px solid #dbe6e0;border-radius:8px;background:#f4faf7;color:#173d32;text-decoration:none;line-height:1.1}.admin-balance-chip small{font-size:8px;color:#718179;text-transform:uppercase;letter-spacing:.5px}.admin-balance-chip b{margin-top:4px;font-size:13px}
.admin-withdraw-card{margin-bottom:20px}.admin-withdraw-card .card-head{margin-bottom:18px}.admin-withdraw-card label>span{display:block;margin-bottom:6px;font-size:11px;font-weight:700}.admin-withdrawal-history{margin-top:20px}
.withdrawal-minimum-note{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px;padding:12px 14px;border:1px solid #ecd8a8;border-radius:8px;background:#fff9ea;color:#8a641c}.withdrawal-minimum-note b{font-size:11px}.withdrawal-minimum-note span{font-size:10px}
.order-stock-empty{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;border-color:#ecd8a8;background:#fff9ea;color:#7d5b1c}.order-stock-empty b{font-size:13px}.order-stock-empty span{font-size:11px}.product-stock-form{display:flex;align-items:end;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid var(--line)}.product-stock-form label{flex:1}.product-stock-form label>span{display:block;margin-bottom:5px;font-size:10px;font-weight:700}.product-stock-form input{height:40px;min-height:40px}.product-stock-form .primary{min-height:40px;padding:9px 13px}
.draft-controls{margin-left:auto;display:flex;align-items:center;gap:10px}.draft-save-state{color:#75847d;font-size:9px}.clear-draft{padding:6px 9px;border:1px solid #dbe3df;border-radius:6px;background:#fff;color:#68776f;font-size:9px;cursor:pointer}.clear-draft:hover{border-color:#d6a9a9;color:#a34545}@media(max-width:1050px){.draft-controls{display:none}}

/* Large registration workspace */
.registration-simple .registration-wizard{min-height:104px}.registration-simple .wizard-step{gap:13px}.registration-simple .wizard-step>span{width:40px;height:40px;font-size:13px}.registration-simple .wizard-step b{font-size:13px}.registration-simple .wizard-step small{font-size:10px;margin-top:3px}.registration-simple .wizard-panel{min-height:570px;padding-top:48px;padding-bottom:48px}.registration-simple .wizard-panel .form-section-head{padding-bottom:27px}.registration-simple .wizard-panel .form-section-head h2{font-size:25px}.registration-simple .wizard-panel .form-section-head p{font-size:13px}.registration-simple .section-kicker{font-size:10px}.registration-simple .registration-fields{margin-top:27px}.registration-simple .fields label>span{margin-bottom:9px;font-size:13px}.registration-simple input,.registration-simple select{min-height:56px;padding:14px 16px;font-size:14px}.registration-simple textarea{min-height:165px;padding:15px 16px;font-size:14px}.registration-simple .member-personal-panel .registration-fields,.registration-simple .member-payment-panel .registration-fields,.registration-simple .member-access-panel .registration-fields{column-gap:40px;row-gap:27px}.registration-simple .registration-footer{min-height:94px}.registration-simple .wizard-back,.registration-simple .wizard-next,.registration-simple .wizard-submit{min-height:50px;padding:13px 22px;font-size:13px}.registration-simple .registration-actions .primary{min-width:180px}@media(max-width:800px){.registration-simple .registration-wizard{min-height:78px}.registration-simple .wizard-step>span{width:34px;height:34px}.registration-simple .wizard-panel{min-height:0;padding-top:28px;padding-bottom:28px}.registration-simple input,.registration-simple select{min-height:50px}}
