*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:#f4f7fb;color:#172033}a{text-decoration:none;color:#155fa8}button,input,select,textarea{font:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:11px 15px;background:#155fa8;color:#fff;font-weight:700;cursor:pointer}.btn.secondary{background:#eaf3fb;color:#15598f}.btn.danger{background:#fdecec;color:#b42318}.btn.small{padding:8px 10px;font-size:12px}
/* Public header */
.public-topbar{display:flex;justify-content:center;background:linear-gradient(135deg,#113f78,#0d70b5);padding:12px 20px;color:#fff}.brand{display:flex;align-items:center;gap:10px;color:#fff;max-width:1100px;width:100%}.brand img,.sidebar-brand img{width:46px;height:46px;border-radius:12px;object-fit:cover;background:#fff}.brand span,.sidebar-brand span{display:flex;flex-direction:column}.brand small,.sidebar-brand small{opacity:.82;font-size:11px;margin-top:2px}.public-container{max-width:1100px}
/* App shell */
.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;background:#0b3970;color:#fff;z-index:50;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(13,55,104,.08);overflow-y:auto}.sidebar-brand{height:78px;display:flex;align-items:center;gap:11px;padding:14px 18px;color:#fff;border-bottom:1px solid #ffffff1c}.sidebar-profile{display:flex;align-items:center;gap:11px;margin:14px 14px 6px;padding:12px;background:#ffffff12;border:1px solid #ffffff12;border-radius:14px}.sidebar-profile .profile-avatar{width:38px;height:38px;border-radius:12px;background:#fff;color:#0d5aa7;font-weight:900;display:flex;align-items:center;justify-content:center}.sidebar-profile div:last-child{min-width:0}.sidebar-profile b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.sidebar-profile small{display:block;font-size:11px;color:#d8e8fb;margin-top:2px}.side-nav{padding:7px 10px 18px;flex:1}.nav-label{font-size:10px;letter-spacing:.12em;color:#8fb5dd;font-weight:800;padding:15px 10px 6px}.side-nav a,.sidebar-foot a{display:flex;align-items:center;gap:10px;color:#e6f1fd;padding:10px 11px;border-radius:11px;margin:3px 0;font-size:13px;font-weight:650;transition:.15s}.side-nav a:hover,.side-nav a.active,.sidebar-foot a:hover{background:#ffffff18;color:#fff}.side-nav a.active{box-shadow:inset 3px 0 0 #7ec8ff}.nav-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:#ffffff12;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}.side-nav a.active .nav-icon{background:#fff;color:#0d5aa7}.sidebar-foot{padding:10px 12px 16px;border-top:1px solid #ffffff14}.page-shell{margin-left:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:68px;position:sticky;top:0;z-index:35;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid #e8eef5;box-shadow:0 2px 12px #0e2a4a08}.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px}.topbar-left>div{display:flex;flex-direction:column}.topbar-left b{font-size:15px}.topbar-left small{font-size:11px;color:#8491a4;margin-top:2px}.menu-toggle{display:none;background:#edf4fb;color:#155fa8;width:39px;height:39px;padding:0;border-radius:11px}.userchip{font-size:11px;background:#eaf3fb;color:#15598f;border-radius:999px;padding:7px 10px;font-weight:800}.top-logout{font-size:12px;font-weight:800;color:#b42318;background:#fff1f1;padding:8px 10px;border-radius:10px}.container{width:100%;max-width:1220px;margin:0 auto;padding:22px 24px 30px;flex:1}.sidebar-overlay{display:none}
/* Common */
.card,.panel,.hero,.servicecard,.verifycard{background:#fff;border-radius:18px;box-shadow:0 5px 24px #10243e0d;border:1px solid #edf1f5}.card,.panel,.hero{padding:18px}.panel{margin:16px 0}.hero h1,.panel h2{margin-top:0}.login{max-width:430px;margin:35px auto;padding:22px}.logo{text-align:center}.logo img{width:110px;height:110px;border-radius:24px;object-fit:cover}.muted{color:#667085;font-size:13px;line-height:1.5}.grid{display:grid;gap:14px;margin:14px 0}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g6{grid-template-columns:repeat(6,minmax(0,1fr))}
/* Dashboard */
.dash-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#0b4486,#0c79bf);color:#fff;border:0;padding:24px}.dash-hero:after{content:"";position:absolute;width:220px;height:220px;border:44px solid #ffffff10;border-radius:50%;right:-65px;top:-95px}.dash-hero h1{margin:0 0 6px;font-size:28px}.dash-hero .muted{color:#d9ebfb}.dash-hero-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.hero-pill{padding:7px 10px;border-radius:999px;background:#ffffff18;border:1px solid #ffffff22;font-size:11px;font-weight:700}.hero-logo{width:76px;height:76px;object-fit:cover;border-radius:20px;background:#fff;padding:5px;position:relative;z-index:2}.stat-card{padding:16px 16px 15px;position:relative;overflow:hidden}.stat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.stat-icon{width:38px;height:38px;border-radius:12px;background:#eaf3fb;color:#155fa8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px}.stat-card strong{display:block;font-size:27px;margin-top:11px;color:#123f79}.stat-card small{display:block;color:#7a8799;margin-top:3px;font-size:11px}.stat-card.warn .stat-icon{background:#fff4df;color:#a56100}.stat-card.ok .stat-icon{background:#eaf8ef;color:#17723d}.stat-card.purple .stat-icon{background:#f2edff;color:#6441a5}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.section-title h2{font-size:17px;margin:0}.section-title a{font-size:12px;font-weight:800}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-action{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #edf1f5;border-radius:16px;padding:15px;color:#172033;box-shadow:0 5px 20px #10243e08;transition:.15s}.quick-action:hover{transform:translateY(-2px);box-shadow:0 10px 28px #10243e10}.quick-action .qa-icon{width:42px;height:42px;border-radius:13px;background:#edf6ff;color:#155fa8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px;flex:0 0 42px}.quick-action b{display:block;font-size:13px}.quick-action small{display:block;color:#7b8798;font-size:11px;margin-top:3px}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:14px;margin-top:14px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.panel-head h2{font-size:16px;margin:0}.mini-list{display:flex;flex-direction:column}.mini-item{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f5}.mini-item:last-child{border-bottom:0}.mini-avatar{width:40px;height:40px;border-radius:12px;background:#eef5fc;color:#155fa8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px}.mini-item b{font-size:12px}.mini-item small{display:block;color:#7a8799;font-size:10.5px;margin-top:3px}.empty-state{text-align:center;padding:26px 12px;color:#7d8999}.empty-state b{display:block;color:#415066;margin-bottom:4px}
.navtiles a{background:#fff;padding:18px;border-radius:15px;box-shadow:0 4px 20px #10243e0d;font-weight:700}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}label{display:block;font-size:12px;font-weight:700;color:#475467;margin:11px 0 6px}input,select,textarea{width:100%;border:1px solid #d7dfe9;background:#fff;border-radius:10px;padding:11px}input:focus,select:focus,textarea:focus{outline:0;border-color:#6eaae0;box-shadow:0 0 0 3px #dcebfa}textarea{min-height:85px}.formgrid,.fieldrow{display:grid;grid-template-columns:1fr 1fr;gap:10px}.formgrid .wide{grid-column:1/-1}.fieldrow{grid-template-columns:repeat(4,1fr)}.alert{padding:11px 13px;border-radius:11px;margin:10px 0;font-size:13px}.alert.success{background:#ecf9f0;color:#176b38;border:1px solid #bee3c9}.alert.error{background:#fff0f0;color:#9f1d1d;border:1px solid #f1c1c1}.alert.warning{background:#fff7e8;color:#885b00;border:1px solid #efd79d}.alert.info{background:#eef6ff;color:#15598f;border:1px solid #cfe2f5}.badge{display:inline-block;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}.badge.ok{background:#eaf8ef;color:#16723c}.badge.warn{background:#fff2df;color:#9d5a00}.badge.bad{background:#fdecec;color:#b42318}.badge.info{background:#eaf3ff;color:#155b9d}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px 9px;border-bottom:1px solid #edf0f4;font-size:13px;vertical-align:top}.table th{font-size:11px;color:#667085;background:#fafbfd;white-space:nowrap}.table tr:hover td{background:#fbfdff}.servicecard{padding:16px;border:1px solid #e8edf3}.servicecard b{font-size:15px}.kv{display:grid;grid-template-columns:120px 1fr;gap:7px;font-size:13px}.kv span{color:#667085}.idcard{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #d8e4ef;max-width:600px;margin:20px auto}.idhead{background:linear-gradient(135deg,#123f79,#0d66a7);color:#fff;padding:16px}.idbody{padding:17px}.idgrid{display:grid;grid-template-columns:105px 1fr;gap:15px}.idphoto{height:125px;border-radius:15px;background:#eaf3fb;display:flex;align-items:center;justify-content:center;font-size:35px;font-weight:900;color:#155fa8}.certificate{max-width:720px;margin:20px auto;background:#fff;border:3px double #123f79;padding:35px;text-align:center}.printbar{text-align:center}.verifycard{max-width:720px;margin:auto;background:transparent;box-shadow:none}.toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:14px}.toolbar .search{min-width:250px;flex:1}.toolbar label{margin-top:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px}.page-heading h1{font-size:23px;margin:0}.page-heading p{margin:4px 0 0}.count-chip{background:#eaf3fb;color:#15598f;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800}footer{text-align:center;color:#98a2b3;font-size:11px;padding:24px 15px}.portal-body footer{margin-left:270px}
@media(max-width:1080px){.g6{grid-template-columns:repeat(3,1fr)}.quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.22s}.page-shell{margin-left:0}.portal-body footer{margin-left:0}.menu-toggle{display:inline-flex}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-overlay{display:block;position:fixed;inset:0;background:#07192b80;z-index:45}.container{padding:16px}.topbar{padding:0 14px}.dashboard-grid{grid-template-columns:1fr}.g4,.g3,.g2,.formgrid,.fieldrow{grid-template-columns:1fr 1fr}.dash-hero h1{font-size:23px}.hero-logo{width:62px;height:62px}}
@media(max-width:560px){.g6,.g4,.g3,.g2,.formgrid,.fieldrow,.quick-actions{grid-template-columns:1fr}.formgrid .wide{grid-column:auto}.userchip{display:none}.dash-hero{align-items:flex-start}.hero-logo{display:none}.idgrid{grid-template-columns:78px 1fr}.idphoto{height:96px}.kv{grid-template-columns:95px 1fr}.table{min-width:680px}.top-logout{display:none}.page-heading{align-items:flex-start;flex-direction:column}}
@media print{.sidebar,.topbar,footer,.printbar,.sidebar-overlay{display:none!important}.page-shell{margin:0}.container{margin:0;max-width:none;padding:0}.idcard,.certificate{box-shadow:none;page-break-inside:avoid}}
/* Fully Working v3 role-panel refinements */
.light-hero{background:#fff;color:#172033;border:1px solid #edf1f5;box-shadow:0 5px 24px #10243e0d}
.light-hero:after{border-color:#e9f3ff}.light-hero .muted{color:#667085}.light-hero h1{color:#14213d}.light-hero .hero-logo{box-shadow:0 6px 18px #10243e14}
.quick-six{grid-template-columns:repeat(6,minmax(0,1fr));margin:14px 0}.compact-table td,.compact-table th{padding:10px 8px}.service-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.service-mini{border:1px solid #edf1f5;border-radius:14px;padding:13px;color:#172033;background:#fbfdff}.service-mini b,.service-mini small,.service-mini span{display:block}.service-mini small{color:#7a8799;font-size:10.5px;margin:4px 0 8px}.service-mini span{font-size:11px;color:#155fa8;font-weight:800}.profile-card{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:start}.profile-photo{width:110px;height:110px;border-radius:24px;background:linear-gradient(135deg,#eaf3fb,#f5f9fd);display:flex;align-items:center;justify-content:center;color:#155fa8;font-size:38px;font-weight:900;border:1px solid #dbe9f5}.metric-note{font-size:11px;color:#7b8798;margin-top:5px}.doc-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f5}.doc-card:last-child{border-bottom:0}.ticket-card{padding:14px;border:1px solid #edf1f5;border-radius:14px;margin:10px 0}.ticket-card h3{margin:0 0 5px;font-size:14px}.wallet-balance{font-size:34px;font-weight:900;color:#123f79;margin:8px 0}.receipt{max-width:760px;margin:15px auto;background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:24px}.receipt-head{display:flex;justify-content:space-between;gap:16px;border-bottom:1px dashed #ccd8e5;padding-bottom:16px;margin-bottom:16px}.receipt-logo{width:66px;height:66px;border-radius:15px;object-fit:cover}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.progress-steps{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.progress-step{font-size:10px;font-weight:800;border-radius:999px;background:#edf2f7;color:#667085;padding:7px 9px}.progress-step.done{background:#eaf8ef;color:#16723c}.progress-step.current{background:#eaf3ff;color:#155b9d}.topbar-right .userchip{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1200px){.quick-six{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.quick-six{grid-template-columns:repeat(2,1fr)}.profile-card,.two-col{grid-template-columns:1fr}.service-mini-grid{grid-template-columns:1fr}}
@media(max-width:560px){.quick-six{grid-template-columns:1fr}.profile-photo{width:86px;height:86px;border-radius:18px}}
/* Mockup-matched light sidebar / blue header */
.sidebar{background:#fff;color:#172033;border-right:1px solid #e7edf4;box-shadow:6px 0 28px rgba(13,55,104,.06)}
.sidebar-brand{color:#123f79;border-bottom:1px solid #edf1f5}.sidebar-brand small{color:#667085;opacity:1}.sidebar-profile{background:#f5f9fd;border:1px solid #e5eef7;color:#172033}.sidebar-profile small{color:#667085}.nav-label{color:#98a2b3}.side-nav a,.sidebar-foot a{color:#344054}.side-nav a:hover{background:#eef6ff;color:#0d5aa7}.side-nav a.active{background:linear-gradient(135deg,#1264c8,#0872da);color:#fff;box-shadow:0 7px 16px rgba(13,98,196,.22)}.side-nav a.active .nav-icon{background:#ffffff22;color:#fff}.nav-icon{background:#edf5fd;color:#0d5aa7}.sidebar-foot{border-top:1px solid #edf1f5}.sidebar-foot a:hover{background:#fff1f1;color:#b42318}
.topbar{background:linear-gradient(135deg,#124a91,#0875c8);border-bottom:0;color:#fff;box-shadow:0 4px 14px rgba(13,72,133,.12)}.topbar-left b{color:#fff}.topbar-left small{color:#d8ebfc}.menu-toggle{background:#ffffff1c;color:#fff}.userchip{background:#ffffff17;color:#fff;border:1px solid #ffffff27}.top-logout{background:#ffffff12;border:1px solid #ffffff30;color:#fff}
.page-shell{background:#f4f7fb}.quick-action{min-height:78px}.card,.panel,.hero,.servicecard,.verifycard{box-shadow:0 6px 22px rgba(19,53,91,.06)}
/* Public login/register header navigation */
.public-topbar.public-nav{justify-content:flex-start;align-items:center;gap:20px}.public-topbar.public-nav .brand{width:auto;margin-right:auto}.public-topbar.public-nav nav{display:flex;align-items:center;gap:16px}.public-topbar.public-nav nav a{color:#fff;font-size:12px;font-weight:750}.public-topbar.public-nav nav a.btn{background:#fff;color:#0d5aa7;border-color:#fff}@media(max-width:650px){.public-topbar.public-nav nav a:not(.btn){display:none}.public-topbar.public-nav .brand b{font-size:14px}}
/* v10 live dashboard cards */
.stat-link{display:block;color:inherit;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.stat-link:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(18,63,121,.12);border-color:#cfe1f4}
.stat-link:active{transform:translateY(-1px)}
.live-dot{display:inline-block;width:7px;height:7px;background:#18a957;border-radius:50%;margin-right:5px;box-shadow:0 0 0 3px rgba(24,169,87,.10)}
.stat-link small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
