@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#17233b;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--navy:#101b35;--blue:#4263eb;--muted:#8791a5;--line:#e9edf4;--surface:#fff}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:11px;font:800 21px Manrope,sans-serif;letter-spacing:-.8px;color:#fff}.brand-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#6c83ff,#3e5be5);color:#fff;font:800 19px Manrope;box-shadow:0 5px 14px #425fe34a}.brand-light{font-weight:500;color:#91a8ff}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#8290aa}.muted{color:var(--muted)}.btn{border:0;border-radius:9px;padding:11px 16px;font-weight:700;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.18s}.btn-primary{background:#4965ed;color:white;box-shadow:0 5px 12px #4965ed26}.btn-primary:hover{background:#3854df;transform:translateY(-1px)}.btn-outline{background:#fff;border:1px solid #e3e8f1;color:#43506a}.btn-small{padding:9px 13px;font-size:11px}.btn-full{width:100%;padding:14px}.login-body{background:#f5f7fc;min-height:100vh;display:grid;place-items:center;padding:28px}.login-shell{width:min(1020px,100%);min-height:620px;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 25px 80px #15244b16}.login-brand-panel{background:radial-gradient(circle at 80% 15%,#30477c 0,transparent 32%),linear-gradient(145deg,#101b35,#18294c);padding:43px 48px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-brand-panel:after{content:'';position:absolute;width:400px;height:400px;border:1px solid #ffffff13;border-radius:50%;right:-180px;bottom:-190px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff05}.brand-message{max-width:390px;position:relative;z-index:1}.brand-message .eyebrow{color:#9aafff}.brand-message h1{font:800 43px/1.15 Manrope,sans-serif;color:#fff;letter-spacing:-1.8px;margin:20px 0}.brand-message p{color:#b5c0d5;line-height:1.8;font-size:14px;max-width:350px}.brand-footer{color:#b6c3d9;font-size:11px;display:flex;align-items:center;gap:9px;z-index:1}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#42c99a;display:inline-block;box-shadow:0 0 0 4px #42c99a20}.login-form-panel{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:55px}.login-card{width:min(350px,100%)}.login-card h2{font:800 29px Manrope,sans-serif;letter-spacing:-1px;margin:12px 0 7px}.login-card>.muted{font-size:13px;margin:0 0 34px}.login-card form label{display:block;font-size:11px;font-weight:700;color:#39455d;margin:0 0 8px}.login-card input{width:100%;height:47px;border:1px solid #e1e6ef;border-radius:8px;padding:0 13px;outline:0;font-size:12px;color:#1b2944;margin-bottom:20px}.login-card input:focus{border-color:#6c80ed;box-shadow:0 0 0 3px #4965ed14}.label-row{display:flex;justify-content:space-between}.password-wrap{position:relative}.password-wrap input{padding-right:60px}.password-toggle{position:absolute;right:12px;top:14px;border:0;background:none;color:#65728a;font-size:10px;font-weight:700;cursor:pointer}.form-message{min-height:18px;color:#d04d57;font-size:11px;margin-top:-10px;margin-bottom:8px}.security-note{font-size:10px;color:#8791a5;text-align:center;margin-top:25px}.security-note span{color:#4965ed;margin-right:5px}.login-copyright{font-size:10px;color:#9aa3b3;margin-top:65px}.mobile-brand{display:none}
.dashboard-body{background:#f5f7fb}.app-shell{min-height:100vh}.sidebar{width:245px;background:#111d37;color:#aeb9ce;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:27px 17px 16px;z-index:10}.sidebar-brand{padding:0 8px 38px}.workspace-label{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#65738e;padding:0 11px 11px}.side-nav{display:flex;flex-direction:column;gap:4px}.nav-link{height:42px;padding:0 11px;display:flex;align-items:center;gap:12px;border-radius:7px;font-size:11px;font-weight:600;color:#aab6cb;transition:.15s}.nav-link:hover{background:#ffffff0c;color:#fff}.nav-link.active{background:#334a82;color:#fff;box-shadow:inset 3px 0 #8195ff}.nav-icon{font-size:16px;width:17px;text-align:center;color:#8494b4}.nav-link.active .nav-icon{color:#a9b7ff}.nav-count{margin-left:auto;font-size:9px;background:#ffffff16;padding:3px 7px;border-radius:5px}.nav-divider{height:1px;background:#ffffff12;margin:17px 5px}.sidebar-bottom{margin-top:auto}.help-card{background:#1b2b4c;border:1px solid #ffffff0d;border-radius:10px;padding:15px;margin-bottom:17px}.help-icon{width:23px;height:23px;border-radius:7px;background:#344b7c;color:#c5d0ff;display:grid;place-items:center;font-weight:700;font-size:12px;margin-bottom:12px}.help-card strong{font-size:11px;color:#fff}.help-card p{font-size:9px;line-height:1.6;color:#91a0ba;margin:5px 0 0}.profile-mini{border-top:1px solid #ffffff16;padding:16px 2px 0;display:flex;align-items:center;gap:9px}.avatar,.top-avatar{width:31px;height:31px;border-radius:50%;background:#dce5ff;color:#3c56b4;display:grid;place-items:center;font-weight:800;font-size:11px}.profile-mini strong,.profile-mini small{display:block}.profile-mini strong{font-size:10px;color:#fff}.profile-mini small{font-size:9px;color:#8795ad;margin-top:3px}.profile-mini .icon-button{margin-left:auto;color:#b3bfd2}.main-area{margin-left:245px;min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:5}.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px}.breadcrumb{font-size:9px;color:#9aa3b3;margin-bottom:4px}.breadcrumb span{padding:0 5px;color:#c2c8d3}.page-heading{font:800 17px Manrope,sans-serif;color:#1b2944}.topbar-right{gap:20px}.live-status{font-size:10px;color:#64728a;display:flex;align-items:center;gap:7px}.live-status i{width:6px;height:6px;border-radius:50%;background:#35bf8a}.icon-button{border:0;background:none;cursor:pointer;font-size:17px;color:#748099;position:relative}.notification-button b{position:absolute;width:5px;height:5px;border-radius:50%;background:#ed6b70;right:0;top:0}.top-avatar{width:30px;height:30px}.menu-button{display:none;border:0;background:none;font-size:20px;color:#53617a}.page-content{max-width:1450px;margin:auto;padding:30px 34px 20px}.welcome-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.welcome-row h1{font:800 23px Manrope,sans-serif;letter-spacing:-.8px;margin:8px 0 5px;color:#192640}.welcome-row p{font-size:11px;margin:0}.welcome-row .eyebrow{font-size:9px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}.metric-card,.panel{background:#fff;border:1px solid #edf0f5;border-radius:11px;box-shadow:0 2px 8px #1b2c4b04}.metric-card{padding:17px 18px}.metric-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#77839a;font-weight:600}.metric-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;font-size:10px;font-weight:800}.purple{background:#f0edff;color:#7962dc}.blue{background:#eaf1ff;color:#4b6de0;font-size:18px}.green{background:#e7f8f1;color:#25a879;font-size:18px}.orange{background:#fff2e7;color:#e38a41;font-size:17px}.metric-value{font:800 23px Manrope,sans-serif;letter-spacing:-.7px;margin:14px 0 10px;color:#1b2944}.metric-foot{display:flex;align-items:center;gap:8px;font-size:9px}.metric-period{background:#f1f4f9;padding:4px 7px;border-radius:4px;color:#65728a;font-weight:700}.metric-note{color:#9ba4b3}.content-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:16px;margin-bottom:17px}.panel{padding:19px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h3{font:800 13px Manrope,sans-serif;margin:0;color:#1b2944}.panel-heading p{font-size:9px;margin:5px 0 0}.panel-heading select{border:1px solid #e7ebf2;border-radius:6px;padding:7px 9px;font-size:9px;color:#68758c;background:#fff;outline:0}.chart-legend{font-size:9px;color:#8590a4;margin-top:20px}.legend-dot{width:7px;height:7px;border-radius:50%;background:#5871ed;display:inline-block;margin-right:5px}.chart-wrap{height:190px;display:flex;margin-top:12px}.y-labels{display:flex;flex-direction:column;justify-content:space-between;color:#a4adbb;font-size:8px;padding:0 10px 25px 0}.chart-area{position:relative;flex:1;height:100%}.chart-gridlines{position:absolute;inset:0 0 25px;display:flex;flex-direction:column;justify-content:space-between}.chart-gridlines i{height:1px;border-top:1px dashed #e9edf4}.chart-area svg{position:absolute;inset:0 0 25px;width:100%;height:calc(100% - 25px);overflow:visible}.chart-area-fill{fill:url(#none);fill:#6079f0;opacity:.09}.chart-line{fill:none;stroke:#5b73ed;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.x-labels{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;color:#9da6b5;font-size:8px}.chart-empty{display:none;text-align:center;font-size:9px;color:#a0a9b7;margin-top:-22px;position:relative}.chart-empty.visible{display:block}.status-pill{font-size:8px;font-weight:700;padding:5px 8px;border-radius:5px}.status-pill.good{background:#e8f8f1;color:#269d72}.status-pill.bad{background:#fff0ef;color:#ce5d59}.service-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid #f0f2f6}.service-symbol{width:29px;height:29px;border-radius:8px;background:#eef1ff;color:#5a70d8;display:grid;place-items:center;font-size:14px}.database-symbol{background:#eaf7f1;color:#36a77f}.mpesa-symbol{background:#fff3e7;color:#d88945;font-size:10px;font-weight:800}.service-row strong,.service-row small{display:block}.service-row strong{font-size:10px;color:#35425a}.service-row small{font-size:8px;color:#9aa4b3;margin-top:3px}.service-state{margin-left:auto;color:#28a779;font-size:9px;font-weight:700}.service-state.pending{color:#d18a43}.status-footer{font-size:8px;color:#929cad;padding-top:15px;display:flex;align-items:center;gap:8px}.status-footer .pulse-dot{width:6px;height:6px}.table-panel{padding:19px 0 0;margin-bottom:17px}.table-panel>.panel-heading{padding:0 19px 17px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#f8f9fc}th{font-size:8px;letter-spacing:.7px;color:#98a2b1;font-weight:700;padding:12px 15px}td{font-size:10px;padding:12px 15px;border-top:1px solid #f0f2f6}.empty-row td{text-align:center;padding:0}.empty-state{display:flex;flex-direction:column;align-items:center;padding:28px 15px;color:#929cad}.empty-state>span{font-size:22px;color:#b5c1dc;margin-bottom:9px}.empty-state strong{font-size:10px;color:#59667d}.empty-state p{font-size:9px;margin:5px 0 0}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compact-panel{min-height:195px}.text-link{font-size:9px;color:#526be4;font-weight:700}.compact-empty{padding:24px 10px}.page-footer{font-size:9px;color:#9aa4b3;padding:19px 2px}.page-footer span{padding:0 5px;color:#c4cad4}.footer-version{float:right}.mobile-brand{display:none}
@media(max-width:1100px){.sidebar{width:220px}.main-area{margin-left:220px}.page-content{padding:25px 22px}.topbar{padding:0 22px}.metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:250px;box-shadow:10px 0 35px #14213b22}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.menu-button{display:block}.topbar{height:66px;padding:0 16px}.topbar-right{gap:12px}.live-status{font-size:0}.live-status i{width:8px;height:8px}.page-content{padding:22px 15px}.welcome-row{align-items:flex-start;gap:10px}.welcome-row h1{font-size:19px}.welcome-row .btn{padding:9px}.welcome-row .btn span{display:none}.metric-grid{gap:10px}.metric-card{padding:14px}.metric-value{font-size:20px}.metric-foot{flex-wrap:wrap}.content-grid,.bottom-grid{grid-template-columns:1fr}.chart-panel{min-width:0}.status-panel{min-width:0}.login-shell{grid-template-columns:1fr;min-height:0}.login-brand-panel{display:none}.login-form-panel{padding:45px 25px}.mobile-brand{display:flex;color:#182541;margin-bottom:35px}.mobile-brand .brand-light{color:#526ce8}.login-copyright{margin-top:50px}.login-body{padding:15px}.login-shell{border-radius:16px;min-height:calc(100vh - 30px);justify-content:center}.login-form-panel{justify-content:center}.metric-note{font-size:8px}}
@media(min-width:761px) and (max-height:750px){.sidebar{overflow-y:auto}.help-card{display:none}.page-content{padding-top:22px}.metric-card{padding:13px 16px}.metric-value{margin:9px 0}.chart-wrap{height:165px}}

.notice-card{background:#eef3ff;border:1px solid #dfe7ff;border-radius:10px;padding:15px 18px;margin-bottom:17px;color:#34456d}.notice-card strong{font-size:11px}.notice-card p{font-size:10px;line-height:1.7;margin:5px 0 0;color:#647394}.mpesa-form-panel{padding:22px;margin-bottom:18px}.mpesa-form{margin-top:22px}.form-section-title{font:800 11px Manrope,sans-serif;color:#263653;border-bottom:1px solid #edf0f5;padding-bottom:10px;margin:22px 0 15px}.form-section-title:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:10px;font-weight:700;color:#4b5870;display:flex;flex-direction:column;gap:7px}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #e1e6ef;border-radius:7px;padding:11px 12px;font:11px 'DM Sans',sans-serif;color:#24324c;outline:none;background:#fff}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#6c80ed;box-shadow:0 0 0 3px #4965ed14}.form-grid textarea{resize:vertical}.full-field{grid-column:1/-1}.form-help{font-size:10px;margin:0 0 12px}.website-choice-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.website-choice{border:1px solid #e9edf4;border-radius:8px;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.website-choice label{display:flex;align-items:center;gap:8px;font-size:10px}.website-choice input{accent-color:#4965ed}.website-choice label span strong,.website-choice label span small{display:block}.website-choice label span small{font-size:9px;color:#929cad;margin-top:3px}.website-choice .default-choice{font-size:9px;color:#66738a;white-space:nowrap}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px}.form-actions .form-message{margin:0;min-height:0}.accounts-list{padding:0 19px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-card{border:1px solid #e9edf4;border-radius:9px;padding:15px}.account-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.account-card h3{font:800 12px Manrope,sans-serif;margin:0;color:#24324c}.account-card-top p{font-size:10px;color:#8791a5;margin:5px 0}.account-badge{font-size:8px;text-transform:uppercase;font-weight:800;letter-spacing:.5px;background:#fff4e8;color:#c17b34;padding:5px 7px;border-radius:5px}.account-badge.production{background:#e9f8f1;color:#269d72}.account-meta{display:flex;justify-content:space-between;border-top:1px solid #f0f2f6;padding-top:11px;margin-top:8px;font-size:9px}.configured{color:#269d72}.incomplete{color:#d18a43}.account-status{text-transform:capitalize;color:#65728a}.account-websites{margin-top:12px;background:#f8f9fc;border-radius:6px;padding:10px}.account-websites strong{font-size:9px;color:#59667d}.account-websites p{font-size:9px;color:#8993a4;margin:5px 0 0;line-height:1.6}.mpesa-list-panel{padding-top:19px}#accountFormPanel[hidden]{display:none}@media(max-width:760px){.form-grid,.website-choice-list,.accounts-list{grid-template-columns:1fr}.form-actions{align-items:stretch;flex-direction:column}.form-actions .btn{width:100%}.welcome-row{flex-wrap:wrap}.mpesa-form-panel{padding:16px}}

/* M-Pesa settings UX refresh */
.mpesa-form-panel{padding:26px 28px;border-radius:14px}
.mpesa-form{margin-top:24px}
.mpesa-form .form-section-title{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.1px;padding:0 0 12px;margin:27px 0 18px;border-bottom:1px solid #edf0f5}
.mpesa-form .form-section-title:first-child{margin-top:0}
.mpesa-form .form-section-title:before{content:"";width:4px;height:17px;border-radius:5px;background:#4965ed;display:block}
.mpesa-form .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 20px;align-items:start}
.mpesa-form .form-grid>label{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:8px;font-size:11px;line-height:1.4;font-weight:700;color:#43516b}
.mpesa-form .form-grid input,.mpesa-form .form-grid select,.mpesa-form .form-grid textarea{display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:11px 13px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:#24324c;font:12px 'DM Sans',Arial,sans-serif;line-height:1.4;box-shadow:0 1px 2px #17233b06;transition:border-color .15s,box-shadow .15s}
.mpesa-form .form-grid select{cursor:pointer;padding-right:32px}
.mpesa-form .form-grid textarea{min-height:92px;resize:vertical}
.mpesa-form .form-grid input::placeholder,.mpesa-form .form-grid textarea::placeholder{color:#a2abba;font-weight:400}
.mpesa-form .form-grid input:focus,.mpesa-form .form-grid select:focus,.mpesa-form .form-grid textarea:focus{outline:0;border-color:#647cf0;box-shadow:0 0 0 3px #4965ed18}
.mpesa-form .form-grid .full-field{grid-column:1/-1}
.mpesa-form .form-grid label:has(textarea),.mpesa-form .form-grid label:has(input[type=url]){grid-column:1/-1}
.notice-card{display:flex;align-items:flex-start;gap:14px;padding:16px 19px;border-radius:12px;background:#f0f4ff;border-color:#e0e8ff}
.notice-card:before{content:"i";flex:0 0 25px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#dfe7ff;color:#4965ed;font:bold 14px Manrope,sans-serif}
.notice-card strong{display:block;font-size:12px;color:#263b69}
.notice-card p{font-size:11px;line-height:1.65;margin:4px 0 0;color:#647394}
.mpesa-form .form-help{font-size:11px;line-height:1.6;margin:-5px 0 15px}
.website-choice-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.website-choice{min-width:0;padding:13px 14px;border-radius:9px;background:#fbfcfe}
.website-choice:has(input:checked){border-color:#aebcfb;background:#f5f7ff}
.website-choice label{font-size:11px}
.website-choice .default-choice{font-size:10px}
.form-actions{border-top:1px solid #edf0f5;padding-top:20px;margin-top:26px}
.form-actions .btn{min-height:43px;padding:12px 20px}
.form-actions .form-message{font-size:11px}
.accounts-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.account-card{padding:17px;border-radius:11px;transition:border-color .15s,box-shadow .15s}
.account-card:hover{border-color:#d5ddf0;box-shadow:0 5px 18px #1b2c4b08}
.account-card h3{font-size:13px}
.account-card-top p{font-size:11px}
.account-meta{font-size:10px}
.account-websites{padding:11px}
.account-websites p{font-size:10px}
@media(max-width:1050px){.mpesa-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mpesa-form-panel{padding:18px 15px}.mpesa-form .form-grid,.website-choice-list,.accounts-list{grid-template-columns:1fr;gap:14px}.mpesa-form .form-grid .full-field,.mpesa-form .form-grid label:has(textarea),.mpesa-form .form-grid label:has(input[type=url]){grid-column:auto}.notice-card{gap:10px;padding:13px}.form-actions{align-items:stretch;flex-direction:column}.form-actions .btn{width:100%}}

/* Safe M-Pesa account lifecycle actions */
.account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.btn-danger{background:#fff1f0;border:1px solid #ffd8d5;color:#c33f3b}
.btn-danger:hover{background:#ffe6e3;border-color:#f2b8b3}
@media(max-width:760px){.account-actions{align-items:stretch}.account-actions .btn{flex:1}}
