:root { --mpesa: #16a34a; --mpesa-dark: #0f7a37; --brand: #16a34a; }
body { background: #f4f6f8; }
.bg-mpesa { background: linear-gradient(90deg, var(--mpesa-dark), var(--mpesa)); }
.btn-mpesa { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-mpesa:hover, .btn-mpesa:focus { filter: brightness(.92); color: #fff; background: var(--brand); }
.sidebar { width: 240px; flex-shrink: 0; min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.sidebar .nav-link { color: #334155; padding: .45rem 1.1rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: #f1f5f9; }
.sidebar .nav-link.active { background: #ecfdf3; color: var(--mpesa-dark); border-left-color: var(--mpesa); font-weight: 600; }
.sidebar .nav-header { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: .9rem 1.1rem .3rem; }
.card { border: 0; box-shadow: 0 1px 3px rgba(15,23,42,.08); border-radius: .75rem; }
.stat .num { font-size: 1.6rem; font-weight: 700; }
.stat .lbl { color: #64748b; font-size: .85rem; }
.table td, .table th { vertical-align: middle; }
.table-sm td { font-size: .9rem; }
code.link { background: #f1f5f9; padding: .2rem .4rem; border-radius: .3rem; word-break: break-all; }

/* Public payment page */
body.public { background: radial-gradient(circle at top, #ecfdf3, #f4f6f8 60%); min-height: 100vh; }
.pay-card { max-width: 440px; margin: 0 auto; border-radius: 1.2rem; overflow: hidden; }
.pay-head { background: var(--brand); color: #fff; padding: 1.4rem 1.5rem; }
.pay-head .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.pay-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff; }
.phone-input { font-size: 1.35rem; letter-spacing: .04em; }
.pulse { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 22px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.result-icon { font-size: 4rem; }
.service-option { cursor: pointer; border: 2px solid #e2e8f0; border-radius: .8rem; padding: .8rem 1rem; transition: .15s; }
.service-option:hover { border-color: var(--brand); }
.btn-check:checked + .service-option { border-color: var(--brand); background: #ecfdf3; }
.hero { padding: 4rem 0 3rem; }
.feature i { font-size: 1.8rem; color: var(--mpesa); }
@media print { .no-print { display: none !important; } body.public { background: #fff; } }
