/* V8 visual layer: transparent PNG illustrations, clearer navigation, status badges, empty states. Loaded last. */
:root{--ok:#2f8f6b;--ok-bg:#173b30;--wait:#c99a4f;--wait-bg:#3a2f1c;--bad:#d26b7d;--bad-bg:#43222b;--info-bg:#22324a;--radius:20px}
html{scroll-behavior:smooth}
.skip-link{position:absolute;left:-999px;top:8px;z-index:50;background:#e6c48b;color:#151824;padding:10px 14px;border-radius:10px;font-weight:700}
.skip-link:focus{left:12px}
header{position:sticky;top:0;z-index:20}
header nav{align-items:center}
header nav a{border-radius:10px;transition:background .15s}
header nav a:hover{background:#ffffff10}
.nav-cta{background:linear-gradient(135deg,#efd5a6,#c99963);color:#1c1b25!important;font-weight:650;padding-inline:14px!important}
.nav-cta:hover{filter:brightness(1.06);background:linear-gradient(135deg,#efd5a6,#c99963)!important}
.nav-form{margin:0;display:inline-flex}
.nav-form .link{background:none;border:0;color:#e6dff1;font-size:13px;cursor:pointer;min-height:44px;padding:8px 10px;border-radius:10px;text-decoration:none}
.nav-form .link:hover{background:#ffffff10}

/* Illustrations */
.hero .house-art img,.intro-art,.feature-strip img,.cta-card img,.how-card img,.admin-hero img{height:auto;object-fit:contain;filter:drop-shadow(0 16px 18px #0005)}
.hero .house-art img{max-height:340px}
.hero .house-art{animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* Section titles */
.section-title{text-align:center;max-width:640px;margin:34px auto 18px}
.section-title h2{font-size:clamp(24px,3.4vw,34px);margin-bottom:8px}

/* How it works */
.how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.how-card{position:relative;background:linear-gradient(160deg,#232c3d,#171d29 70%);border:1px solid #343e50;border-radius:var(--radius);padding:18px 20px 22px;text-align:center;transition:transform .2s,border-color .2s}
.how-card:hover{transform:translateY(-3px);border-color:#6d5a42}
.how-card img{width:100%;max-width:240px;margin:0 auto 6px;display:block}
.how-card h3{margin:6px 0 8px;font-size:18px}
.how-card p{margin:0;font-size:14px}
.how-num{position:absolute;top:14px;left:14px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,#efd5a6,#c99963);color:#1c1b25}

/* Services */
.svc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.svc-card{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#1a2231;border:1px solid #343e50}
.svc-card img{width:64px;height:64px;flex:none;object-fit:contain}
.svc-card h3{margin:0 0 4px;font-size:15px;line-height:1.35}
.svc-card b{color:#e9c78e}
.service{grid-template-columns:auto 44px minmax(0,1fr) auto!important;align-items:center!important;border-radius:14px}
.svc-icon{width:44px;height:44px;object-fit:contain}

/* Call-to-action cards */
.cta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:26px}
.cta-card{display:flex;align-items:center;gap:16px}
.cta-card img{width:38%;max-width:200px;flex:none}
.cta-card h2{font-size:21px}
.application-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* Status badges */
.status{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6;white-space:nowrap;max-width:100%}
.panel p .status{white-space:normal}
.status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.status.ok{background:var(--ok-bg);color:#8fe0bd}
.status.wait{background:var(--wait-bg);color:#f2cf8c}
.status.bad{background:var(--bad-bg);color:#ffb3c1}
.status.info{background:var(--info-bg);color:#c6def1}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#22324a;color:#c6def1;font-size:12px}
.panel-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.panel-title h2{margin:0}

/* Lists, pagers, search */
.request-row{border-radius:14px;transition:background .15s}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;color:#b5bdcb}
.pager span{margin-inline-end:auto}
.search-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.search-row label{flex:1;min-width:220px}
.application-record{border-radius:16px}
.admin-stat img{width:56px!important;height:56px!important}

/* Empty state */
.empty-state{text-align:center;padding:22px 10px}
.empty-state img{width:160px;height:auto;opacity:.95}
.empty-state h3{margin:8px 0 4px}
.empty-state p{margin:0 auto;max-width:360px}

/* Identity (CNIC) reveal */
.identity-box{margin-top:10px;padding:12px 14px;border:1px dashed #6d5a42;border-radius:14px;background:#1d1a22}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em}

/* Footer (now outside <main>) */
footer{max-width:var(--page-width,1200px);margin:34px auto 0;padding:22px var(--gutter,20px) max(22px,env(safe-area-inset-bottom));border-top:1px solid #2c3546}
.footer-inner{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;font-size:13px}
.footer-inner div{display:flex;flex-direction:column;gap:2px}
.footer-inner a{color:#c6def1}

/* Forms: clearer focus and spacing */
label{display:block}
.primary,.secondary{transition:filter .15s,transform .1s}
.primary:active,.secondary:active{transform:translateY(1px)}
button[disabled]{opacity:.55;cursor:not-allowed}

@media(max-width:900px){
 .how-grid,.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 header{position:relative}
 header nav{justify-content:flex-start;flex-wrap:wrap}
 .nav-form .link{font-size:13px;padding:6px 8px}
 .how-grid,.svc-grid,.cta-grid{grid-template-columns:minmax(0,1fr)}
 .how-card{display:grid;grid-template-columns:96px minmax(0,1fr);text-align:start;align-items:center;gap:4px 12px;padding:14px}
 .how-card img{grid-row:1/3;width:96px;margin:0}
 .how-card h3{margin:0;align-self:end}
 .how-card p{align-self:start}
 .how-num{top:8px;left:8px;width:26px;height:26px;font-size:13px}
 .cta-card{flex-direction:column;align-items:flex-start}
 .cta-card img{width:150px}
 .admin-metrics.application-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-metrics.application-metrics .admin-stat{flex-direction:column;align-items:flex-start;padding:12px}
 .admin-metrics.application-metrics .admin-stat img{width:40px!important;height:40px!important}
 .admin-metrics.application-metrics strong{font-size:1.05rem}
 .service{grid-template-columns:auto 36px minmax(0,1fr)!important}
 .service b{grid-column:3}
 .svc-icon{width:36px;height:36px}
 .footer-inner{flex-direction:column;align-items:flex-start}
 .pager{justify-content:space-between}
 .pager span{width:100%}
}
@media(prefers-reduced-motion:reduce){.hero .house-art{animation:none}.how-card:hover{transform:none}}
html[dir=rtl] .how-num{left:auto;right:14px}
.hero>img{width:100%;max-width:380px;height:auto;max-height:300px;object-fit:contain;justify-self:center;filter:drop-shadow(0 16px 18px #0005)}
.intro-art{height:auto!important;max-height:220px}
@media(max-width:640px){.hero>img{max-width:240px;max-height:170px}.intro-art{max-height:120px}}
.how-num.inline{position:static;display:inline-grid;width:28px;height:28px;font-size:14px;vertical-align:middle;margin-inline-end:6px}
code,.mono{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.panel p{overflow-wrap:anywhere}
/* Payment instructions */
.payment-details{display:grid;gap:14px}
.pay-amount{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#3a2f1c,#2a2433);border:1px solid #7a6040}
.pay-amount span{color:#e2d5bd;font-size:14px}
.pay-amount strong{font-size:clamp(22px,4vw,30px);color:#f1d49d;margin-inline-end:auto}
.pay-steps{margin:0;padding-inline-start:22px;display:grid;gap:6px;color:#d6dce6}
.pay-steps li::marker{color:#e6c48b;font-weight:700}
.pay-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}
.pay-card{display:grid;gap:3px;padding:16px;border-radius:16px;background:#151c28;border:1px solid #3a465a;border-top:4px solid #8fb3d1}
.pay-card small{color:#9eabbd;font-size:12px;margin-top:6px}
.pay-card b{font-size:16px}
.pay-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.pay-card-head small{margin:0}
.pay-type{font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:#22324a;color:#c6def1}
.pay-jazzcash{border-top-color:#e0a63a}.pay-jazzcash .pay-type{background:#3a2c14;color:#f2cf8c}
.pay-easypaisa{border-top-color:#3fb07d}.pay-easypaisa .pay-type{background:#173b30;color:#8fe0bd}
.pay-raast{border-top-color:#b07ac8}.pay-raast .pay-type{background:#33223d;color:#e3c4f0}
.pay-number{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pay-number .mono{font-size:clamp(16px,3.6vw,19px);font-weight:700;color:#fff;letter-spacing:.06em}
.copy-btn{min-height:36px!important;padding:6px 12px;font-size:13px;border-radius:10px;cursor:pointer}
.copy-btn.copied{background:#173b30;border-color:#3fb07d;color:#8fe0bd}
.payment-qr{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.payment-qr img{background:#fff;border-radius:14px;padding:8px;width:180px;height:auto}
.payment-qr figcaption{flex:1;min-width:180px;color:#b5bdcb}
.pm-row{border:1px solid #343e50;border-radius:14px;padding:12px 14px;margin:0 0 12px}
.pm-row legend{padding:0 6px;color:#e6c48b;font-weight:700}
.legal h2{font-size:19px;margin-top:20px}.legal ul{padding-inline-start:20px;color:#b5bdcb;display:grid;gap:6px}
.primary.danger{background:linear-gradient(135deg,#e7a0ad,#b8576a);border-color:#f3c2cb;color:#1c1b25}
.footer-links{display:flex;flex-wrap:wrap;gap:6px}
