@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@400;500;600;700;800&display=swap');
/* NetPesa dark, responsive interface */
:root{--ink:#e8eef5;--muted:#9cabbc;--line:#2a3b4e;--paper:#0c1520;--white:#172433;--navy:#101c2c;--navy2:#1a2c42;--lime:#b5df82;--blue:#86a6ff;--blue2:#24354b;--green:#5fd0a0;--greenbg:#17382f;--orange:#f1bd70;--orangebg:#3a2d1b;--red:#ff8989;--redbg:#3d252a;--shadow:0 14px 36px #0003}
html,body{min-height:100%;background:#0c1520;color:#e8eef5}body{overflow-x:hidden}.shell{height:100dvh;min-height:0;overflow:hidden}.sidebar{height:100dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#60758d #101c2c}.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-track{background:#101c2c}.sidebar::-webkit-scrollbar-thumb{background:#53677d;border:2px solid #101c2c;border-radius:8px}.brand{min-height:48px}.brand-logo{display:block;width:162px;height:auto;max-width:100%}.landing-brand .brand-logo{width:178px}.workspace{height:100dvh;min-height:0;display:flex;flex-direction:column;background:#0c1520}.topbar{flex:0 0 66px;background:#111e2d;border-color:#29394b;color:#e8eef5}.main{width:100%;flex:1;min-height:0;overflow:auto;background:#0c1520;color:#e8eef5}.crumb,.crumb b,.business strong{color:#dce5ee}.business small,.metric-label,.metric-foot,.subhead,.table-wrap td,.activity p,.config-box p,.empty,.quick small{color:#9cabbc}.business{border-color:#344559}.avatar{background:#29415a;color:#c5d8ff}.icon-btn,.logout-button,.select,.primary.outline{background:#1a2a3b;color:#dae5ef;border-color:#3a4d62}.icon-btn:hover,.logout-button:hover,.primary.outline:hover{background:#25384d;color:white}.primary{background:#c3e392;color:#172433;box-shadow:none}.primary:hover,.primary.lime:hover{background:#d0eba7;color:#142333}.primary.lime{background:#b5df82;color:#172433}.cards>*,div[class*="card"],div[class*="-card"],.metric,.panel,.chart-card,.table-card,.info-card,.config-box,.quick,.subscription-card,.portal-card,.empty-card,.report-card{background:#172433!important;color:#e7eef5!important;border-color:#2a3c50!important;box-shadow:0 6px 20px #0002!important}.metric{border:1px solid #2a3c50!important}.metric-value,.panel h2,.panel h3,.config-box h3,.table-wrap th,.head-row h1,.info-card b,.quick b{color:#f0f4f8}.panel,.chart-card,.table-card{border:1px solid #2a3c50!important}.table-wrap,.table-scroll{background:#172433!important;border-color:#2a3c50!important;overflow:auto;max-width:100%}table{color:#e6edf5}th{background:#1d2d3e!important;color:#b9c9da!important;border-color:#34495e!important}td{border-color:#2a3b4e!important;color:#d9e3ed!important}tr:hover td{background:#1c2b3b!important}.field label{color:#b9c8d7}.field input,.field select,.field textarea,input,select,textarea{background:#101d2b;color:#eaf0f6;border-color:#394e64}.field input::placeholder,input::placeholder,textarea::placeholder{color:#788da3}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9fcf73;box-shadow:0 0 0 3px #9fcf7322;outline:0}.badge,.pill{filter:saturate(.82)}.config-box .report-tools{display:flex;flex-wrap:wrap;gap:9px}.modal-card,.modal-content,.dialog{background:#172433!important;color:#e8eef5!important;border-color:#34495e!important}.modal-card h2,.modal-content h2,.modal-content h5{color:#f0f4f8}.modal-card p,.modal-content p{color:#aab9c9}.quiet-button{color:#adc2ff}.auth-screen{height:100dvh;min-height:0;overflow:auto;background:radial-gradient(ellipse at 90% 8%,#1a352d 0,transparent 33%),linear-gradient(135deg,#0c1725,#142637)!important}.landing-nav{height:68px;border-color:#ffffff18}.landing-actions{display:flex;gap:10px}.landing-layout{min-height:calc(100dvh - 96px);padding:26px 28px 20px;grid-template-columns:1fr .92fr;gap:clamp(28px,6vw,78px)}.landing-copy h1{font-size:clamp(42px,5.1vw,66px)}.landing-copy>p{color:#c0ccd7}.feature{background:#ffffff08;border-color:#ffffff1a}.register-card,.login-card{background:#172433!important;color:#e8eef5!important;border-color:#32485e!important;box-shadow:0 25px 70px #0005!important}.register-card h2,.login-card h2{color:#f1f5f9}.register-card>p,.login-card>p,.register-note{color:#a6b6c6}.register-card .field label,.login-card .field label{color:#bdcada}.register-card .field input,.login-card .field input{background:#101d2b;color:#f0f4f8;border-color:#3a4e63}.terms-check{color:#b7c5d3}.terms-check a{color:#b5df82}.landing-footer{margin:0 auto;padding:0 24px 12px;color:#94a5b6}.menu-toggle{display:none}
@media(max-width:800px){.landing-nav{height:58px;padding:0 16px}.landing-layout{grid-template-columns:1fr;gap:12px;min-height:auto;padding:16px 14px 12px}.landing-copy{display:none}.register-card,.login-card{max-width:520px;margin:0 auto;padding:17px 18px;border-radius:16px}.register-card h2,.login-card h2{font-size:20px}.register-card>p,.login-card>p{font-size:11px;margin-bottom:8px}.register-grid{gap:0 8px}.register-card .field{margin:4px 0}.register-card .field label,.login-card .field label{font-size:10px}.register-card .field input,.login-card .field input{padding:8px 9px;font-size:12px;min-height:36px}.register-card .primary,.login-card .primary{padding:10px;margin-top:6px}.register-note{font-size:9px;margin-top:4px}.terms-check{font-size:10px;margin-top:6px}.landing-footer{padding:4px 12px 8px;text-align:center}.auth-screen{display:flex;flex-direction:column}.landing-layout{width:100%;flex:1;display:flex;justify-content:center;align-items:center}.register-card,.login-card{width:min(100%,520px)}.shell{height:100dvh}.sidebar{height:100dvh}.workspace{height:100dvh}.topbar{height:58px;flex-basis:58px;padding:0 12px}.main{padding:18px 14px 30px}.head-row{align-items:flex-start;gap:12px;flex-wrap:wrap}.head-row h1{font-size:22px}.top-actions{gap:7px}.business{padding-left:8px;gap:6px}.business-text{display:none}.menu-toggle{display:inline-grid;place-items:center;margin-right:9px}.sidebar{position:fixed;z-index:30;left:0;top:0;transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 32px #0007}.sidebar.open{transform:translateX(0)}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:12px}.metric-value{font-size:19px}.chart-grid,.content-grid{grid-template-columns:1fr!important}.report-tools{gap:7px}.report-tools .primary{font-size:10px;padding:9px}.table-wrap table{min-width:620px}.logout-button{padding:0 8px}.logout-button span:last-child{display:none}}
@media(max-width:420px){.landing-nav{padding:0 12px}.landing-brand .brand-logo{width:142px}.landing-actions{gap:6px}.landing-actions .primary{padding:8px 11px;font-size:10px}.landing-layout{padding:10px 10px}.register-card,.login-card{padding:14px 14px}.register-card h2,.login-card h2{font-size:18px}.register-card .field input{min-height:34px}.register-note{line-height:1.25}.terms-check{line-height:1.3}.metric-label{font-size:9px}.main{padding-left:10px;padding-right:10px}.topbar{padding-left:9px;padding-right:9px}.top-actions{gap:5px}.icon-btn{width:31px;height:31px}}
@media(max-height:700px) and (max-width:800px){.landing-nav{height:50px;flex-basis:50px}.landing-layout{padding-top:6px;padding-bottom:6px}.register-card,.login-card{padding:11px 14px}.register-card>p,.login-card>p{margin-bottom:5px}.register-card .field{margin:2px 0}.register-card .field input{min-height:31px;padding:6px 8px}.register-card .primary{padding:8px;margin-top:4px}.register-note{margin-top:2px}.landing-footer{display:none}}

/* Compact dashboard metrics and distinct, readable module colors. */
.cards>.metric:nth-child(1){background:#173b36!important;border-color:#28584f!important;color:#f0faf6!important}
.cards>.metric:nth-child(2){background:#1b3550!important;border-color:#2b4c6b!important;color:#eff6ff!important}
.cards>.metric:nth-child(3){background:#3b3049!important;border-color:#564266!important;color:#f7f1ff!important}
.cards>.metric:nth-child(4){background:#463a27!important;border-color:#675331!important;color:#fff8e9!important}
.cards>.metric .metric-label,.cards>.metric .metric-foot{color:#c0ccd7!important}
.cards>.metric .metric-value{color:#fff!important}
.cards>.metric .metric-icon{background:#ffffff17!important;color:#d1e99f!important}
.cards>.metric{min-height:104px;padding:12px 14px}
.page-cards>.info-card:nth-child(4n+1){background:#163b36!important;border-color:#2b5b50!important}
.page-cards>.info-card:nth-child(4n+2){background:#1b3550!important;border-color:#2c4d6d!important}
.page-cards>.info-card:nth-child(4n+3){background:#3b3049!important;border-color:#564266!important}
.page-cards>.info-card:nth-child(4n){background:#463a27!important;border-color:#675331!important}
.page-cards>.info-card{min-height:105px}
.quick:nth-child(3n+1){border-color:#315c53!important;background:#19342f!important}
.quick:nth-child(3n+2){border-color:#385777!important;background:#1a2e43!important}
.quick:nth-child(3n){border-color:#56476b!important;background:#30283b!important}
.landing-copy .feature-list{gap:4px 22px}
.landing-copy .feature{border:0;border-top:1px solid #ffffff26;border-radius:0;background:transparent;padding:11px 2px}
.landing-copy .feature b{font-size:12px;color:#edf3ef}
.landing-copy .feature small{font-size:10px;color:#aebdc7}
@media(max-width:800px){
  .cards>.metric{min-height:88px;padding:10px 11px}
  .cards>.metric .metric-value{font-size:18px;margin:7px 0 2px}
  .cards>.metric .metric-label{font-size:9px}
  .cards>.metric .metric-foot{font-size:9px;line-height:1.25}
  .page-cards{gap:8px}
  .page-cards>.info-card{min-height:90px;padding:11px}
  .page-cards>.info-card .big{font-size:18px;margin-top:6px}
  .register-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .cards{gap:7px}
  .cards>.metric{min-height:82px;padding:8px 9px;border-radius:10px}
  .cards>.metric .metric-value{font-size:16px;margin:6px 0 1px}
  .cards>.metric .metric-icon{width:23px;height:23px;font-size:11px}
  .cards>.metric .metric-foot{font-size:8px}
  .register-grid{gap:0 7px}
  .register-card .field label{font-size:9px}
  .register-card .field input{font-size:11px;padding:7px 7px}
}

/* A straightforward, light public site with local operator-focused copy. */
.auth-screen{background:#f1f3ef!important;color:#20312a!important}
.landing-nav{background:#fbfcfa;border-bottom:1px solid #dfe6df}
.landing-brand strong{color:#1d3028}
.landing-brand small{color:#697970}
.landing-copy .eyebrow{color:#52785c!important}
.landing-copy h1{color:#20332b}
.landing-copy h1 em{color:#557c5d}
.landing-copy>p{color:#53625a!important}
.landing-copy .feature{border-top-color:#d7e0d8}
.landing-copy .feature b{color:#263b30}
.landing-copy .feature small{color:#68766e}
.register-card,.login-card{background:#fff!important;color:#1f2e27!important;border:1px solid #dce4dd!important;box-shadow:0 16px 40px #24382b13!important}
.register-card h2,.login-card h2{color:#1f3128}
.register-card>p,.login-card>p,.register-note{color:#66736b}
.register-card .field label,.login-card .field label{color:#4e5d54}
.register-card .field input,.login-card .field input{background:#fbfcfa;color:#1e2c25;border-color:#d4ded6}
.landing-footer{color:#758179}
.landing-actions .primary.outline{background:#fff;color:#263b30;border-color:#d3ded5}
@media(max-width:800px){.auth-screen{background:#f1f3ef!important}.landing-nav{background:#fbfcfa}.landing-layout{align-items:flex-start}.register-card,.login-card{box-shadow:0 10px 30px #24382b12!important}}

/* NetPesa opening screen: brand line and the two entry points only. */
.auth-screen{background:linear-gradient(90deg,#08131dcc 0%,#0c1a23b8 48%,#0b171fb0 100%),linear-gradient(0deg,#08131d88,#08131d22 52%,#08131d77),url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=2400&q=85') center 54%/cover no-repeat fixed!important;color:#f5f7f8!important}
.auth-screen:before{background:radial-gradient(ellipse at 50% 46%,transparent 0,transparent 38%,#07111b40 100%)}
.landing-nav{background:#0e1b26d9;border-bottom-color:#ffffff20;backdrop-filter:blur(12px)}
.landing-actions .primary.outline{background:#ffffff;color:#1d3027;border-color:#d3ded5}
.landing-actions .primary.lime{background:#c4e39a;color:#20312a}
.landing-layout{min-height:calc(100dvh - 68px);display:flex;align-items:center;justify-content:center;padding:clamp(24px,5vh,56px) 20px}
#homeHero{display:block;width:min(100%,1040px);text-align:center;padding:clamp(28px,5vw,62px) clamp(18px,4vw,48px);border:1px solid #ffffff2b;border-radius:28px;background:linear-gradient(135deg,#101d27a8,#13222d91);box-shadow:0 28px 90px #030a1080;backdrop-filter:blur(5px)}
#homeHero h1{max-width:920px;font-size:clamp(40px,6.2vw,78px);line-height:1.06;letter-spacing:-.048em;color:#f6f8f6!important;margin:0 auto;text-wrap:balance;text-shadow:0 2px 20px #07111b66}
#homeHero h1 em{display:block;max-width:820px;margin:clamp(10px,1.5vw,18px) auto 0;color:#d0e9ae!important;font-size:.76em;line-height:1.16;letter-spacing:-.032em;font-style:normal;text-wrap:balance}
.login-card,.register-card{margin:0 auto}
.admin-chart{height:210px}
@media(max-width:800px){.auth-screen{background-attachment:scroll!important;background-position:58% center!important}.landing-nav{background:#0e1b26e8}.landing-layout{min-height:calc(100dvh - 58px);padding:20px 15px}.landing-copy{display:block}#homeHero{width:min(100%,640px);padding:clamp(22px,6vw,38px) clamp(16px,5vw,30px);border-radius:22px}#homeHero h1{font-size:clamp(36px,8.4vw,58px);line-height:1.08}#homeHero h1 em{max-width:520px;font-size:.72em;line-height:1.18}.admin-chart{height:170px}}
@media(max-width:420px){.landing-layout{padding:14px 12px}#homeHero{padding:24px 16px;border-radius:18px}#homeHero h1{font-size:clamp(33px,9.2vw,39px)}#homeHero h1 em{font-size:.68em}.landing-nav .brand-logo{width:142px}}

/* 2026-10-17: compact KAWIFI-inspired dashboard + properly sized mobile authentication. */
.auth-screen,.landing-copy,#homeHero h1{font-family:"Merriweather Sans",Arial,sans-serif!important}
#homeHero{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;max-width:920px!important}
#homeHero h1{font-size:clamp(22px,3.4vw,43px)!important;letter-spacing:-.025em!important;line-height:1.3!important;text-align:center!important;text-shadow:0 3px 15px #0006}
#homeHero h1 em{font-size:.84em!important;margin:6px auto 0!important}
.landing-layout:has(.register-card:not([hidden])),.landing-layout:has(.login-card:not([hidden])){display:flex!important;justify-content:center!important;align-items:flex-start!important;padding:20px 16px!important;min-height:0!important}
.landing-layout:has(.register-card:not([hidden])) #homeHero,.landing-layout:has(.login-card:not([hidden])) #homeHero{display:none!important}
.register-card,.login-card{width:100%!important;max-width:520px!important;min-width:0!important;margin:0 auto!important;box-sizing:border-box!important}
.register-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 12px!important}
.register-card .field,.login-card .field{min-width:0!important}
.register-card input,.login-card input,.register-card select,.login-card select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:16px!important}
.password-wrap{width:100%;min-width:0}.password-wrap input{width:0!important;flex:1 1 0!important}.password-wrap button{flex:none!important;white-space:nowrap!important}
.terms-check{align-items:flex-start!important;line-height:1.45}.terms-check input{width:auto!important;flex:0 0 auto}
.landing-nav{min-height:64px;flex-shrink:0}
/* compact colourful operational tiles inspired by the user's KAWIFI dashboard */
.main{max-width:1550px;margin:auto}.head-row h1{font-size:clamp(22px,2.8vw,32px)}
.cards,.page-cards{gap:12px!important}.cards>.metric{min-height:115px;border-radius:12px!important;box-shadow:0 7px 25px #0002}.cards>.metric:nth-child(1){background:#229e50!important;border-color:#229e50!important}.cards>.metric:nth-child(2){background:#067be7!important;border-color:#067be7!important}.cards>.metric:nth-child(3){background:#d6374f!important;border-color:#d6374f!important}.cards>.metric:nth-child(4){background:#e6aa15!important;border-color:#e6aa15!important}
.cards>.metric .metric-value{font-size:clamp(19px,2.6vw,29px)!important;font-weight:800}.cards>.metric .metric-label,.cards>.metric .metric-foot{color:#fff!important}
.page-cards>.info-card{border-radius:12px!important}.page-cards>.info-card:nth-child(4n+1){background:#178ec9!important;border-color:#178ec9!important}.page-cards>.info-card:nth-child(4n+2){background:#239853!important;border-color:#239853!important}.page-cards>.info-card:nth-child(4n+3){background:#e7a51a!important;border-color:#e7a51a!important}.page-cards>.info-card:nth-child(4n){background:#ae3f75!important;border-color:#ae3f75!important}
@media(max-width:760px){
 .auth-screen{min-height:100dvh!important;overflow-x:hidden!important}
 .landing-layout{padding:14px 12px!important;min-height:calc(100dvh - 64px)!important;display:flex!important;align-items:center!important;justify-content:center!important}
 .landing-layout:has(.register-card:not([hidden])),.landing-layout:has(.login-card:not([hidden])){align-items:flex-start!important;min-height:0!important;padding:10px 12px 22px!important}
 .register-card,.login-card{padding:16px!important;box-shadow:0 12px 35px #02091740!important;border-radius:17px!important}
 .register-card h2,.login-card h2{font-size:20px!important}.register-card>p,.login-card>p{font-size:12px!important}
 .register-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px 9px!important}
 .register-card .field label,.login-card .field label{font-size:11px!important;display:block;overflow-wrap:anywhere}
 .register-card .field input,.login-card .field input{padding:9px!important;min-height:42px!important;border-radius:9px!important}
 .register-card .field{margin:5px 0!important}.register-note{font-size:10px!important}
 #homeHero h1{font-size:clamp(22px,6.3vw,32px)!important;max-width:360px!important}
 .main{padding:12px!important}.head-row{gap:12px}.head-controls{flex-wrap:wrap!important;gap:7px}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .cards>.metric{min-height:96px!important;padding:12px!important}
 .cards>.metric .metric-value{font-size:clamp(16px,4.4vw,23px)!important}
 .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:360px){.register-grid{grid-template-columns:1fr!important}.register-card{padding:12px!important}}

/* Management refresh — readable text and KAWIFI-inspired cards */
body,.workspace,.main,.panel,.sidebar,input,button,select,textarea{font-family:'Merriweather Sans',system-ui,-apple-system,sans-serif}
.main{padding-bottom:64px}
.panel-head h2,.config-box h3{font-size:15px;letter-spacing:0;font-weight:750}
.panel-head p,.subhead,.config-box p,.info-card p,.metric-foot,.quick small,.table td,.table th,.register-note{font-size:12px;line-height:1.55}
.table td{color:#e2ebf4!important}.table th{font-size:11px;color:#d1e0ed!important}
.field label,.filter-bar label{font-size:12px;font-weight:650;color:#e1ecf5!important}
.field input,.field select,.field textarea,.select,input,textarea{font-size:14px;min-height:42px}
button,.primary,.table-action{font-size:13px;line-height:1.35}
.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.quick-grid .quick{min-height:85px;padding:18px!important;border:0!important;box-shadow:0 4px 13px #0003!important}
.quick-grid .quick:nth-child(6n+1),.cards>.metric:nth-child(4n+1){background:#22ad49!important;color:#fff!important}
.quick-grid .quick:nth-child(6n+2),.cards>.metric:nth-child(4n+2){background:#424753!important;color:#fff!important}
.quick-grid .quick:nth-child(6n+3),.cards>.metric:nth-child(4n+3){background:#e4344c!important;color:#fff!important}
.quick-grid .quick:nth-child(6n+4),.cards>.metric:nth-child(4n+4){background:#167bec!important;color:#fff!important}
.quick-grid .quick:nth-child(6n+5){background:#f6af08!important;color:#152437!important}
.quick-grid .quick:nth-child(6n+6){background:#267be6!important;color:#fff!important}
.quick-grid .quick strong{font-size:13px;color:inherit!important}
.quick-grid .quick .qi{color:inherit!important;font-size:20px}
.cards>.metric .metric-label,.cards>.metric .metric-foot,.cards>.metric .metric-value{color:white!important}
.cards>.metric .metric-label{font-size:12px;font-weight:650}
.cards>.metric .metric-value{font-size:clamp(18px,2.1vw,28px);line-height:1.25;overflow-wrap:anywhere}
.cards>.metric .metric-icon{background:#ffffff29!important;color:white!important}
.download-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:13px;margin:10px 0}
.download-link{display:flex;align-items:center;justify-content:center;text-align:center;min-height:80px;padding:16px 18px;background:#263e54;border:1px solid #51738a;border-radius:11px;color:white!important;font-size:14px;font-weight:750}
.download-link:hover,.download-link:focus{background:#335773;color:#fff;outline:2px solid #b5df82}
.sms-switch{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#e4ecf5;margin:10px}
.sms-switch input{min-height:auto;width:18px;height:18px}
@media(max-width:900px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.download-cards{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cards>.metric{padding:12px!important}.cards>.metric .metric-value{font-size:17px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.download-cards{grid-template-columns:1fr}.head-controls{width:100%;flex-wrap:wrap}.head-controls button{flex:1;white-space:nowrap}.page-cards{grid-template-columns:1fr!important}.table-wrap{overflow-x:auto}.panel-head{gap:8px;flex-wrap:wrap}.field input,.field select,.field textarea{font-size:16px}}
.table b,.table td b,.table td strong{color:#f1f5fa!important}
.status.ok{color:#bdf3cf!important;background:#1d5139!important}
.status.failed{color:#ffadad!important;background:#502c32!important}


/* Readability pass: keep all operational text legible in cards, forms and dialogs. */
:root{--muted:#c8d4e1!important}
body,.workspace,.main,.panel,.sidebar,.modal{font-size:14px;line-height:1.55}
.nav button,.crumb,.business small,.sidebar small,.nav-label{font-size:13px!important;color:#e0eaf4!important;line-height:1.5}
.panel p,.panel li,.config-box p,.info-card p,.activity p,.subhead,.metric-foot,.quick small,
.register-note,.terms-check,.modal p,.modal li,.register-card>p,.login-card>p,
.portal-card p,.form-help,.status,.table-wrap td,.table-wrap th{font-size:13px!important;line-height:1.55!important}
.metric-label,.eyebrow,.panel .eyebrow,.page-cards .eyebrow,.filter-bar label,
.field label,.register-card .field label,.login-card .field label{font-size:13px!important;line-height:1.5!important;font-weight:700!important;color:#f0f5fb!important}
.metric-foot,.quick small,.info-card p,.register-note,.landing-footer,.config-box p,.subhead{color:#d5e1ec!important}
.register-card input,.login-card input,.register-card select,.login-card select,
.field input,.field select,.field textarea,.select,.filter-bar input,.filter-bar select,
.modal input,.modal select,.modal textarea{font-size:16px!important;line-height:1.4!important;min-height:44px!important;color:#f7fbff!important;background:#101d2b!important;border:1px solid #647991!important;border-radius:9px}
.field input::placeholder,.register-card input::placeholder,.login-card input::placeholder,
input::placeholder,textarea::placeholder{color:#b7c5d4!important;opacity:1}
.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{outline:2px solid #c1e88d!important;outline-offset:1px}
button,.primary,.table-action,.quiet-button,.download-link,.icon-btn{font-size:14px!important;line-height:1.4!important;font-weight:700}
.quiet-button{color:#bed2ff!important}
.metric,.info-card,.quick,.config-box,.modal,.panel{overflow-wrap:anywhere}
.cards>.metric .metric-foot,.cards>.metric .metric-label,.cards>.metric .metric-value{color:#fff!important}
.cards>.metric .metric-label{font-size:13px!important}
.cards>.metric .metric-foot{font-size:12px!important}
.quick-grid .quick b,.quick-grid .quick strong,.quick-grid .quick small{color:inherit!important}
.table-wrap th{background:#21384f!important;color:#f6fbff!important}
.table-wrap td{color:#e9f2fb!important}
.register-card,.login-card{color:#f1f7fd!important}
.register-status,.auth-error{font-size:13px!important;line-height:1.45}
@media(max-width:800px){
 .register-card,.login-card{max-height:none!important;overflow:visible!important}
 .register-grid{gap:6px 10px!important}
 .register-card .field,.login-card .field{margin:4px 0!important}
 .register-card .field label,.login-card .field label{font-size:13px!important}
 .register-card .field input,.login-card .field input{min-height:44px!important;padding:10px 11px!important}
 .register-note,.register-card>p,.login-card>p,.terms-check{font-size:13px!important}
 .sidebar .nav button{font-size:14px!important;padding:12px!important}
 .cards>.metric .metric-label{font-size:12px!important}
 .cards>.metric .metric-foot{font-size:12px!important}
 .page-cards>.info-card p{font-size:13px!important}
}
@media(max-width:420px){
 .register-grid{grid-template-columns:1fr!important;gap:3px!important}
 .register-card,.login-card{padding:16px!important}
 .main{padding:14px!important}
 .cards>.metric{min-height:120px!important}
 .cards>.metric .metric-value{font-size:18px!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.page-cards>.info-card:nth-child(4n),.page-cards>.info-card:nth-child(4n) p,
.page-cards>.info-card:nth-child(4n) b,.page-cards>.info-card:nth-child(4n) strong,
.page-cards>.info-card:nth-child(4n) .big,.page-cards>.info-card:nth-child(4n) .eyebrow{color:#132034!important}
.page-cards>.info-card:nth-child(4n+1),.page-cards>.info-card:nth-child(4n+2),.page-cards>.info-card:nth-child(4n+3){color:#fff!important}
.page-cards>.info-card:nth-child(4n+1) p,.page-cards>.info-card:nth-child(4n+2) p,
.page-cards>.info-card:nth-child(4n+3) p{color:#fff!important}
/* WCAG-oriented contrast for the colorful overview and quick-action cards. */
.cards>.metric:nth-child(4n+1),.quick-grid .quick:nth-child(6n+1){background:#187a39!important;border-color:#187a39!important;color:#fff!important}
.cards>.metric:nth-child(4n+2),.quick-grid .quick:nth-child(6n+4){background:#115cba!important;border-color:#115cba!important;color:#fff!important}
.cards>.metric:nth-child(4n+3),.quick-grid .quick:nth-child(6n+3){background:#aa2438!important;border-color:#aa2438!important;color:#fff!important}
.cards>.metric:nth-child(4n+4){background:#e6aa15!important;border-color:#e6aa15!important;color:#142334!important}
.cards>.metric:nth-child(4n+4) .metric-label,.cards>.metric:nth-child(4n+4) .metric-value,
.cards>.metric:nth-child(4n+4) .metric-foot,.cards>.metric:nth-child(4n+4) .metric-icon{color:#142334!important}
.cards>.metric:nth-child(4n+4) .metric-icon{background:#00000015!important}
.quick-grid .quick:nth-child(6n+2){background:#424753!important;color:#fff!important}
.quick-grid .quick:nth-child(6n+5){background:#f6af08!important;color:#142334!important}
.quick-grid .quick:nth-child(6n+6){background:#115cba!important;color:#fff!important}
.page-cards>.info-card:nth-child(4n+1){background:#12628b!important;border-color:#12628b!important;color:#fff!important}
.page-cards>.info-card:nth-child(4n+2){background:#197c44!important;border-color:#197c44!important;color:#fff!important}
.page-cards>.info-card:nth-child(4n+3){background:#e6aa15!important;border-color:#e6aa15!important;color:#142334!important}
.page-cards>.info-card:nth-child(4n){background:#8a2d5e!important;border-color:#8a2d5e!important;color:#fff!important}
.page-cards>.info-card:nth-child(4n+3) p,.page-cards>.info-card:nth-child(4n+3) .big,
.page-cards>.info-card:nth-child(4n+3) .eyebrow,.page-cards>.info-card:nth-child(4n+3) strong,
.page-cards>.info-card:nth-child(4n+3) b{color:#142334!important}
.page-cards>.info-card:nth-child(4n) p,.page-cards>.info-card:nth-child(4n) .big,
.page-cards>.info-card:nth-child(4n) .eyebrow,.page-cards>.info-card:nth-child(4n) strong,
.page-cards>.info-card:nth-child(4n) b{color:#fff!important}
/* Explicit auth card palette: earlier light-theme rules were overriding labels. */
.auth-screen .register-card,.auth-screen .login-card{
  background:#172433!important;color:#f2f7fb!important;
  border:1px solid #455c72!important;box-shadow:0 18px 50px #0006!important
}
.auth-screen .register-card h2,.auth-screen .login-card h2{color:#fff!important}
.auth-screen .register-card>p,.auth-screen .login-card>p,.auth-screen .register-note,
.auth-screen .terms-check,.auth-screen .register-status{color:#d1deeb!important}
.auth-screen .register-card .field label,.auth-screen .login-card .field label{color:#edf5fc!important}
.auth-screen .terms-check a{color:#d0f3a8!important;text-decoration:underline;text-underline-offset:3px}
.auth-screen .quiet-button{color:#c5d8ff!important}
.auth-screen .register-card input,.auth-screen .login-card input{background:#101d2b!important;color:#f5f9ff!important;border-color:#657b94!important}
.auth-screen .register-card input::placeholder,.auth-screen .login-card input::placeholder{color:#bbcbdc!important}
.auth-screen .register-card .primary,.auth-screen .login-card .primary{background:#c0e794!important;color:#172333!important}
/* All actionable dialogs use dark cards so their pale text remains visible. */
.modal-back .modal{background:#172433!important;color:#f3f8fd!important;border:1px solid #496078!important;box-shadow:0 24px 80px #0009!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important}
.modal-back .modal h2{color:#fff!important;font-size:19px!important}
.modal-back .modal p,.modal-back .modal .field label{color:#e0ebf5!important;font-size:13px!important;line-height:1.55!important}
.modal-back .modal input,.modal-back .modal select,.modal-back .modal textarea{background:#101d2b!important;color:#f4f8ff!important;border:1px solid #647991!important;font-size:16px!important;min-height:44px!important}
.modal-back .modal input::placeholder{color:#bdcad8!important}
.modal-back .modal .modal-actions .primary.outline{color:#f3f8fd!important;background:#263d51!important}

/*
 * NetPesa mobile legibility layer — 2026-10-17
 * The desktop palette is intentionally unchanged. Mobile-only surfaces use
 * opaque dark backgrounds, explicit foregrounds, and 44px minimum targets.
 * Contrast targets: ordinary text >= 4.5:1, large text >= 3:1.
 */
@media (max-width: 900px) {
  :root { --mobile-bg:#0c1520; --mobile-surface:#182a3d; --mobile-surface-2:#20364c;
    --mobile-input:#0e1c2b; --mobile-text:#f6f9fd; --mobile-soft:#dce7f2;
    --mobile-label:#eef5ff; --mobile-border:#66829d; --mobile-accent:#c5ed95; }
  html { -webkit-text-size-adjust:100%; }
  body,.workspace,.main { color:var(--mobile-text)!important; }
  #main { font-size:15px;line-height:1.6; }
  #main .panel,#main .config-box,#main .chart-card,#main .table-panel,
  #main .table-card,#main .report-card,#main .subscription-card,
  #main .portal-card,#main .empty-card,#main .page-panel,
  #main .report-panel,#main .form-panel {
    background:var(--mobile-surface)!important;color:var(--mobile-text)!important;
    border-color:#405c77!important;
  }
  #main .panel h1,#main .panel h2,#main .panel h3,
  #main .config-box h2,#main .config-box h3,
  #main .head-row h1,#main .page-toolbar h2,
  #main .panel-head h2,#main .info-card strong {
    color:#fff!important;line-height:1.35!important;letter-spacing:0!important;
  }
  #main .panel p,#main .config-box p,#main .info-card p,
  #main .activity p,#main .subhead,#main .metric-foot,
  #main .empty,#main .panel small,#main .feed-text small,
  #main .bar-foot,#main .bar-col span,#main .chart-legend,
  #main .form-help,#main .hint,#main .report-note {
    color:var(--mobile-soft)!important;font-size:13px!important;line-height:1.55!important;
  }
  #main .eyebrow,#main .panel .eyebrow,#main .page-cards .eyebrow {
    color:#daebff!important;font-size:12px!important;font-weight:800!important;letter-spacing:.035em!important;
  }
  #main .field label,#main .filter-bar label,#main .report-tools label,
  #main .form-row label,#main .config-box label,
  #main .sms-switch,#main .terms-check {
    color:var(--mobile-label)!important;font-size:14px!important;
    line-height:1.5!important;font-weight:700!important;
  }
  #main .field input,#main .field select,#main .field textarea,
  #main .filter-bar input,#main .filter-bar select,
  #main .report-tools input,#main .report-tools select,
  #main .page-toolbar input,#main .page-toolbar select,
  #main .search-input,#main .select,#main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  #main select,#main textarea,
  .modal-back .modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .modal-back .modal select,.modal-back .modal textarea,
  .auth-screen .register-card input:not([type="checkbox"]),.auth-screen .login-card input {
    background:var(--mobile-input)!important;color:#fff!important;
    border:1.5px solid var(--mobile-border)!important;
    font-size:16px!important;line-height:1.4!important;
    min-height:46px!important;border-radius:9px!important;
    padding:10px 12px!important;opacity:1!important;
    -webkit-text-fill-color:#fff!important;
  }
  #main input::placeholder,#main textarea::placeholder,
  .modal-back input::placeholder,.modal-back textarea::placeholder,
  .auth-screen .register-card input::placeholder,.auth-screen .login-card input::placeholder {
    color:#bfcedf!important;opacity:1!important;
  }
  #main select option,.modal-back select option { background:#132337;color:#fff; }
  #main input:focus-visible,#main select:focus-visible,#main textarea:focus-visible,
  .modal-back input:focus-visible,.modal-back select:focus-visible,.modal-back textarea:focus-visible,
  .auth-screen input:focus-visible {
    outline:3px solid #c5ed95!important;outline-offset:2px!important;
    border-color:#c5ed95!important;box-shadow:none!important;
  }
  #main .primary,#main .download-link,#main .table-action,
  #main .quiet-button,.modal-back button,.auth-screen button {
    font-size:14px!important;font-weight:750!important;line-height:1.4!important;
    min-height:43px;
  }
  #main .primary.lime,.modal-back .primary.lime,
  .auth-screen .primary.lime {background:#c5ed95!important;color:#162638!important;}
  #main .primary.outline,.modal-back .primary.outline {
    background:#2a435a!important;color:#fff!important;border:1px solid #7695ad!important;
  }
  #main .primary:not(.lime):not(.outline) {background:#c5ed95!important;color:#162638!important;}
  #main .table-wrap,#main .table-scroll {
    background:#142337!important;border-color:#405b75!important;
    overflow-x:auto!important;-webkit-overflow-scrolling:touch;
  }
  #main .table th,#main .table-wrap th,#main th {
    color:#fff!important;background:#263f57!important;font-size:13px!important;
    font-weight:750!important;line-height:1.45!important;
  }
  #main .table td,#main .table-wrap td,#main td {
    color:#f2f7fd!important;font-size:13px!important;line-height:1.55!important;
    background:#16283a!important;
  }
  #main .table tr:nth-child(even) td {background:#1b3044!important;}
  #main .table td b,#main .table td strong {color:#fff!important;}
  #main .panel-head,#main .page-toolbar,#main .filter-bar,
  #main .report-tools {gap:10px;flex-wrap:wrap;}
  #main .form-row {grid-template-columns:minmax(0,1fr)!important;gap:12px;}
  #main .status {font-size:12px!important;font-weight:750!important;}
  #main .status.ok {color:#b9f8d3!important;background:#184e36!important;}
  #main .status.pending {color:#ffde9b!important;background:#543b1e!important;}
  #main .status.failed {color:#ffd1d1!important;background:#612e35!important;}
  #main .status.live {color:#d0e4ff!important;background:#27486f!important;}
  /* Colored management tiles follow KAWIFI's contrast scheme. */
  #main .cards>.metric {min-width:0;min-height:119px!important;padding:13px!important;}
  #main .cards>.metric .metric-label {font-size:13px!important;font-weight:750!important;line-height:1.45!important;}
  #main .cards>.metric .metric-value {font-size:clamp(18px,5vw,24px)!important;line-height:1.3!important;}
  #main .cards>.metric .metric-foot {font-size:12px!important;line-height:1.45!important;}
  #main .cards>.metric:not(:nth-child(4n+4)) .metric-label,
  #main .cards>.metric:not(:nth-child(4n+4)) .metric-value,
  #main .cards>.metric:not(:nth-child(4n+4)) .metric-foot {color:#fff!important;}
  #main .cards>.metric:nth-child(4n+4) .metric-label,
  #main .cards>.metric:nth-child(4n+4) .metric-value,
  #main .cards>.metric:nth-child(4n+4) .metric-foot {color:#142334!important;}
  #main .quick-grid .quick {min-height:90px!important;padding:13px!important;}
  #main .quick-grid .quick strong,#main .quick-grid .quick b,
  #main .quick-grid .quick small {
    color:#fff!important;font-size:13px!important;line-height:1.5!important;
  }
  #main .quick-grid .quick:nth-child(6n+5) strong,
  #main .quick-grid .quick:nth-child(6n+5) b,
  #main .quick-grid .quick:nth-child(6n+5) small {color:#142334!important;}
  #main .page-cards>.info-card {min-width:0;min-height:107px!important;padding:14px!important;}
  #main .page-cards>.info-card p,#main .page-cards>.info-card strong,
  #main .page-cards>.info-card b,#main .page-cards>.info-card .big,
  #main .page-cards>.info-card .eyebrow {
    color:#fff!important;line-height:1.45!important;
  }
  #main .page-cards>.info-card p {font-size:13px!important;}
  #main .page-cards>.info-card:nth-child(4n+3) p,
  #main .page-cards>.info-card:nth-child(4n+3) strong,
  #main .page-cards>.info-card:nth-child(4n+3) b,
  #main .page-cards>.info-card:nth-child(4n+3) .big,
  #main .page-cards>.info-card:nth-child(4n+3) .eyebrow {color:#142334!important;}
  .modal-back {padding:12px!important;overflow-y:auto;align-items:center;}
  .modal-back .modal {
    width:min(100%,540px)!important;max-height:calc(100dvh - 24px)!important;
    padding:18px!important;overflow-y:auto!important;background:#182a3d!important;
    border:1px solid #66829d!important;color:#fff!important;
  }
  .modal-back .modal h2 {font-size:21px!important;color:#fff!important;}
  .modal-back .modal p,.modal-back .modal label,.modal-back .modal small,
  .modal-back .modal .field label {color:#e8f1fa!important;font-size:14px!important;line-height:1.55!important;}
  .modal-back .modal .field {margin:12px 0!important;}
  .modal-back .modal .form-row {grid-template-columns:minmax(0,1fr)!important;gap:10px;}
  .modal-back .modal-actions {display:flex;flex-wrap:wrap;gap:10px;}
  /* Auth forms: high-contrast typography on opaque surfaces. */
  .auth-screen .register-card,.auth-screen .login-card {
    background:#182a3d!important;color:#fff!important;border:1px solid #66829d!important;
  }
  .auth-screen .register-card h2,.auth-screen .login-card h2 {
    color:#fff!important;font-size:22px!important;line-height:1.35!important;
  }
  .auth-screen .register-card>p,.auth-screen .login-card>p,
  .auth-screen .register-note,.auth-screen .terms-check,
  .auth-screen .register-status {color:#e4eef8!important;font-size:14px!important;line-height:1.55!important;}
  .auth-screen .register-card .field label,.auth-screen .login-card .field label {
    color:#f2f7fd!important;font-size:14px!important;line-height:1.5!important;font-weight:750!important;
  }
  .auth-screen .quiet-button {color:#d3e3ff!important;font-size:14px!important;}
  .auth-screen .terms-check a {color:#c5ed95!important;text-decoration:underline!important;}
  .auth-screen .register-card .field,.auth-screen .login-card .field {min-width:0;margin:8px 0!important;}
  .auth-screen .landing-layout:has(.register-card:not([hidden])),
  .auth-screen .landing-layout:has(.login-card:not([hidden])) {overflow:visible!important;padding:16px 12px 32px!important;}
  .auth-screen .register-card,.auth-screen .login-card {padding:19px!important;max-height:none!important;}
  .auth-screen .password-wrap {display:flex;align-items:center;min-width:0;gap:10px;}
  .auth-screen .password-wrap input {width:0!important;flex:1 1 0!important;}
  .auth-screen .password-wrap .quiet-button {white-space:nowrap;min-width:52px;}
  .auth-screen input[type="checkbox"] {accent-color:#c5ed95;min-width:20px;min-height:20px;}
  .topbar .icon-btn,.topbar .logout-button {min-height:42px;min-width:42px;}
  .sidebar .nav button {color:#f0f5fc!important;font-size:14px!important;line-height:1.5!important;min-height:44px;}
  .sidebar .nav button.active {background:#29455e!important;color:#fff!important;}
}
@media (max-width: 390px) {
  .main {padding-inline:12px!important;}
  #main .cards {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  #main .quick-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .auth-screen .register-grid {grid-template-columns:1fr!important;}
}
@media (max-width: 350px) {
  #main .cards,#main .quick-grid {grid-template-columns:1fr!important;}
}

@media (max-width: 900px) {
  /* Native file pickers, chart controls, filter chips and feedback need contrast too. */
  #main input[type="file"],.modal-back input[type="file"] {
    display:block;width:100%;max-width:100%;min-height:46px;padding:9px 10px!important;
    color:#f7fbff!important;background:#0e1c2b!important;
    border:1.5px solid #66829d!important;border-radius:9px!important;
    font-size:14px!important;line-height:1.5!important;
  }
  #main input[type="file"]::file-selector-button,
  .modal-back input[type="file"]::file-selector-button {
    color:#152638!important;background:#c5ed95!important;
    border:0;border-radius:6px;padding:7px 10px;margin-right:9px;
    font:700 13px/1.25 'Merriweather Sans',sans-serif;
  }
  #main .segmented {background:#243c52!important;border:1px solid #6a839c!important;flex-wrap:wrap;}
  #main .segmented button {color:#e7f0fb!important;font-size:13px!important;font-weight:750!important;min-height:35px;}
  #main .segmented button.active {background:#c5ed95!important;color:#152638!important;}
  #main .chart-legend,#main .chart-legend span {color:#e3ecf6!important;font-size:12px!important;}
  #main .table-action {color:#cce6ff!important;text-decoration:underline;text-underline-offset:3px;}
  #main .toast,.toast {background:#263f55!important;color:#fff!important;border:1px solid #7c9ab4!important;font-size:14px!important;}
  #main .report-tools button,#main .filter-bar button {min-height:43px;}
  .auth-screen .auth-error {color:#ffc4c4!important;font-size:14px!important;}
  .auth-screen .register-card input[type="checkbox"] {-webkit-text-fill-color:initial!important;}
}

/* Generated-voucher batch progress and optional first-device locking. */
.voucher-lock-choice{display:flex;align-items:flex-start;gap:12px;cursor:pointer;line-height:1.35}
.voucher-lock-choice input{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:#b6e478}
.voucher-lock-choice span{display:flex;flex-direction:column;gap:5px;min-width:0}
.voucher-lock-choice small{font-size:13px;line-height:1.45;opacity:.9}
.voucher-batch-progress{padding:15px;margin:12px 0;border:1px solid #52687d;border-radius:12px;background:#17283b;color:#f5f9ff}
.voucher-batch-progress[hidden]{display:none!important}
.voucher-batch-progress progress{display:block;width:100%;height:14px;margin:11px 0 8px;accent-color:#b6e478}
.voucher-batch-progress p{font-size:14px;margin:5px 0 8px;color:#fff}
.voucher-batch-progress small{color:#d8e5ef;line-height:1.5;display:block}

/* Administrator MFA and safe voucher actions */
.mfa-qr{display:flex;align-items:center;justify-content:flex-start;margin:16px 0;padding:14px;background:#fff;border-radius:12px;width:max-content;max-width:100%}
.mfa-qr img{display:block;max-width:100%;height:auto;image-rendering:pixelated}
.mfa-manual-key{display:block;padding:12px;background:rgba(90,110,120,.10);border-radius:8px;word-break:break-all;letter-spacing:.09em;user-select:all}
.mfa-recovery{padding:16px;background:rgba(90,110,120,.10);border-radius:10px;white-space:pre-wrap;word-break:break-word;line-height:1.8;font-size:13px}
.voucher-selection{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid rgba(128,140,152,.24);border-radius:12px;margin:12px 0}
.voucher-selection select{padding:9px;border:1px solid rgba(130,145,155,.4);border-radius:8px;min-width:190px;max-width:100%;background:var(--surface,#fff);color:inherit}
.voucher-selection label{display:flex;align-items:center;gap:8px;cursor:pointer}
.voucher-selection input[type=checkbox],input[data-voucher-row]{width:18px;height:18px;accent-color:#81b45b;cursor:pointer}
@media(max-width:650px){.voucher-selection>*{flex:1 1 160px}.voucher-selection button{min-height:44px}.mfa-qr{margin:auto}}

/* NetPesa premium refresh — dark teal and indigo surfaces with high-contrast actions. */
:root{--ink:#f0f5fc;--muted:#b7c7d7;--line:#2c4055;--paper:#101b2c;--white:#17263a;--navy:#0a1423;--navy2:#14283d;--lime:#d6f27d;--blue:#76a5ff;--blue2:#223752;--green:#54d7a5;--greenbg:#163a34;--orange:#f0bd66;--orangebg:#3b3022;--red:#ff858d;--redbg:#40252e;--shadow:0 16px 42px #02091455}
html{background:#101b2c;scroll-behavior:smooth}body{background:radial-gradient(ellipse at 82% -15%,#1c4960 0,transparent 35%),radial-gradient(ellipse at 15% 40%,#20264c 0,transparent 40%),linear-gradient(135deg,#0c1727,#101c2e 55%,#102932);color:#eff6ff;min-height:100vh}.shell{background:transparent}.workspace{background:transparent}.sidebar{background:linear-gradient(180deg,#091321,#101c2e 65%,#142738);border-right:1px solid #ffffff10}.brand{padding-bottom:20px}.nav-label{color:#91a8bf}.nav button{color:#bdc9d7}.nav button.active{background:linear-gradient(100deg,#25495a,#25395c);box-shadow:inset 3px 0 #d6f27d;color:#fff}.nav button.active .nav-icon{color:#d6f27d}.side-bottom{border-color:#ffffff1c}.router-state,.side-bottom small{color:#c5d3e0}.topbar{background:#0c1726eF;border-color:#ffffff16;backdrop-filter:blur(18px);color:#eaf3fb}.crumb,.business small{color:#a6b8ca}.crumb b,.business strong{color:#f4f8fc}.business{border-color:#ffffff20}.avatar{background:#24445d;color:#b5eddd}.icon-btn,.logout-button{background:#15263a;border-color:#31465e;color:#e2edf7}.icon-btn:hover,.logout-button:hover{background:#20354c;color:#fff}.main{padding-top:26px}.head-row h1{color:#f5f8fe}.subhead{color:#b7c7d7}.panel,.page-panel,.metric,.info-card,.config-box{background:#17263a;border:1px solid #ffffff12;color:#edf4fb;box-shadow:0 12px 30px #02091435}.panel-head{border-bottom:1px solid #ffffff0a}.panel-head h2,.config-box h3{color:#f6f9fd}.panel-head p,.panel p,.config-box p,.empty{color:#bdcbd9}.table th{background:#1f334a;border-color:#33485f;color:#d5e2ee}.table td{border-color:#ffffff12;color:#e5eef7}.table b,.table td b,.table td strong{color:#fff}.table-action{color:#8db8ff}.table-action:hover{color:#d1e6ff}.status.ok{color:#a5f1cf;background:#174536}.status.pending{color:#ffe0a3;background:#473721}.status.failed{color:#ffb1b6;background:#48252c}.status.live{color:#bbd4ff;background:#243856}.select,.search-input,.field input,.field select,.field textarea,.filter-bar input,.filter-bar select{background:#0f1b2b;color:#eff6ff;border-color:#39516a}.select option{background:#102034;color:#eff6ff}.primary{background:#263c56;color:#fff;border-radius:12px;min-height:44px}.primary:hover{background:#34536e}.primary.lime{background:linear-gradient(135deg,#d8f285,#9ee0bd);color:#102638;box-shadow:0 8px 24px #7bd4a42b}.primary.lime:hover{filter:brightness(1.04)}.primary.outline{background:#192b40;border:1px solid #426078;color:#e9f4fb}.primary.outline:hover{background:#233a51}.metric,.info-card,.quick{overflow:hidden;position:relative}.cards>.metric{border:1px solid #ffffff24!important;border-radius:18px!important;box-shadow:0 14px 32px #0209144a!important;min-height:132px;padding:18px!important;transition:transform .18s,box-shadow .18s}.cards>.metric:hover,.info-card:hover{transform:translateY(-2px);box-shadow:0 18px 36px #02091455!important}.cards>.metric:nth-child(4n+1){background:linear-gradient(140deg,#127c6d,#1ca98e)!important}.cards>.metric:nth-child(4n+2){background:linear-gradient(140deg,#3253b4,#597ce9)!important}.cards>.metric:nth-child(4n+3){background:linear-gradient(140deg,#903a73,#c34d89)!important}.cards>.metric:nth-child(4n){background:linear-gradient(140deg,#ad681d,#d99c36)!important}.cards>.metric:nth-child(4n+4) .metric-label,.cards>.metric:nth-child(4n+4) .metric-value,.cards>.metric:nth-child(4n+4) .metric-foot,.cards>.metric:nth-child(4n+4) .metric-icon{color:#fff!important}.cards>.metric .metric-value{color:#fff!important;font-size:clamp(19px,2vw,28px)!important}.cards>.metric .metric-label{font-size:13px!important;color:#f2f8ff!important}.cards>.metric .metric-icon{background:#ffffff26!important;color:#fff!important}.dashboard-head{align-items:center;margin-bottom:18px}.dashboard-actions .premium-action{min-width:140px;min-height:48px;border-radius:14px;font-size:14px!important;box-shadow:0 10px 25px #0004}.dashboard-actions #sellBtn{background:linear-gradient(135deg,#d9f47e,#80e0b5)!important}.dashboard-actions #withdrawBtn{background:linear-gradient(135deg,#263d60,#375b84)!important;border:1px solid #6085a7!important;color:#fff!important}.active-users-card{display:flex;align-items:center;gap:12px;margin:0 0 15px;padding:14px 18px;min-height:78px;border-radius:16px;background:linear-gradient(105deg,#132f3a,#1a344b);border-color:#3b6572}.active-users-card strong{font-size:29px;line-height:1;color:#8be6ce}.active-users-card>span:last-child{font-size:14px;color:#dce9f4;font-weight:700}.active-users-pulse{width:10px;height:10px;border-radius:50%;background:#62e0a9;box-shadow:0 0 0 6px #62e0a91e}.dashboard-charts{grid-template-columns:minmax(0,1.45fr) minmax(280px,.9fr)}.chart-hint{display:block;font-size:11px;color:#9fb1c2;margin-top:3px}.chart-wrap{position:relative;height:255px;padding:15px 14px 13px;touch-action:pan-y}.chart-wrap canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:crosshair;outline:none}.chart-wrap canvas:focus-visible{outline:2px solid #d6f27d;outline-offset:2px;border-radius:8px}.chart-tip{position:absolute;right:14px;top:7px;color:#ddf4ed;font-size:12px;font-weight:750;pointer-events:none}.snapshot-body{padding:14px 17px 18px;display:grid;grid-template-columns:minmax(120px,.8fr) minmax(140px,1fr);gap:14px;align-items:center}.sales-donut{width:min(100%,190px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto;box-shadow:0 8px 24px #02091466;transition:background .2s}.donut-center{width:61%;height:61%;border-radius:50%;background:#15243a;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;box-shadow:inset 0 0 0 1px #ffffff16}.donut-center strong{font-size:clamp(11px,1.4vw,16px);color:#f4f8fd;overflow-wrap:anywhere}.donut-center span{font-size:10px;color:#b2c4d5;margin-top:3px}.snapshot-legend{display:grid;gap:5px;min-width:0}.snapshot-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:34px;padding:5px 8px;border:1px solid transparent;border-radius:9px;text-align:left;color:#dce8f2;background:transparent;cursor:pointer}.snapshot-item i{width:9px;height:9px;border-radius:50%;background:var(--swatch)}.snapshot-item span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.snapshot-item b{font-size:10px;color:#f6f9fc}.snapshot-item.active,.snapshot-item:hover{background:#ffffff0d;border-color:#ffffff17}.lower-grid{gap:16px}.quick-grid{gap:10px;padding:10px 15px 16px}.quick-grid .quick{background:linear-gradient(140deg,#1d344a,#1d2e48)!important;border:1px solid #ffffff14!important;border-radius:13px;min-height:72px;box-shadow:0 7px 18px #02091435!important}.quick-grid .quick:nth-child(6n+1){background:linear-gradient(140deg,#145c53,#187866)!important}.quick-grid .quick:nth-child(6n+2){background:linear-gradient(140deg,#273f75,#37599b)!important}.quick-grid .quick:nth-child(6n+3){background:linear-gradient(140deg,#603754,#86486e)!important}.quick-grid .quick:nth-child(6n+4){background:linear-gradient(140deg,#74501e,#a36e29)!important}.quick-grid .quick:nth-child(6n+5){background:linear-gradient(140deg,#284f68,#316c80)!important}.quick-grid .quick:nth-child(6n+6){background:linear-gradient(140deg,#37406a,#565997)!important}.quick-grid .quick strong,.quick-grid .quick .qi{color:#fff!important}.feed-row{border-color:#ffffff12}.feed-icon{background:#253d54;color:#9ec9ff}.feed-text b{color:#f4f8fc}.feed-text small{color:#b6c5d4}.feed-amount{color:#dce9f3}.page-panel{padding:20px}.page-cards{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:10px!important;margin:10px 0 16px!important}.page-cards>.info-card{min-height:92px!important;padding:12px 14px!important;border-radius:15px!important;box-shadow:0 9px 20px #0209142b!important}.page-cards>.info-card:nth-child(4n+1){background:linear-gradient(140deg,#155d65,#187d80)!important;border-color:#ffffff18!important}.page-cards>.info-card:nth-child(4n+2){background:linear-gradient(140deg,#294679,#3a60a1)!important;border-color:#ffffff18!important}.page-cards>.info-card:nth-child(4n+3){background:linear-gradient(140deg,#693e70,#92508f)!important;border-color:#ffffff18!important}.page-cards>.info-card:nth-child(4n){background:linear-gradient(140deg,#825421,#ae7529)!important;border-color:#ffffff18!important}.page-cards>.info-card .eyebrow,.page-cards>.info-card p,.page-cards>.info-card .big,.page-cards>.info-card strong{color:#f7fbff!important}.page-cards>.info-card .eyebrow{font-size:11px!important}.page-cards>.info-card .big{font-size:21px!important;margin-top:6px!important}.premium-package-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}.premium-package-grid .info-card{min-height:126px!important;padding:12px!important}.premium-package-grid .info-card p{margin:6px 0;font-size:11px!important}.premium-package-grid .info-card .table-action{padding:5px 8px;border-radius:7px;background:#ffffff12}.page-toolbar,.filter-bar,.report-tools,.voucher-control-row{gap:8px}.search-input{min-width:min(240px,100%)}.table-wrap{border-radius:10px;-webkit-overflow-scrolling:touch}.voucher-desk{gap:10px}.voucher-control-row{background:#ffffff06;border:1px solid #ffffff10;padding:9px;border-radius:12px}.voucher-select-all,.voucher-selection-count,.voucher-row-count,.voucher-bulk-row>label,.voucher-filter-row>strong,.voucher-table-size{color:#d9e5ef!important}.voucher-lookup label{color:#e7f0f8}.voucher-filter-row{border:1px solid #ffffff10!important;padding:9px!important}.voucher-export{border:0!important;border-top:1px solid #ffffff16!important;background:none!important;border-radius:0!important}.voucher-export button{background:#1a2a3e!important;color:#e9f2fa!important;border-color:#3a5068!important}.voucher-table-panel{border-color:#ffffff18}.voucher-table-panel .table th{background:#20354b!important;color:#d8e7f4!important}.voucher-table-panel .table td{color:#e9f3fa!important}.wallet-balance-card{min-height:225px;border:1px solid #ffffff20;border-radius:22px;padding:clamp(22px,5vw,40px);background:radial-gradient(circle at 85% 20%,#45cbb038,transparent 32%),linear-gradient(135deg,#14445a,#1c3150 58%,#382e5e);box-shadow:0 22px 48px #02091455;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px}.wallet-balance-card .eyebrow{color:#c5e7dc}.wallet-amount{font-size:clamp(30px,7vw,52px);font-weight:850;letter-spacing:-.04em;color:#fff;overflow-wrap:anywhere}.wallet-withdraw{min-width:160px!important}.subscription-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border-radius:18px;background:linear-gradient(130deg,#153f4c,#253d61 65%,#413563);border:1px solid #ffffff18;box-shadow:0 14px 30px #02091445}.subscription-days{display:grid;gap:3px}.subscription-days strong{font-size:clamp(42px,8vw,64px);line-height:1;color:#d9f486}.subscription-days>span:last-child{color:#bfd0df;font-size:12px}.subscription-actions{display:flex;flex-wrap:wrap;gap:9px}.compact-section-title{font-size:14px;margin:22px 0 8px;color:#f1f6fc}.sms-summary{grid-template-columns:minmax(145px,220px)!important}.sms-summary .info-card{min-height:86px!important}.access-router-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-bottom:16px}.router-mini-card{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:linear-gradient(135deg,#182f43,#1d3151);border:1px solid #ffffff17;border-radius:13px;padding:13px}.router-mini-card strong{color:#f5f9ff}.router-mini-card>span:not(.status){color:#bdccdb}.router-mini-card .status{margin-left:auto}.pppoe-summary{display:flex;gap:10px;margin-bottom:14px}.pppoe-count{display:flex;align-items:center;gap:10px;padding:10px 15px;border-radius:12px;background:linear-gradient(135deg,#193c55,#2e4770);border:1px solid #ffffff14}.pppoe-count span{font-size:12px;color:#c1d1e0}.pppoe-count strong{font-size:20px;color:#fff}.config-box{border-radius:14px;padding:16px}.field label,.filter-bar label{color:#dbe7f2!important}.toast{background:#182b41;color:#f4f8fc;border:1px solid #ffffff1b}.modal{background:#17263a;color:#f2f7fb;border:1px solid #ffffff20}.modal p{color:#c0cedc}.modal-actions .primary.outline{color:#edf4fa}.table-action,.download-link{touch-action:manipulation}.nav-scrim{display:none}
@media(max-width:900px){.dashboard-charts{grid-template-columns:1fr 1fr}.snapshot-body{grid-template-columns:1fr}.sales-donut{width:min(100%,165px)}.snapshot-legend{gap:3px}.snapshot-item{min-height:32px}.page-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.sidebar{z-index:41}.nav-scrim{position:fixed;inset:0;background:#020713a8;backdrop-filter:blur(3px);z-index:40;opacity:0;pointer-events:none;display:block;transition:opacity .2s}.nav-open .nav-scrim{opacity:1;pointer-events:auto}.topbar{background:#0c1726f2;padding:0 12px}.main{padding:16px 13px 36px!important}.head-row{margin-bottom:15px}.head-row h1{font-size:24px}.dashboard-head{flex-direction:row;align-items:center}.dashboard-actions{width:auto!important}.dashboard-actions .premium-action{min-width:0;min-height:43px;padding:9px 12px!important;flex:0 1 auto!important}.cards.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.cards>.metric{min-height:110px!important;padding:13px!important;border-radius:15px!important}.cards>.metric .metric-value{font-size:clamp(16px,4.5vw,22px)!important}.content-grid,.dashboard-charts{grid-template-columns:1fr!important;gap:12px}.chart-wrap{height:225px!important;padding:18px 10px 12px}.snapshot-body{grid-template-columns: minmax(110px,.8fr) minmax(135px,1fr);gap:10px;padding:12px}.sales-donut{width:min(100%,160px)}.snapshot-item{grid-template-columns:9px minmax(0,1fr);gap:7px;padding:5px}.snapshot-item b{grid-column:2;font-size:10px}.panel-head{padding:14px 14px 9px}.panel-head h2{font-size:14px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quick-grid .quick{min-height:60px;padding:12px!important}.page-panel{padding:12px!important}.page-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-cards>.info-card{min-height:82px!important;padding:10px!important}.page-cards>.info-card .big{font-size:18px!important}.premium-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.premium-package-grid .info-card{min-height:119px!important}.table-wrap{width:100%;overflow-x:auto}.table{min-width:620px}.voucher-control-row{align-items:stretch}.voucher-top-row{display:grid;grid-template-columns:1fr;gap:8px}.voucher-lookup{order:0;min-width:0;width:100%;max-width:none}.voucher-selection-count{justify-self:start}.voucher-filter-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.voucher-filter-row>strong{grid-column:1/-1}.voucher-filter-row .select{min-width:0!important;width:100%;max-width:none!important}.voucher-buttons button{flex:1;min-height:46px}.voucher-export button{flex:1 1 20%;min-width:64px}.voucher-table-size{min-width:0!important;margin:0!important}.voucher-table-panel .table{min-width:620px}.wallet-balance-card{min-height:210px}.wallet-withdraw{width:100%}.subscription-card{align-items:stretch;flex-direction:column;padding:17px}.subscription-actions{display:grid;grid-template-columns:1fr 1fr}.subscription-actions button{min-width:0;white-space:normal}.access-router-list{grid-template-columns:1fr}.lower-grid{grid-template-columns:1fr}.page-toolbar{align-items:stretch;flex-direction:column}}
@media(max-width:420px){.top-actions{gap:5px}.logout-button{min-width:38px;padding:0 8px}.logout-button span:last-child{display:none}.business{border:0;padding-left:0}.top-actions .icon-btn{width:34px;height:34px}.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-actions{width:100%!important}.dashboard-actions .premium-action{flex:1!important}.cards.dashboard-metrics{gap:7px!important}.cards>.metric{min-height:96px!important;padding:10px!important}.metric-label{font-size:11px!important}.metric-value{font-size:16px!important}.chart-wrap{height:205px!important}.snapshot-body{grid-template-columns:1fr}.sales-donut{width:min(68vw,175px)}.snapshot-legend{grid-template-columns:1fr 1fr}.snapshot-item{grid-template-columns:8px 1fr;min-height:39px}.page-cards,.premium-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-panel{padding:10px!important}.voucher-filter-row{grid-template-columns:1fr 1fr!important}.voucher-export{flex-wrap:wrap}.voucher-export button{flex:1 1 40%}.subscription-actions{grid-template-columns:1fr}.active-users-card{padding:12px 14px;min-height:68px}.active-users-card strong{font-size:26px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.auth-screen{background:radial-gradient(ellipse at 80% 8%,#26745a55,transparent 32%),radial-gradient(ellipse at 12% 85%,#4556a455,transparent 34%),linear-gradient(135deg,#0b1727,#14283c 58%,#122f35)!important;color:#edf6fa!important}
.landing-nav{background:#0b1727b8;border-color:#ffffff18;backdrop-filter:blur(16px)}
.landing-brand strong{color:#f4f8fc}.landing-brand small{color:#aec0d0}.landing-copy h1{color:#f5fafc}.landing-copy h1 em{color:#d6f27d}.landing-copy>p{color:#c3d1dd!important}
.register-card,.login-card{background:linear-gradient(145deg,#17283c,#132337)!important;color:#f2f7fc!important;border:1px solid #ffffff1c!important;box-shadow:0 24px 65px #02091468!important}
.register-card h2,.login-card h2{color:#f5f9fd}.register-card>p,.login-card>p,.register-note{color:#bdccda!important}.register-card .field label,.login-card .field label{color:#dce8f2!important}

/* Unified premium metric tiles across Dashboard and every module. */
body{background:linear-gradient(132deg,#0a1728 0%,#10313d 47%,#1b2143 100%)}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 80% 8%,#32bb9e26,transparent 32%),radial-gradient(ellipse at 10% 90%,#6476e526,transparent 36%),radial-gradient(ellipse at 52% 42%,#3b5f7820,transparent 55%)}
.shell,.auth-screen{position:relative;z-index:1}
.cards>.metric,.page-cards>.info-card{height:128px!important;min-height:128px!important;max-height:128px!important;padding:14px 16px!important;border-radius:17px!important;border:1px solid #ffffff28!important;box-shadow:0 12px 28px #02091448!important;display:flex;flex-direction:column;justify-content:center;gap:2px;transition:transform .18s ease,box-shadow .18s ease!important}
.cards>.metric:hover,.page-cards>.info-card:hover{transform:translateY(-2px)!important;box-shadow:0 18px 34px #02091462!important}
.cards>.metric:nth-child(4n+1),.page-cards>.info-card:nth-child(4n+1){background:linear-gradient(142deg,#126b68,#159b88)!important}
.cards>.metric:nth-child(4n+2),.page-cards>.info-card:nth-child(4n+2){background:linear-gradient(142deg,#334bb0,#526fe0)!important}
.cards>.metric:nth-child(4n+3),.page-cards>.info-card:nth-child(4n+3){background:linear-gradient(142deg,#7c3c76,#ad4d91)!important}
.cards>.metric:nth-child(4n),.page-cards>.info-card:nth-child(4n){background:linear-gradient(142deg,#936020,#bd852b)!important}
.cards>.metric .metric-top{min-height:25px}
.cards>.metric .metric-value,.page-cards>.info-card .big{font-size:clamp(18px,2vw,25px)!important;line-height:1.15!important;margin:5px 0 0!important;font-weight:850!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cards>.metric .metric-label,.page-cards>.info-card .eyebrow{font-size:12px!important;line-height:1.25!important;font-weight:750!important}
.cards>.metric .metric-icon{width:27px;height:27px;border-radius:9px}
.page-cards>.info-card p{font-size:10px!important;line-height:1.25!important;margin:4px 0 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.page-cards>.info-card>strong{font-size:12px!important;line-height:1.2!important;margin-top:2px}
.premium-package-grid>.info-card{gap:2px!important;padding:10px 12px!important}
.premium-package-grid>.info-card .eyebrow{font-size:10px!important}
.premium-package-grid>.info-card .big{font-size:19px!important;margin:3px 0!important}
.premium-package-grid>.info-card p{font-size:9px!important;line-height:1.2!important;margin:2px 0!important;-webkit-line-clamp:1}
.premium-package-grid>.info-card .table-action{font-size:10px!important;padding:4px 7px!important;min-height:28px;margin-top:2px}
.page-cards>.info-card .table-action{font-size:11px!important}
@media(max-width:760px){.cards>.metric,.page-cards>.info-card{height:104px!important;min-height:104px!important;max-height:104px!important;padding:11px!important;border-radius:14px!important}.cards>.metric .metric-value,.page-cards>.info-card .big{font-size:clamp(16px,4vw,20px)!important}.page-cards>.info-card p{font-size:9px!important}}
@media(max-width:420px){.cards>.metric,.page-cards>.info-card{height:96px!important;min-height:96px!important;max-height:96px!important;padding:9px!important;border-radius:13px!important}.cards>.metric .metric-label,.page-cards>.info-card .eyebrow{font-size:10px!important}.cards>.metric .metric-value,.page-cards>.info-card .big{font-size:16px!important}.premium-package-grid>.info-card{padding:8px!important}.premium-package-grid>.info-card .table-action{font-size:9px!important;padding:3px 5px!important}}

/* Stronger contrast and readable type for metric cards on phones. */
@media(max-width:760px){
 #main .cards>.metric,#main .page-cards>.info-card{height:108px!important;min-height:108px!important;max-height:108px!important;padding:11px!important;background:linear-gradient(145deg,#123b58,#174d66)!important;border:1px solid #648ba6!important;color:#fff!important}
 #main .cards>.metric:nth-child(4n+2),#main .page-cards>.info-card:nth-child(4n+2){background:linear-gradient(145deg,#263d75,#344f91)!important}
 #main .cards>.metric:nth-child(4n+3),#main .page-cards>.info-card:nth-child(4n+3){background:linear-gradient(145deg,#56325f,#704274)!important}
 #main .cards>.metric:nth-child(4n),#main .page-cards>.info-card:nth-child(4n){background:linear-gradient(145deg,#61441f,#795827)!important}
 #main .cards>.metric .metric-label,#main .cards>.metric .metric-value,#main .cards>.metric .metric-foot,
 #main .page-cards>.info-card .eyebrow,#main .page-cards>.info-card .big,#main .page-cards>.info-card strong,#main .page-cards>.info-card p{color:#fff!important;text-shadow:0 1px 1px #07131e55}
 #main .cards>.metric .metric-label,#main .page-cards>.info-card .eyebrow{font-size:12px!important;line-height:1.35!important;font-weight:750!important}
 #main .cards>.metric .metric-value,#main .page-cards>.info-card .big{font-size:18px!important;line-height:1.25!important}
 #main .cards>.metric .metric-foot,#main .page-cards>.info-card p{font-size:11px!important;line-height:1.35!important}
}
@media(max-width:390px){#main .cards>.metric,#main .page-cards>.info-card{height:112px!important;min-height:112px!important;max-height:112px!important}#main .cards>.metric .metric-label,#main .page-cards>.info-card .eyebrow{font-size:11.5px!important}}

/* Keep package actions level and the same width inside every package card. */
.premium-package-grid>.info-card{align-items:stretch!important}
.package-actions{display:flex;align-items:stretch;gap:8px;width:100%;margin-top:auto;padding-top:5px}
.package-action{flex:1 1 0;min-width:0;min-height:32px;padding:6px 8px;border:1px solid transparent;border-radius:8px;font-size:11px!important;font-weight:800!important;line-height:1.15!important;text-align:center;white-space:nowrap}
.package-action.edit{background:#eaf1ff;color:#183f87;border-color:#9db4dd}
.package-action.remove{background:#fff0f0;color:#862b36;border-color:#e7a6ae}
.package-action:hover,.package-action:focus-visible{filter:brightness(1.08);outline:2px solid #d6f27d;outline-offset:1px}
@media(max-width:420px){.package-actions{gap:6px}.package-action{min-height:30px;padding:5px 5px;font-size:10px!important}}

/* NetPesa premium blue / white design system. Presentation-only overrides. */
:root{--np-blue:#1767f2;--np-navy:#092858;--np-sky:#eff6ff;--np-border:#dce9fc}
body,.workspace,.main{background:#f3f8ff!important;color:#142e53!important}
.sidebar{background:linear-gradient(165deg,#082c67,#0b4da5 70%,#0d3679)!important;border-right:1px solid #2663b5!important}
.sidebar .nav{display:grid;gap:7px;padding:10px}
.sidebar .nav button{border:1px solid #ffffff29!important;border-radius:14px!important;background:linear-gradient(120deg,#164e9b,#216ec7)!important;color:#fff!important;box-shadow:0 5px 14px #001c5238!important;min-height:44px!important;font-weight:650!important;transition:transform .15s,filter .15s}
.sidebar .nav button:nth-child(6n+2){background:linear-gradient(120deg,#086b9f,#16a5d9)!important}
.sidebar .nav button:nth-child(6n+3){background:linear-gradient(120deg,#384bb2,#7374ed)!important}
.sidebar .nav button:nth-child(6n+4){background:linear-gradient(120deg,#126f83,#13a6a9)!important}
.sidebar .nav button:nth-child(6n+5){background:linear-gradient(120deg,#4b4ab6,#9167e5)!important}
.sidebar .nav button:nth-child(6n){background:linear-gradient(120deg,#125da6,#3984e8)!important}
.sidebar .nav button.active{outline:2px solid #fff!important;outline-offset:1px;filter:brightness(1.15)}
.sidebar .nav button:hover{transform:translateX(2px);filter:brightness(1.12)}
.sidebar .nav-icon{background:#ffffff25!important;border-radius:9px!important;color:white!important}
.topbar{background:#fff!important;border-bottom:1px solid var(--np-border)!important;color:#163966!important}
.topbar .crumb,.topbar b,.business strong{color:#143e79!important}
.cards>.metric:nth-child(6n+1),.page-cards>.info-card:nth-child(6n+1){background:linear-gradient(130deg,#0d4bb8,#268cf7)!important}
.cards>.metric:nth-child(6n+2),.page-cards>.info-card:nth-child(6n+2){background:linear-gradient(130deg,#0879a7,#19b9d5)!important}
.cards>.metric:nth-child(6n+3),.page-cards>.info-card:nth-child(6n+3){background:linear-gradient(130deg,#3943b9,#8178f5)!important}
.cards>.metric:nth-child(6n+4),.page-cards>.info-card:nth-child(6n+4){background:linear-gradient(130deg,#11649e,#32a2e7)!important}
.cards>.metric:nth-child(6n+5),.page-cards>.info-card:nth-child(6n+5){background:linear-gradient(130deg,#155d8b,#20b0a8)!important}
.cards>.metric:nth-child(6n),.page-cards>.info-card:nth-child(6n){background:linear-gradient(130deg,#5641ae,#9773dd)!important}
.cards>.metric,.page-cards>.info-card{border:1px solid #ffffff55!important;border-radius:18px!important;box-shadow:0 10px 22px #164b9b23!important;min-width:0;color:#fff!important}
.cards>.metric *, .page-cards>.info-card *{color:#fff!important}
.panel,.chart-card,.table-card,.config-box,.quick,.subscription-card,.portal-card,.report-card,.modal-card,.modal-content,.dialog{background:#fff!important;color:#17365c!important;border:1px solid var(--np-border)!important;border-radius:17px!important;box-shadow:0 6px 22px #1b5baf10!important}
.panel h2,.panel h3,.config-box h3,.head-row h1,.table-wrap th,.info-card b,.quick b,.metric-value{color:#163e75!important}
.table-wrap,.table-scroll{background:#fff!important;border-color:var(--np-border)!important}
.table-wrap th,th{background:#eaf3ff!important;color:#24558f!important;border-color:var(--np-border)!important}
td,table{color:#23446d!important;border-color:#e5edf8!important}tr:hover td{background:#f1f7ff!important}
.field label{color:#274c7a!important}.field input,.field select,.field textarea,input,select,textarea{background:#fff;color:#143861;border-color:#c7dafa}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#277df4;box-shadow:0 0 0 3px #277df426}
.primary,.primary.lime{background:#1667ee!important;color:#fff!important;border-color:#1667ee!important}.primary.outline{background:#fff!important;color:#1654ae!important;border-color:#bed6fb!important}
.auth-screen{background:radial-gradient(circle at 15% 10%,#246ad2,transparent 43%),linear-gradient(135deg,#092858,#1165b6)!important}
.register-card,.login-card{background:#fff!important;color:#17365c!important;border-color:#d8e7fc!important}
.register-card h2,.login-card h2{color:#153e78!important}.register-card>p,.login-card>p,.register-note{color:#58749a!important}
.register-card .field input,.login-card .field input{background:#f8fbff;color:#153e78;border-color:#c6dafa}
.location-support-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:18px 0;padding:16px;background:#eff6ff;border:1px solid #d1e3ff;border-radius:14px}.location-support-grid h3,.location-support-grid p{grid-column:1/-1;margin:0}.location-support-grid p{color:#557399}
.brand-logo{object-fit:contain;max-height:62px;border-radius:8px}
@media(max-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}.cards>.metric{min-height:90px;padding:11px!important}.sidebar{max-width:min(86vw,310px)}.main{padding:12px!important}.topbar{height:55px}.location-support-grid{grid-template-columns:1fr}.page-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:360px){.cards>.metric{padding:8px!important}.metric-value{font-size:16px!important}}


/* NETPESA UNIFIED PRIMARY BLUE + WHITE THEME — all screens */
:root{color-scheme:light;--ink:#12335f!important;--muted:#58739b!important;--line:#d7e6fb!important;--paper:#f3f8ff!important;--white:#fff!important;--navy:#073b87!important;--navy2:#0b58b9!important;--lime:#075BCE!important;--blue:#075BCE!important;--blue2:#eaf3ff!important;--green:#075BCE!important;--greenbg:#eaf3ff!important;--orange:#075BCE!important;--orangebg:#eaf3ff!important;--np-blue:#075BCE;--np-navy:#073b87;--np-sky:#eff6ff;--np-border:#d7e6fb}
html,body,.workspace,.main{background:#f3f8ff!important;color:#12335f!important}
.auth-screen{background:radial-gradient(circle at 10% 12%,#e4f1ff 0,transparent 43%),linear-gradient(140deg,#f8fbff,#eaf3ff)!important;color:#12335f!important}
.landing-nav{background:#fff!important;border-bottom:1px solid #d7e6fb!important}
.landing-brand strong,.landing-copy h1,.landing-copy h1 em,.landing-copy .feature b{color:#073b87!important}
.landing-brand small,.landing-copy>p,.landing-copy .feature small,.landing-footer{color:#58739b!important}
.landing-copy .eyebrow{color:#075BCE!important}.landing-copy .feature{background:#fff!important;border:1px solid #d7e6fb!important;border-radius:12px!important}
.register-card,.login-card,.auth-card,.modal-card,.modal-content,.dialog{background:#fff!important;color:#12335f!important;border:1px solid #d7e6fb!important;box-shadow:0 16px 48px #0a4c9e16!important}
.register-card h2,.login-card h2,.auth-card h2,.modal-card h2,.modal-content h2{color:#073b87!important}
.register-card p,.login-card p,.register-note,.terms-check,.modal-card p{color:#58739b!important}
.register-card .field label,.login-card .field label,.field label,label{color:#164b91!important}
input:not([type=checkbox]):not([type=radio]),select,textarea,.select,.search-input,.field input,.field select,.field textarea,.register-card .field input,.login-card .field input{background:#fff!important;color:#12335f!important;border:1px solid #bfd6f6!important;box-shadow:none!important;color-scheme:light}
input::placeholder,textarea::placeholder{color:#829abb!important}
input:focus,select:focus,textarea:focus,.field input:focus{outline:2px solid #075BCE!important;outline-offset:1px;border-color:#075BCE!important;box-shadow:0 0 0 3px #075BCE20!important}
input[type=checkbox],input[type=radio]{accent-color:#075BCE!important}
button.primary,.primary,.primary.lime,button[type=submit],.landing-actions .primary{background:#075BCE!important;color:#fff!important;border:1px solid #075BCE!important;box-shadow:0 5px 14px #075BCE25!important}
.primary:hover,button.primary:hover,button[type=submit]:hover{background:#074ba8!important;border-color:#074ba8!important;color:#fff!important}
.primary.outline,.logout-button,.icon-btn,.quiet-button,.package-action.edit{background:#fff!important;color:#1255b4!important;border:1px solid #bdd5f7!important}
a,.terms-check a{color:#075BCE!important}
.sidebar{background:linear-gradient(180deg,#073b87,#0c58b9)!important;color:#fff!important;border-color:#1259ae!important}
.sidebar a,.sidebar strong,.sidebar small,.sidebar .brand,.sidebar .nav-title{color:#fff!important}
.sidebar .nav button,.sidebar .nav button:nth-child(n){background:linear-gradient(120deg,#0c53b0,#1979e9)!important;color:#fff!important;border:1px solid #ffffff32!important}
.sidebar .nav button.active{background:#fff!important;color:#073b87!important;outline:none!important}
.sidebar .nav button.active .nav-icon{color:#073b87!important;background:#eaf3ff!important}
.topbar{background:#fff!important;color:#073b87!important;border-bottom:1px solid #d7e6fb!important}
.cards>.metric:nth-child(n),.page-cards>.info-card:nth-child(n){background:linear-gradient(135deg,#0b4eb0,#1977e8)!important;color:#fff!important;border:1px solid #3489ed!important}
.cards>.metric:nth-child(3n+2),.page-cards>.info-card:nth-child(3n+2){background:linear-gradient(135deg,#073b87,#075BCE)!important}
.cards>.metric:nth-child(3n),.page-cards>.info-card:nth-child(3n){background:linear-gradient(135deg,#146ac7,#55a2f7)!important}
.cards>.metric *, .page-cards>.info-card *,.cards>.metric .metric-value,.page-cards>.info-card .big{color:#fff!important}
.panel,.chart-card,.table-card,.info-card:not(.page-cards>.info-card),.config-box,.quick,.subscription-card,.portal-card,.report-card,.empty-card,.table-wrap,.table-scroll,.cards>div:not(.metric){background:#fff!important;color:#12335f!important;border-color:#d7e6fb!important}
.panel h2,.panel h3,.config-box h3,.head-row h1,.quick b,.table-wrap th{color:#073b87!important}
.table-wrap th,th{background:#eaf3ff!important;color:#073b87!important;border-color:#d7e6fb!important}
.table-wrap td,td,table{color:#12335f!important;border-color:#e1ecfb!important}
tr:hover td{background:#eff6ff!important}
.badge,.pill{filter:none!important}
.quick:nth-child(n){background:#fff!important;border-color:#d7e6fb!important}
.quick small,.business small,.metric-foot,.subhead,.empty{color:#58739b!important}
@media(max-width:800px){.landing-layout{padding:14px!important}.register-card,.login-card{width:min(100%,520px);box-shadow:0 12px 32px #0b4eb01c!important}.main{padding:12px!important}}
