/* Pakistan Directory Portal — single stylesheet (public + dashboard). No external fonts/CDN. */
:root{--green:#22a565;--green-dark:#0a3d2c;--mint:#e8f5ee;--ink:#17251f;--muted:#6b7a72;--line:#e2e8e4;--red:#c0392b;--amber:#b7791f;--radius:12px;--font-display:'Butler','Times New Roman',Times,serif}
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.5}
a{color:var(--green-dark);text-decoration:none}
a:hover{text-decoration:underline}
/* v1.53: serif display font for public headings (Butler, self-hosted; the
   dashboard keeps its own look). Swap --font-display to try another serif. */
body:not(.dash-body) h1,body:not(.dash-body) h2,body:not(.dash-body) h3{font-family:var(--font-display);letter-spacing:.01em}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)} .center{text-align:center} .hidden{display:none!important}
img{max-width:100%}
/* header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.header-in{display:flex;align-items:center;gap:24px;padding:12px 16px}
.logo{display:flex;align-items:center;gap:8px}
.logo-text{font-size:24px;font-weight:800;color:var(--green);letter-spacing:-.5px}
.logo-text.light{color:#fff}
.logo-img{height:38px;width:auto}
.main-nav{display:flex;gap:20px;margin-right:auto}
.main-nav a{color:var(--ink);font-weight:500}
.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.nav-link{font-weight:600}
.user-chip{background:var(--mint);padding:6px 12px;border-radius:20px;font-size:13px;font-weight:600}
/* buttons */
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:9px;padding:9px 18px;font-size:15px;font-weight:600;cursor:pointer;background:#fff}
.btn:hover{text-decoration:none;filter:brightness(.97)}
.btn-green{background:var(--green);color:#fff}
.btn-dark{background:var(--green-dark);color:#fff}
.btn-outline{border-color:#c9d6cf;color:var(--green-dark)}
.btn-light{background:#fff;color:var(--green-dark)}
.btn-block{display:flex;width:100%;justify-content:center}
.btn-sm{padding:5px 11px;font-size:13px;border-radius:7px}
.btn-danger{background:#fdecea;color:var(--red);border-color:#f3c6c0}
.btn[disabled]{opacity:.55;cursor:not-allowed}
/* hero */
.hero{background:linear-gradient(120deg,#0d4d33,#127a4b 55%,#22a565);color:#fff;padding:64px 0 78px;text-align:center}
.hero h1{font-size:44px;margin:0 0 8px;letter-spacing:-1px}
.hero p{font-size:19px;opacity:.92;margin:0 0 28px}
.hero-tabs{display:inline-flex;background:rgba(255,255,255,.16);border-radius:12px;padding:5px;gap:4px;margin-bottom:14px}
.hero-tabs a{color:#fff;padding:8px 22px;border-radius:9px;font-weight:600}
.hero-tabs a.on{background:#fff;color:var(--green-dark)}
.hero-tabs a:hover{text-decoration:none}
.search-card{background:#fff;color:var(--ink);border-radius:14px;padding:18px;text-align:left;max-width:980px;margin:0 auto;box-shadow:0 12px 34px rgba(0,0,0,.18)}
.search-row{display:flex;gap:10px;flex-wrap:wrap}
.search-row .grow{flex:1;min-width:180px}
.search-row2{margin-top:10px}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #ccd6d0;border-radius:9px;font-size:15px;font-family:inherit;background:#fff;color:var(--ink)}
textarea{resize:vertical}
label{display:block;font-weight:600;font-size:14px;margin:0 0 12px}
label input,label select,label textarea{margin-top:5px;font-weight:400}
.search-btn{padding:11px 34px;font-size:16px}
/* v1.53: support page + content pages layout */
.page-hero{padding:34px 0 6px}
.page-hero h1{font-size:32px;margin:0 0 8px}
.support-grid{display:grid;grid-template-columns:1fr 320px;gap:22px;margin-top:18px;align-items:start}
/* v1.54: sidebar cards stack with a clear gap between the boxes */
.support-side{display:flex;flex-direction:column;gap:18px}
.support-side .card{margin:0}
.form-card{max-width:100%}
.form-row2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
/* v1.53: country code + number side by side (signup + sidebar box) */
.phone-row{display:flex;gap:8px;margin-top:5px}
.phone-row input{flex:1;min-width:0}
.phone-row select{margin-top:0}
.check-list{list-style:none;margin:0;padding:0}
.check-list li{padding:7px 0 7px 28px;position:relative;font-size:14.5px}
.check-list li:before{content:"✓";position:absolute;left:0;top:7px;width:18px;height:18px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
@media(max-width:860px){.support-grid{grid-template-columns:1fr}.form-row2{grid-template-columns:1fr}}
/* v1.53: content-page article typography + sidebar listing cards */
.article-body{font-size:15.5px;line-height:1.7}
.article-body h2{font-size:23px;margin:28px 0 10px}
.article-body h2:first-child{margin-top:0}
.article-body h3{font-size:18px;margin:22px 0 8px}
.article-body p{margin:0 0 14px}
.article-body ul,.article-body ol{margin:0 0 16px;padding-left:22px}
.article-body li{margin-bottom:7px}
.side-listings{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.side-listing{display:flex;gap:10px;align-items:center}
.side-listing:hover{text-decoration:none}
.side-listing img{width:46px;height:46px;object-fit:cover;border-radius:8px;flex:none;background:var(--mint)}
.side-listing span b{display:block;font-size:14px;line-height:1.35}
.side-listing span small{font-size:12px}
.section{padding:44px 0}
.section h2{font-size:28px;margin:0 0 6px}
.stats-strip{background:var(--mint);padding:26px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;text-align:center}
.stat-num{font-size:32px;font-weight:800;color:var(--green-dark)}
.stat-lbl{color:var(--muted);font-size:14px}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-top:18px}
.cat-card{border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:block;color:var(--ink)}
.cat-card:hover{border-color:var(--green);text-decoration:none}
.cat-icon{font-size:28px}
.cat-name{font-weight:700;font-size:17px;margin-top:4px}
.cat-count{color:var(--muted);font-size:13px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.step{border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.step b{color:var(--green);font-size:22px}
.cta-band{background:var(--green-dark);color:#fff;border-radius:16px;padding:40px;text-align:center}
.cta-band h2{color:#fff;font-size:32px}
.cta-band .btn{margin:6px}
/* listing cards */
.listing-card{display:flex;gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:16px;background:#fff}
.listing-card:hover{border-color:#bcd8c8}
.lc-img{width:300px;min-height:210px;object-fit:cover;background:var(--mint);flex-shrink:0}
.lc-body{padding:16px 18px;flex:1;min-width:0}
.lc-top{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.badge{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:20px;background:#eef2f0;color:#44544c}
.badge-verified{background:#e3f5ea;color:#12703f}
.badge-featured{background:#fff3d6;color:#8a5d00}
.badge-type{background:var(--green-dark);color:#fff}
.lc-title{font-size:20px;font-weight:700;margin:2px 0}
.lc-title a{color:var(--ink)}
.lc-cat{color:var(--green-dark);font-weight:600;font-size:14px}
.lc-loc{color:var(--muted);font-size:14px;margin:3px 0}
.lc-about{color:#3c4a43;font-size:14.5px;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.chip{display:inline-block;background:#f2f6f3;border:1px solid var(--line);border-radius:7px;padding:2px 9px;font-size:12.5px;margin:2px 4px 2px 0}
.lc-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.contact-btn{background:#eaf4ee;color:var(--green-dark);border:1px solid #cfe6d8}
.contact-btn.revealed{background:var(--green);color:#fff;border-color:var(--green)}
/* filters */
.filters{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:18px 0}
.filters .search-row{align-items:flex-end}
.filters label{margin:0}
.checkline{display:flex;align-items:center;gap:7px;font-weight:500}
.checkline input{width:auto}
.results-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 14px;flex-wrap:wrap;gap:8px}
.pagination{display:flex;gap:6px;margin:22px 0;flex-wrap:wrap}
.pg{border:1px solid var(--line);padding:7px 13px;border-radius:8px;background:#fff}
.pg.current{background:var(--green);color:#fff;border-color:var(--green)}
.empty-box{border:1px dashed #c4d2ca;border-radius:var(--radius);padding:44px;text-align:center;color:var(--muted)}
/* detail */
.detail-grid{display:grid;grid-template-columns:1fr 340px;gap:26px;align-items:start}
.gallery-main{width:100%;height:420px;object-fit:cover;border-radius:var(--radius);background:var(--mint)}
.thumbs{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.thumbs img{width:86px;height:64px;object-fit:cover;border-radius:8px;cursor:pointer;border:2px solid transparent}
.thumbs img.on{border-color:var(--green)}
.info-table{width:100%;border-collapse:collapse;margin-top:8px}
.info-table td{padding:9px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.info-table td:first-child{color:var(--muted);width:180px}
.contact-card{border:1px solid var(--line);border-radius:var(--radius);padding:20px;position:sticky;top:84px;text-align:center;background:#fff}
.contact-card img.avatar{width:96px;height:96px;border-radius:50%;object-fit:cover}
.contact-card .btn{width:100%;justify-content:center;margin-top:8px}
.about-full{white-space:pre-line}
/* auth */
.auth-wrap{max-width:460px;margin:44px auto;padding:0 16px}
.auth-card{border:1px solid var(--line);border-radius:14px;padding:28px}
.alert{border-radius:9px;padding:12px 14px;margin:0 0 16px;font-size:14.5px}
.alert-success{background:#e7f7ee;border:1px solid #bfe8cf;color:#0d5c31}
.alert-error{background:#fdecea;border:1px solid #f3c6c0;color:#8c2318}
.alert-warn{background:#fff6dd;border:1px solid #eed9a0;color:#6d5200}
.temp-pass{font-size:20px;font-weight:800;letter-spacing:.4px}
.demo-box{background:#f6f9f7;border:1px dashed #c4d2ca;border-radius:9px;padding:12px;font-size:13.5px;margin-top:16px}
/* footer */
.site-footer{background:var(--green-dark);color:#dcebe2;margin-top:20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:26px;padding:38px 16px 10px}
.site-footer a{color:#dcebe2;display:block;margin:5px 0}
.site-footer h4{color:#fff;margin:0 0 8px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.15);padding:14px 16px;font-size:13.5px}
/* modal */
.modal{position:fixed;inset:0;background:rgba(10,30,22,.55);display:flex;align-items:center;justify-content:center;z-index:90;padding:16px}
.modal-card{background:#fff;border-radius:14px;padding:26px;max-width:430px;width:100%;position:relative}
.modal-x{position:absolute;right:12px;top:8px;background:none;border:none;font-size:24px;cursor:pointer}
.modal-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
/* dashboard */
.dash-body{background:#f5f8f6}
.dash-wrap{display:flex;min-height:100vh}
.dash-side{width:236px;background:var(--green-dark);color:#dcebe2;padding:20px 14px;flex-shrink:0;display:flex;flex-direction:column}
.dash-brand{font-size:19px;font-weight:800;color:#fff;line-height:1.2}
.dash-brand span{display:block;font-size:12px;font-weight:500;color:#9fc7b2}
.dash-nav{margin-top:22px;display:flex;flex-direction:column;gap:2px}
.dash-nav a{color:#dcebe2;padding:8px 10px;border-radius:8px;font-size:14.5px}
.dash-nav a:hover{background:rgba(255,255,255,.1);text-decoration:none}
.dash-user{margin-top:auto;font-weight:700;color:#fff;font-size:14px}
.dash-user span{display:block;font-weight:400;color:#9fc7b2;font-size:12.5px}
.dash-main{flex:1;padding:24px 28px;min-width:0}
.dash-h1{font-size:24px;margin:0 0 18px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.card .num{font-size:28px;font-weight:800;color:var(--green-dark)}
.card .lbl{color:var(--muted);font-size:13.5px}
table.grid{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
table.grid th,table.grid td{padding:9px 11px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:top}
table.grid th{background:#f2f6f3}
.row-actions{display:flex;gap:5px;flex-wrap:wrap}
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;max-width:860px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.subcat-box{border:1px solid var(--line);border-radius:9px;padding:10px 12px;max-height:190px;overflow:auto}
.subcat-box label{display:flex;gap:7px;align-items:center;font-weight:400;margin:0 0 6px}
.subcat-box input{width:auto}
.tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.tabs a{padding:7px 14px;border:1px solid var(--line);border-radius:20px;background:#fff;font-weight:600;font-size:14px}
.tabs a.on{background:var(--green);color:#fff;border-color:var(--green)}
.thumb-sm{width:56px;height:56px;object-fit:cover;object-position:top center;border-radius:10px;display:block;background:#e5e7eb;flex:none}
/* v1.22 — dashboard detail page: full photo, never cropped; hero + gallery
   stack on narrow screens instead of squeezing. */
.detail-hero{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.detail-photo{width:100%;max-width:320px;height:auto;border-radius:14px;display:block;background:#eef2f7}
.detail-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.detail-gallery img{width:100%;height:150px;object-fit:cover;object-position:top center;border-radius:10px;display:block}
@media (max-width:600px){.detail-photo{max-width:100%}}
.inline-form{display:inline}
.internal-note{background:#fff6dd;border:1px solid #eed9a0;border-radius:9px;padding:10px 12px;font-size:13.5px;margin-bottom:14px;color:#6d5200}
/* responsive */
@media(max-width:900px){
 .main-nav{display:none}
 .stats-grid{grid-template-columns:repeat(2,1fr)}
 .steps{grid-template-columns:1fr}
 .detail-grid{grid-template-columns:1fr}
 .contact-card{position:static}
 .listing-card{flex-direction:column}
 .lc-img{width:100%;height:210px}
 .footer-grid{grid-template-columns:1fr}
 .hero h1{font-size:32px}
 .dash-wrap{flex-direction:column}
 .dash-side{width:100%}
 .form-grid{grid-template-columns:1fr}
 .gallery-main{height:280px}
}
.field-error{color:#c0392b;font-size:13px;font-weight:600;margin-top:3px}
/* v1.1 — frontend hover effects + proper pagination */
.listing-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.listing-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(10,61,44,.13);border-color:var(--green)}
.listing-card .lc-img{transition:transform .35s ease}
.listing-card > a{overflow:hidden;display:block;flex-shrink:0}
.listing-card:hover .lc-img{transform:scale(1.05)}
.lc-title a{transition:color .15s ease}
.lc-title a:hover{color:var(--green);text-decoration:none}
.cat-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(10,61,44,.12);border-color:var(--green)}
.btn{transition:transform .15s ease,box-shadow .15s ease,background .15s ease,filter .15s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(10,61,44,.16)}
.btn:active{transform:translateY(0);box-shadow:none}
.main-nav a{position:relative;padding:4px 2px;transition:color .15s ease}
.main-nav a:hover{color:var(--green);text-decoration:none}
.badge{transition:transform .15s ease}
.listing-card:hover .badge-verified{transform:scale(1.05)}
.chip{transition:background .15s ease,border-color .15s ease}
.chip:hover{background:var(--mint);border-color:var(--green)}
.thumbs img{transition:transform .18s ease,border-color .18s ease,opacity .18s ease}
.thumbs img:hover{transform:scale(1.06);border-color:var(--green);opacity:.92}
.gallery-main{transition:box-shadow .25s ease}
.gallery-main:hover{box-shadow:0 12px 26px rgba(10,61,44,.15)}
.hero-tabs a{transition:background .15s ease,color .15s ease,transform .15s ease}
.hero-tabs a:hover{transform:translateY(-1px)}
input,select,textarea{transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(34,165,101,.18);outline:none}
.pagination{align-items:center;justify-content:center}
.pg{transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}
a.pg:hover{background:var(--mint);border-color:var(--green);color:var(--green-dark);text-decoration:none;transform:translateY(-1px)}
.pg.current{font-weight:700;box-shadow:0 4px 10px rgba(34,165,101,.35)}
.pg.disabled{opacity:.45;cursor:not-allowed;background:#f4f7f5}
.pg-dots{border:none;background:transparent;color:var(--muted)}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}
/* v1.3 — hero-only front page: hero takes the main viewport height */
.hero{min-height:62vh;display:flex;align-items:center}
.hero .container{width:100%}
/* v1.5 — blue-tick verified badge (inline seal next to the listing name) */
.verified-tick{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;margin-left:7px;vertical-align:-3px;flex:0 0 auto}
.verified-tick svg{width:100%;height:100%;display:block;filter:drop-shadow(0 1px 2px rgba(29,155,240,.35))}
.verified-tick.vt-lg{width:26px;height:26px;vertical-align:-5px;margin-left:9px}
.verified-tick.vt-sm{width:15px;height:15px;vertical-align:-2px;margin-left:5px}
.title-with-tick{display:inline-flex;align-items:center;flex-wrap:wrap}
.contact-card h3 .verified-tick{margin-left:6px}
.listing-card:hover .verified-tick{transform:scale(1.08)}
.verified-tick{transition:transform .15s ease}
/* v1.6 — detail order, gallery, archive views, dashboard nav */
.detail-grid{grid-template-areas:"main contact" "related contact"}
.detail-main{grid-area:main;min-width:0}
.detail-grid aside{grid-area:contact}
.detail-related{grid-area:related;min-width:0}
.gallery-wrap{position:relative}
.gallery-count{position:absolute;top:12px;right:12px;background:rgba(10,61,44,.88);color:#fff;padding:4px 11px;border-radius:20px;font-size:13px;font-weight:700}
.thumbs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.thumbs img.on{border-color:var(--green);box-shadow:0 0 0 2px rgba(34,165,101,.4);transform:scale(1.04)}
/* archive grid/list views */
.view-toggle{display:inline-flex;gap:6px;align-items:center}
.view-toggle a{border:1px solid var(--line);padding:6px 13px;border-radius:8px;background:#fff;font-weight:600;font-size:13.5px}
.view-toggle a.on{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
.view-toggle a:hover{text-decoration:none}
.results-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}
.results-grid .listing-card{flex-direction:column;margin-bottom:0}
.results-grid .listing-card > a{width:100%}
.results-grid .lc-img{width:100%;height:210px}
.results-grid .lc-body{padding:14px 16px}
/* dashboard nav: active + mobile menu */
.dash-brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dash-menu-btn{display:none;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:7px 12px;font-size:14px;font-weight:700;cursor:pointer}
.dash-nav a.on{background:rgba(255,255,255,.18);font-weight:700}
a.dash-user:hover{text-decoration:none}
a.dash-user{color:#fff}
/* listing form sticky save bar */
.form-actions-sticky{position:sticky;top:0;z-index:20;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;margin-bottom:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;box-shadow:0 4px 14px rgba(10,61,44,.08)}
@media(max-width:900px){
 .detail-grid{grid-template-columns:1fr;grid-template-areas:"main" "contact" "related"}
 .detail-grid aside{width:100%}
 .results-grid{grid-template-columns:1fr}
 .dash-side{position:sticky;top:0;z-index:50}
 .dash-menu-btn{display:block}
 .dash-nav{display:none}
 .dash-side.open .dash-nav{display:flex}
 .dash-user{display:none}
 .dash-side.open .dash-user{display:block;margin-top:12px}
}
@media(max-width:600px){
 .detail-main h1{font-size:24px!important}
 .gallery-main{height:260px}
 .info-table tr{display:block;border-bottom:1px solid var(--line)}
 .info-table td{display:block;width:auto!important;border-bottom:none;padding:4px 6px}
 .info-table td:first-child{font-weight:700;color:var(--muted);padding-bottom:0}
 .info-table td:nth-child(2){padding-top:0}
 .info-table td:empty{display:none}
 .lc-actions .btn{flex:1;justify-content:center}
}
/* v1.7 — public header responsive + Admin Dashboard Apple theme */
/* --- Public header: tablet + phone --- */
.nav-menu-btn{display:none;background:#f5f5f7;border:1px solid #e0e0e0;border-radius:8px;padding:8px 12px;font-size:18px;line-height:1;cursor:pointer;color:#1d1d1f}
@media(max-width:900px){
 .header-in{flex-wrap:wrap;gap:10px 14px}
 .main-nav{order:3;width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
 .main-nav a{white-space:nowrap;font-size:14px}
 .header-actions{margin-left:auto}
 .logo-text{font-size:19px}
}
@media(max-width:600px){
 .nav-menu-btn{display:block}
 .main-nav{display:none}
 .main-nav.open{display:flex;flex-wrap:wrap;overflow:visible}
 .header-actions .user-chip{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .header-actions .btn{padding:8px 14px;font-size:14px}
 .site-header .container{padding-left:14px;padding-right:14px}
}
/* --- Admin Dashboard: Apple design language (dashboard only) --- */
.dash-body{font-family:"SF Pro Display","SF Pro Text",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d1d1f;background:#f5f5f7}
.dash-body .dash-side{background:#f5f5f7;border-right:1px solid #e0e0e0;color:#1d1d1f}
.dash-body .dash-brand{color:#1d1d1f}
.dash-body .dash-brand span{color:#7a7a7a}
.dash-body .dash-nav a{color:#1d1d1f;border-radius:8px}
.dash-body .dash-nav a:hover{background:rgba(0,0,0,.04);text-decoration:none}
.dash-body .dash-nav a.on{background:#ffffff;border:1px solid #e0e0e0;color:#0066cc;font-weight:600}
.dash-body a.dash-user{background:#ffffff;border:1px solid #e0e0e0;color:#1d1d1f}
.dash-body a.dash-user span{color:#7a7a7a}
.dash-body .dash-main{background:#ffffff}
.dash-body .dash-h1{font-size:34px;font-weight:600;letter-spacing:-.374px;line-height:1.1}
.dash-body .card,.dash-body .form-card{border:1px solid #e0e0e0;border-radius:18px;box-shadow:none}
.dash-body .btn-green{background:#0066cc;border-radius:9999px;padding:11px 22px}
.dash-body .btn-green:hover{background:#0071e3}
.dash-body .btn-dark{background:#1d1d1f;border-radius:9999px}
.dash-body .btn-outline{color:#0066cc;border-color:#0066cc;border-radius:9999px}
.dash-body .btn-sm{border-radius:8px;padding:6px 12px}
.dash-body .btn-danger{border-radius:8px}
.dash-body a{color:#0066cc}
.dash-body .grid th{background:#f5f5f7;color:#333333;border-bottom:1px solid #e0e0e0}
.dash-body .grid td{border-bottom:1px solid #f0f0f0}
.dash-body input,.dash-body select,.dash-body textarea{border:1px solid #e0e0e0;border-radius:8px}
.dash-body input:focus,.dash-body select:focus,.dash-body textarea:focus{outline:2px solid #0071e3;outline-offset:0;border-color:#0071e3}
.dash-body .filters{background:#f5f5f7;border:1px solid #e0e0e0;border-radius:18px}
.dash-body .pagination .pg.current{background:#0066cc}
.dash-body .dash-menu-btn{background:#ffffff;color:#1d1d1f;border:1px solid #e0e0e0}
@media(max-width:900px){
 .dash-body .dash-side{background:#f5f5f7}
}
/* v1.8 — header user dropdown, 3-col grid, Dashboard Bootstrap-Admin theme */
/* --- Header user dropdown --- */
.user-menu{position:relative}
.user-menu-btn{cursor:pointer;border:1px solid var(--line);background:#fff}
.user-dropdown{display:none;position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e0e0e0;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);min-width:230px;z-index:100;overflow:hidden}
.user-menu.open .user-dropdown{display:block}
.user-drop-meta{padding:12px 16px;border-bottom:1px solid #f0f0f0;background:#f5f5f7}
.user-drop-meta strong{display:block;color:#1d1d1f}
.user-drop-meta span{display:block;font-size:13px;color:#7a7a7a;margin-top:2px}
.user-dropdown a{display:block;padding:11px 16px;color:#1d1d1f;font-weight:500}
.user-dropdown a:hover{background:#f5f5f7;text-decoration:none}
@media(max-width:600px){
 .user-dropdown{position:fixed;left:14px;right:14px;top:auto;min-width:0}
}
/* --- Archive grid: 3 cards per row on desktop, auto responsive --- */
.results-grid{grid-template-columns:repeat(3,1fr)}
.results-grid .lc-img{height:190px}
@media(max-width:1024px){
 .results-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
 .results-grid{grid-template-columns:1fr}
 .results-grid .lc-img{height:210px}
}
/* --- Dashboard: Bootstrap-Admin look (overrides the v1.7 Apple block) --- */
.dash-body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f8f9fa}
.dash-body .dash-side{background:#212529;border-right:none}
.dash-body .dash-brand{color:#fff}
.dash-body .dash-brand span{color:rgba(255,255,255,.6)}
.dash-body .dash-nav a{color:rgba(255,255,255,.8)}
.dash-body .dash-nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.dash-body .dash-nav a.on{background:#007bff;border:none;color:#fff}
.dash-body a.dash-user{background:#343a40;border:none;color:#fff}
.dash-body a.dash-user span{color:rgba(255,255,255,.6)}
.dash-body .dash-main{background:#f8f9fa;min-width:0;overflow-x:auto}
.dash-body .dash-h1{font-size:28px;font-weight:600;letter-spacing:0}
.dash-body .card,.dash-body .form-card{border:1px solid #dee2e6;border-radius:6px;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}
.dash-body .cards .card{border-left:4px solid #007bff}
.dash-body .cards .num{font-size:32px;font-weight:700;color:#212529}
.dash-body .cards .lbl{color:#6c757d}
.dash-body .btn-green{background:#007bff;border-radius:4px;padding:8px 18px}
.dash-body .btn-green:hover{background:#0069d9}
.dash-body .btn-dark{background:#343a40;border-radius:4px}
.dash-body .btn-outline{color:#007bff;border-color:#007bff;border-radius:4px}
.dash-body .btn-sm{border-radius:4px}
.dash-body .btn-danger{background:#dc3545;border-radius:4px}
.dash-body a{color:#007bff}
.dash-body .grid th{background:#e9ecef;color:#495057}
.dash-body .grid td{border-bottom:1px solid #dee2e6}
.dash-body input,.dash-body select,.dash-body textarea{border:1px solid #ced4da;border-radius:4px}
.dash-body input:focus,.dash-body select:focus,.dash-body textarea:focus{outline:none;border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}
.dash-body .filters{background:#fff;border:1px solid #dee2e6;border-radius:6px}
.dash-body .pagination .pg.current{background:#007bff}
.dash-body .dash-menu-btn{background:#343a40;color:#fff;border:none}
.dash-body .form-actions-sticky{border-radius:6px}
@media(max-width:900px){
 .dash-body .dash-side{background:#212529}
 .dash-body .dash-main{padding:14px}
 .dash-body .grid{font-size:14px}
 .dash-body .row-actions{flex-wrap:wrap}
}
/* v1.9 — SaaS dashboard theme, filters-pro, related grid, professional polish */
/* --- Dashboard SaaS theme (overrides v1.8 dark block) --- */
.dash-body{background:#f1f3f9}
.dash-body .dash-side{background:#ffffff;border-right:1px solid #e5e7eb}
.dash-body .dash-brand{color:#1d1d1f}
.dash-body .dash-brand span{color:#9ca3af}
.dash-body .dash-nav-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;padding:16px 10px 6px;font-weight:700}
.dash-body .dash-nav a{color:#374151;border-radius:10px;padding:10px 12px;font-size:15px}
.dash-body .dash-nav a:hover{background:#f1f3f9;color:#1d1d1f}
.dash-body .dash-nav a.on{background:#eef2ff;border:none;color:#4f46e5;font-weight:700}
.dash-body a.dash-user{background:#f1f3f9;border:1px solid #e5e7eb;color:#1d1d1f}
.dash-body a.dash-user span{color:#6b7280}
.dash-body .dash-main{background:#f1f3f9}
.dash-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 18px;margin-bottom:18px}
.dash-welcome{font-size:20px;font-weight:700;color:#1d1d1f;letter-spacing:-.2px}
.dash-crumb{font-size:13px;color:#6b7280;margin-top:2px}
.dash-avatar{width:44px;height:44px;min-width:44px;border-radius:50%;background:#4f46e5;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.dash-avatar:hover{text-decoration:none;color:#fff}
.dash-body .dash-h1{font-size:28px}
.dash-body .card,.dash-body .form-card{border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dash-body .cards .card{border-left:4px solid #4f46e5}
.dash-body .cards .card:nth-child(4n+2){border-left-color:#22c55e}
.dash-body .cards .card:nth-child(4n+3){border-left-color:#f97316}
.dash-body .cards .card:nth-child(4n+4){border-left-color:#06b6d4}
.dash-body .cards .num{color:#1d1d1f}
.dash-body .btn-green{background:#4f46e5;border-radius:10px}
.dash-body .btn-green:hover{background:#4338ca}
.dash-body .btn-dark{background:#1d1d1f;border-radius:10px}
.dash-body .btn-outline{color:#4f46e5;border-color:#4f46e5;border-radius:10px}
.dash-body a{color:#4f46e5}
.dash-body .pagination .pg.current{background:#4f46e5}
.dash-body input:focus,.dash-body select:focus,.dash-body textarea:focus{border-color:#a5b4fc;box-shadow:0 0 0 .2rem rgba(79,70,229,.18)}
.dash-body .dash-menu-btn{background:#4f46e5;color:#fff;border:none}
@media(max-width:900px){
 .dash-body .dash-side{background:#ffffff}
 .dash-topbar{flex-wrap:wrap}
}
/* --- Archive filters-pro: clean card, grid rows --- */
.filters-pro{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.filters-pro .search-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}
.filters-pro .search-row2{grid-template-columns:repeat(5,1fr)}
.filters-pro input[type="text"]{height:46px;font-size:16px;border-radius:10px}
.filters-pro select{height:46px;border-radius:10px}
.filters-pro .btn-green{height:46px;padding:0 24px;display:inline-flex;align-items:center}
.results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 14px}
@media(max-width:1024px){
 .filters-pro .search-row{grid-template-columns:1fr 1fr}
 .filters-pro .search-row2{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
 .filters-pro{padding:14px}
 .filters-pro .search-row,.filters-pro .search-row2{grid-template-columns:1fr}
 .filters-pro .btn-green{width:100%;justify-content:center}
}
/* --- Professional polish: tables scroll on small screens, consistent focus --- */
@media(max-width:700px){
 table.grid{display:block;overflow-x:auto;white-space:nowrap}
 table.grid th,table.grid td{white-space:nowrap}
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
.container{padding-left:16px;padding-right:16px}
/* v1.10 — button text fix, related full width, locations/categories rows */
/* Button text: v1.8 made btn-danger solid red without a white text colour
   (base was light-pink bg + red text), and the v1.9 dashboard link colour
   was overriding white text on link-buttons. Both made buttons unreadable. */
.dash-body .btn-green,.dash-body .btn-dark,.dash-body .btn-danger{color:#fff}
.dash-body a.btn-green,.dash-body a.btn-dark,.dash-body a.btn-danger{color:#fff}
/* Related listings span the full detail width (was main column only) */
@media(min-width:901px){
 .detail-grid{grid-template-areas:"main contact" "related related"}
}
/* Locations: district = bordered block, tehsils stacked underneath */
.loc-province-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.loc-province-head input[type="text"]{flex:1;min-width:200px;max-width:320px}
.loc-district{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:12px}
.loc-district-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.loc-district-head input[type="text"]{flex:1;min-width:180px}
.loc-tehsils{margin-top:12px;padding-top:12px;border-top:1px dashed #e5e7eb;display:flex;flex-direction:column;gap:8px}
.loc-tehsil{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.loc-tehsil input[type="text"]{flex:1;min-width:140px;max-width:280px}
.loc-tehsil-label{font-size:13px;color:#6b7280;font-weight:700}
.loc-add-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:4px}
.loc-add-row input[type="text"]{flex:1;min-width:200px;max-width:340px}
/* Categories: one clean row per sub-category */
.sub-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.sub-row input[type="text"]{flex:1;min-width:180px;max-width:340px}
@media(max-width:640px){
 .loc-district-head input[type="text"],.loc-tehsil input[type="text"],.sub-row input[type="text"],.loc-province-head input[type="text"],.loc-add-row input[type="text"]{flex-basis:100%;max-width:none}
}
/* v1.12 — proper share menu */
.share-overlay{position:fixed;inset:0;background:rgba(10,20,15,.55);display:none;align-items:center;justify-content:center;padding:16px;z-index:200}
.share-overlay.open{display:flex}
.share-panel{background:#fff;border-radius:16px;max-width:440px;width:100%;padding:20px;box-shadow:0 24px 64px rgba(0,0,0,.3)}
.share-link-row{display:flex;gap:8px;margin-bottom:14px}
.share-link-row input{flex:1;min-width:0}
.share-opts{display:flex;flex-direction:column;gap:8px}
.share-opt{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#1d1d1f;font-weight:600;font-size:15px;cursor:pointer;text-align:left}
.share-opt:hover{background:#f5f5f7;text-decoration:none}
@media(max-width:480px){
 .share-panel{padding:16px}
 .share-link-row{flex-direction:column}
 .share-link-row .btn{justify-content:center}
}
/* v1.14 — tablet/phone nav = right-side click dropdown (no second row) */
@media(max-width:900px){
 .header-in{flex-wrap:nowrap;position:relative}
 .main-nav{display:none;order:0;width:auto;overflow:visible;flex-wrap:nowrap}
 .main-nav.open{display:flex;flex-direction:column;position:absolute;top:calc(100% + 6px);right:16px;min-width:230px;background:#fff;border:1px solid #e0e0e0;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);padding:8px;z-index:100;gap:0}
 .main-nav.open a{display:block;padding:11px 14px;border-radius:8px;white-space:normal;font-size:15px}
 .main-nav.open a:hover{background:#f5f5f7}
 .nav-menu-btn{display:inline-flex;align-items:center;justify-content:center}
 .header-actions{margin-left:auto;flex-wrap:nowrap}
}
/* v1.16 — Information table: proper separation (both label columns tinted) */
/* Root cause of the unreadable look: only the FIRST column was styled as a
   label — the second label in each row (Reference no., District, Views...)
   looked like a plain value, so pairs ran together. */
.info-table{border:1px solid #e5e7eb}
.info-table td{padding:13px 16px;border-bottom:1px solid #e5e7eb}
.info-table tr:last-child td{border-bottom:none}
.info-table td:nth-child(odd){background:#f8f9fa;color:#6b7280;font-weight:600;width:170px}
.info-table td:nth-child(even){color:#1d1d1f}
@media(max-width:900px){
 .info-table td:nth-child(odd){width:130px}
}
/* v1.17 — hero background image: 15px green margin + 15px radius, green behind */
.hero{position:relative;overflow:hidden}
.hero-bg-img{position:absolute;inset:15px;border-radius:15px;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}
.hero-bg-img::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(13,77,51,.55),rgba(34,165,101,.35))}
.hero .container{position:relative;z-index:1}

/* v1.18 — professional filters: a dependent select stays visibly disabled
   until its parent is chosen, so empty dropdowns are never a mystery. */
.filters-pro select:disabled, .search-card select:disabled, .form-card select:disabled{background:#f1f3f9;color:#9ca3af;cursor:not-allowed}
/* v1.19 — permanent-delete confirm page: danger box */
.danger-box{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:16px 18px}
.danger-box h3{margin-top:0;color:#991b1b}

/* v1.20 — listings actions, redesigned: the actions column gets real room
   and the buttons lay out as tidy flex rows instead of a ragged stack. */
.dash-body .grid td:last-child{min-width:310px}
.row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.row-actions .inline-form{display:inline-flex;gap:6px;align-items:center;margin:0}
.row-actions select{padding:6px}
/* Bulk select bar (dashboard listings + trash): hidden until a row is ticked. */
.bulk-col{width:36px;text-align:center}
.bulk-bar{display:none;align-items:center;gap:12px;flex-wrap:wrap;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:10px 14px;margin:0 0 14px}
.bulk-bar.on{display:flex}
.bulk-bar .inline-form{margin:0}
.bulk-bar a.disabled{pointer-events:none;opacity:.5}

/* v1.23 — sidebar hide/show: one click in the topbar hides the sidebar
   and the content widens; the button stays visible so it can come back. */
body.sidebar-hidden .dash-side{display:none}
.dash-topbar-left{display:flex;gap:12px;align-items:center;min-width:0}
.dash-side-toggle{background:#4f46e5;color:#fff;border:none;border-radius:10px;padding:9px 13px;font-size:16px;font-weight:700;cursor:pointer;line-height:1}
.dash-side-toggle:hover{background:#4338ca}

/* v1.24 — searchable select (Link to Signup User): search box + dropdown
   list over the real select, so long user lists stay usable. */
.combo{position:relative}
.combo-input{width:100%;padding:10px 34px 10px 10px;border:1px solid #ddd;border-radius:8px;font-size:15px;background:#fff}
.combo-list{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:250px;overflow:auto;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.14);z-index:40}
.combo-opt{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid #f1f1f1;background:#fff;cursor:pointer;font-size:14px}
.combo-opt:last-child{border-bottom:0}
.combo-opt:hover,.combo-opt.on{background:#eef2ff}
.combo-empty{padding:10px 12px;color:#666;font-size:13px}
.combo-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:18px;cursor:pointer;color:#888;line-height:1;display:none}

/* v1.25 — premium filter bar (public archive): pill controls, segmented
   type switch, More-Filters popup, toggle pills. Same filter parameters
   as before — only the presentation changed. */
.filterbar{position:relative;display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin:18px 0;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.fb-seg{display:flex;background:#f1f3f9;border-radius:999px;padding:4px}
.fb-seg label{margin:0;cursor:pointer}
.fb-seg input{position:absolute;opacity:0;pointer-events:none}
.fb-seg span{display:block;padding:9px 16px;border-radius:999px;font-weight:600;font-size:14px;color:#4b5563;white-space:nowrap}
.fb-seg input:checked+span{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.14);color:#0a3d2c}
.fb-seg input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
.fb-search{flex:1;min-width:220px;display:flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;padding:0 14px;background:#fff}
.fb-search svg{flex:none}
.fb-search input{border:0;outline:0;width:100%;padding:12px 0;font-size:15px;background:transparent}
.fb-select-wrap{position:relative}
.fb-select-wrap select{appearance:none;-webkit-appearance:none;border:1px solid #e5e7eb;border-radius:999px;padding:12px 36px 12px 16px;font-size:14px;font-weight:600;background:#fff;cursor:pointer;max-width:210px}
.fb-select-wrap::after{content:'▾';position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:#6b7280;font-size:12px}
.fb-select-wrap select:disabled{background:#f1f3f9;color:#9ca3af;cursor:not-allowed}
/* v1.49: the More Filters popup is gone — every filter sits on the bar. */
.fb-toggles{flex-basis:100%;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fb-toggle{margin:0;cursor:pointer}
.fb-toggle input{position:absolute;opacity:0;pointer-events:none}
.fb-toggle span{display:inline-block;border:1px solid #e5e7eb;border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;color:#4b5563;background:#fff}
.fb-toggle input:checked+span{background:#e6f4ea;color:#0a3d2c;border-color:#22a565}
.fb-clear{margin-left:auto;font-size:13.5px;font-weight:600;color:var(--green-dark)}
.results-head .view-toggle{background:#f1f3f9;border-radius:999px;padding:4px;gap:2px}
.results-head .view-toggle a{border:0;border-radius:999px;padding:8px 14px}
.results-head .view-toggle a.on{background:#0a3d2c;color:#fff}
@media (max-width:640px){
  .fb-select-wrap select{max-width:100%}
}

/* v1.30 — dashboard per the user's reference image: violet theme, icon
   nav with a collapsible icon rail, stat cards with icon boxes, charts.
   The public site stays green; this violet theme is the admin only. */
.dash-body .dash-nav a{display:flex;align-items:center;gap:10px}
.dash-nav .di{display:inline-flex;flex:none}
.dash-nav .di svg{width:20px;height:20px}
.dash-body .cards .card{border-left:none}
.dash-side-toggle{border:none;border-radius:var(--radius);padding:9px 13px;font-size:16px;font-weight:700;cursor:pointer;line-height:1}
.dash-side{transition:width .2s ease}
.dash-user .du-ic{display:none}
/* Topbar search (reference-style pill, searches listings) */
.dash-search{flex:1;max-width:420px;min-width:180px}
.dash-search input{width:100%;padding:10px 16px;border:1px solid var(--border);border-radius:999px;background:var(--muted);font-size:14px}
@media(min-width:901px){
 body.sidebar-collapsed .dash-side{width:68px;padding:20px 8px}
 body.sidebar-collapsed .dash-brand{font-size:0}
 body.sidebar-collapsed .dash-brand::after{content:attr(data-initial);display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;font-size:20px;font-weight:800}
 body.sidebar-collapsed .dash-brand span{display:none}
 body.sidebar-collapsed .dash-brand-row{justify-content:center}
 body.sidebar-collapsed .dash-nav-label{display:none}
 body.sidebar-collapsed .dash-nav a{justify-content:center;padding:10px}
 body.sidebar-collapsed .dash-nav a .dt{display:none}
 body.sidebar-collapsed .dash-user{justify-content:center;padding:10px}
 body.sidebar-collapsed .dash-user .du-name,body.sidebar-collapsed .dash-user .du-role{display:none}
 body.sidebar-collapsed .dash-user .du-ic{display:inline-flex}
}
/* Overview: reference-style stat cards + charts */
.stat-card{padding:18px}
.stat-ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.stat-ic svg{width:22px;height:22px}
.stat-num{font-size:28px;font-weight:800;color:#1d1d1f;line-height:1.1}
.stat-lbl{color:#6b7280;font-size:13.5px;margin-top:2px}
.stat-delta{font-size:12.5px;font-weight:700;margin-top:6px}
.stat-delta.up{color:#16a34a}
.stat-delta.down{color:#dc2626}
.stat-delta.flat{color:#6b7280}
.charts{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:22px}
.charts3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:22px}
.chart-card{padding:18px}
.chart-card h3{margin-top:0}
.donut-wrap{display:flex;flex-direction:column;align-items:center;gap:10px}
.chart-legend{font-size:13.5px;color:#374151;display:flex;flex-direction:column;gap:4px;width:100%}
.chart-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.chan-row{display:grid;grid-template-columns:86px 1fr 56px;gap:10px;align-items:center;margin:12px 0;font-size:13.5px}
.chan-track{height:8px;background:#f1f3f9;border-radius:999px;overflow:hidden}
.chan-fill{height:100%;border-radius:999px}
@media(max-width:900px){.charts,.charts3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
 .charts,.charts3{grid-template-columns:1fr}
 .dash-main{padding:12px}
 .dash-body .dash-h1{font-size:24px}
 .dash-welcome{font-size:17px}
 .dash-topbar{padding:12px 14px}
 .dash-search{max-width:none;flex-basis:100%}
}

/* v1.33 — mobile overflow fix (listings.php), auth logo, warning gate modal */
html,body{overflow-x:clip}
.auth-logo{text-align:center;margin:0 0 14px}
.auth-logo img{max-height:64px;max-width:230px;object-fit:contain}
.auth-logo-text{font-size:26px;font-weight:800;color:var(--green);letter-spacing:-.5px}
.modal-card.gate-warn{border:2px solid #f59e0b;border-top:6px solid #f59e0b;text-align:center}
.gate-warn-icon{width:58px;height:58px;border-radius:50%;background:#fef3c7;color:#b7791f;font-size:32px;line-height:58px;margin:2px auto 12px}
.modal-card.gate-warn .modal-actions{justify-content:center}
@media(max-width:640px){
 .filterbar>.fb-seg,.filterbar>.fb-search,.filterbar>.fb-select-wrap{flex-basis:100%;max-width:100%}
 .fb-search{min-width:0}
 .fb-seg{width:100%}
 .fb-seg label{flex:1}
 .fb-seg span{text-align:center;padding:9px 6px}
 .fb-select-wrap select{width:100%}
 .logo{min-width:0;flex:1}
 .logo-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .logo-img{max-width:120px;height:38px;object-fit:contain}
 .header-actions{flex-shrink:0}
 .lc-title,.lc-about{overflow-wrap:anywhere}
}

/* v1.35 — professional logo loading screen */
#page-loader{position:fixed;inset:0;background:#fff;z-index:9999;display:flex;align-items:center;justify-content:center;transition:opacity .5s ease,visibility .5s}
#page-loader.done{opacity:0;visibility:hidden;pointer-events:none}
.loader-box{text-align:center;padding:20px}
.loader-logo{max-width:240px;max-height:90px;object-fit:contain}
.loader-text{font-size:28px;font-weight:800;color:var(--green);letter-spacing:-.5px}
.loader-bar{width:180px;height:4px;background:#e5e7eb;border-radius:99px;margin:18px auto 0;overflow:hidden}
.loader-bar span{display:block;height:100%;width:40%;background:var(--green);border-radius:99px;animation:loader-slide 1.1s ease-in-out infinite}
@keyframes loader-slide{0%{transform:translateX(-110%)}100%{transform:translateX(350%)}}

/* v1.36 — archive images are 1:1 squares (individuals + companies, both views) */
.results-list .lc-img{width:300px;height:300px;min-height:0;aspect-ratio:1/1;object-fit:cover}
.results-grid .lc-img{height:auto;aspect-ratio:1/1}
@media(max-width:900px){
  .results-list .lc-img{width:100%;height:auto;aspect-ratio:1/1}
}
/* v1.36 — specialty / experience lines on archive cards */
.lc-spec,.lc-exp{font-size:14px;color:#3c4a43;margin-top:2px}
.lc-spec span,.lc-exp span{color:#7a8a82;font-weight:600}
/* v1.36 — AJAX archive loading state */
#archive-results-wrap.archive-loading{opacity:.55;transition:opacity .2s ease}
/* v1.36 — monthly limit note on the detail contact card */
.limit-note{background:#fef3c7;border:1px solid #f59e0b;color:#92400e;border-radius:8px;padding:9px 12px;font-size:13.5px;margin:12px 0 0}

/* v1.37 — Contact Us popup (Bayut-style) */
.contact-card-modal{text-align:center;max-width:420px}
.contact-card-modal h3{margin:0 0 4px;font-size:22px}
.cm-name{font-size:17px;color:#0a3d2c;margin:6px 0 12px}
.cm-value{display:flex;align-items:center;justify-content:center;gap:10px;font-size:22px;font-weight:800;color:#0a7a52;margin:6px 0 10px;word-break:break-all}
.cm-icon{font-size:24px}
.cm-agent{color:#5b6b62;font-size:15px;border-top:1px solid #e6ebe7;border-bottom:1px solid #e6ebe7;padding:10px 0;margin:10px 0}
.cm-ref{font-size:15px;color:#33413a;margin:10px 0 4px}
.cm-credits{font-size:13.5px;margin:4px 0 0}

/* v1.38 — professional auth pages (split brand layout) */
.auth-wrap{max-width:940px}
.auth-card.auth-split{display:grid;grid-template-columns:1fr 1.1fr;padding:0;overflow:hidden;box-shadow:0 10px 34px rgba(10,61,44,.10)}
.auth-brand{background:linear-gradient(160deg,#0a3d2c,#127a4b 70%,#22a565);color:#fff;padding:38px 32px;display:flex;flex-direction:column;justify-content:center}
.auth-brand .auth-logo{text-align:left;margin:0 0 18px}
.auth-logo-chip{display:inline-block;background:#fff;border-radius:10px;padding:8px 12px;align-self:flex-start}
.auth-logo-chip img{max-height:44px;max-width:210px}
.auth-brand h2{color:#fff;font-size:26px;line-height:1.25;margin:0 0 10px}
.auth-brand p{opacity:.92;font-size:15px;margin:0 0 20px}
.auth-points{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.auth-points li{display:flex;gap:10px;font-size:14.5px;line-height:1.4}
.auth-points li::before{content:'✓';font-weight:800;color:#bff0d2;flex-shrink:0}
.auth-stats{margin-top:24px;padding-top:16px;border-top:1px solid rgba(255,255,255,.25);font-size:13.5px;opacity:.9}
.auth-form{padding:34px 32px}
.auth-form h2{margin-top:0}
.auth-note{background:#eef7f1;border:1px solid #cfe6d8;border-radius:9px;padding:12px;font-size:13.5px;margin-top:16px}
.pw-wrap{position:relative;display:block}
.pw-wrap input{width:100%;padding-right:64px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--green);font-weight:700;font-size:13px;cursor:pointer;padding:6px}
@media(max-width:820px){
  .auth-card.auth-split{grid-template-columns:1fr}
  .auth-brand{padding:26px 24px}
  .auth-brand h2{font-size:22px}
  .auth-stats{display:none}
  .auth-form{padding:26px 22px}
}

/* v1.39 — success variant of the gate popup (green, for "Request sent") */
.modal-card.gate-ok{border:2px solid #22a565;border-top:6px solid #22a565;text-align:center}
.gate-ok-icon{width:58px;height:58px;border-radius:50%;background:#e7f7ee;color:#0d5c31;font-size:32px;line-height:58px;margin:2px auto 12px}
.modal-card.gate-ok .modal-actions{justify-content:center}

/* v1.40 — notification bell + dropdown (public header + dashboard topbar) */
.notif-wrap{position:relative;display:inline-flex;align-items:center}
.notif-bell{position:relative;background:none;border:none;cursor:pointer;color:#1f2937;padding:8px;border-radius:50%;line-height:0}
.notif-bell:hover{background:#eef2f0}
.dash-topbar .notif-bell{color:#374151}
.notif-badge{position:absolute;top:2px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;font-weight:700;line-height:17px;text-align:center}
.notif-drop{position:absolute;top:calc(100% + 8px);right:0;width:340px;max-width:92vw;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.16);z-index:90;text-align:left}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid #eef2f0}
.notif-head a{font-size:13px;color:#0a7a4a;text-decoration:none}
.notif-list{max-height:320px;overflow-y:auto}
.notif-empty{padding:14px;margin:0}
.notif-item{display:flex;gap:4px;align-items:flex-start;padding:11px 14px;border-bottom:1px solid #f1f5f3;text-decoration:none;color:inherit}
.notif-item:last-child{border-bottom:none}
.notif-item:hover{background:#f8faf9}
.notif-item.unread{background:#f0f9f4}
.notif-item strong{display:block;font-size:14px;color:#111827}
.notif-item span{display:block;font-size:13px;color:#4b5563;margin-top:2px}
.notif-item em{display:block;font-size:12px;color:#9ca3af;font-style:normal;margin-top:2px}
.notif-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #eef2f0}

/* v1.43 — mobile header: bell sits left of the menu button; the user chip and
   the guest Log in / Sign up buttons hide on phones because every link now
   lives inside the navigation dropdown (My Account last). */
.nav-mobile-only{display:none}
@media(max-width:900px){
  .header-actions .user-menu{display:none}
  .header-actions > a.nav-link,
  .header-actions > a.btn{display:none}
  .main-nav.open .nav-mobile-only{display:block}
  .main-nav.open{max-height:70vh;overflow-y:auto}
  .notif-drop{width:330px;max-width:calc(100vw - 20px)}
  .notif-item{padding:12px 14px}
}
/* v1.43 — notification type icons (bell dropdown + Notifications page) */
.notif-ic{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:11px}
.notif-ic svg{display:block}

/* v1.44 — notifications page, boxed: centred column with real side margins
   (the page used an unstyled .wrap, so rows touched the screen edges). */
.notif-page{max-width:780px}
/* v1.44 — live connection pill (dashboard topbar): green = updating itself,
   red = offline, no internet or server connection. */
.conn-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#12703f;background:#e3f5ea;border:1px solid #bfe6cd;border-radius:999px;padding:5px 10px;white-space:nowrap}
.conn-pill .conn-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.conn-pill.off{color:#b91c1c;background:#fde8e8;border-color:#f3c2c2}
.conn-pill.off .conn-dot{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.15)}
@media(max-width:900px){
  .conn-pill .conn-txt{display:none}
  .conn-pill{padding:5px 8px}
}

/* v1.45 — icon centering: .notif-item span (specificity 0,1,1) was beating
   .notif-ic (0,1,0) and forcing display:block, so the SVG sat at the top of
   the circle instead of the middle. This (0,2,0) rule restores flex centering. */
.notif-item .notif-ic{display:flex;align-items:center;justify-content:center;margin-top:0}

/* v1.46 — live side toasts: a new notification slides in from the side for
   active users (the bell above already has it too). Click it to open it. */
.live-toasts{position:fixed;right:18px;bottom:18px;z-index:300;display:flex;flex-direction:column;gap:10px;max-width:calc(100vw - 36px)}
.live-toast{display:flex;gap:10px;align-items:flex-start;width:350px;max-width:100%;background:#fff;border:1px solid #e5e7eb;border-left:4px solid #0a7a4a;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.18);padding:12px 14px;cursor:pointer;transform:translateX(120%);opacity:0;transition:transform .35s ease,opacity .35s ease}
.live-toast.show{transform:translateX(0);opacity:1}
.live-toast.hide{transform:translateX(120%);opacity:0}
.live-toast .lt-close{margin-left:auto;border:0;background:none;font-size:18px;line-height:1;color:#9ca3af;cursor:pointer;padding:2px 4px;flex:0 0 auto}
.live-toast .lt-title{font-weight:600;font-size:14px;color:#111827;display:block}
.live-toast .lt-msg{font-size:13px;color:#4b5563;margin-top:2px;display:block}
@media(max-width:600px){
  .live-toasts{right:12px;left:12px;bottom:12px}
  .live-toast{width:auto}
}

/* v1.50 — home page to the user's mockup: hero with a dark-green LEFT
   gradient over the Settings hero image (green gradient fallback when no
   image is set), a white search card overlapping the hero's bottom edge,
   Explore by Category, a stats banner and a CTA. The admin changes the
   hero photo at Dashboard -> Settings -> Branding -> Hero Background Image.
   Header and footer are untouched. */
.home-wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.hero-main{position:relative;background:linear-gradient(120deg,#0d4d33,#127a4b 55%,#22a565);background-size:cover;background-position:center;color:#fff;overflow:hidden}
.hero-grad{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,38,26,.93) 0%,rgba(5,38,26,.74) 35%,rgba(5,38,26,.40) 60%,rgba(5,38,26,.08) 82%,rgba(5,38,26,0) 100%)}
.hero-main-inner{position:relative;z-index:1;padding-top:88px;padding-bottom:124px}
.hero-eyebrow{color:#f0c75e;letter-spacing:3px;font-weight:700;font-size:12.5px;text-transform:uppercase;margin:0}
.hero-main h1{font-size:54px;line-height:1.06;margin:16px 0 14px;letter-spacing:-.5px;font-weight:800}
.hero-main h1 .gold{color:#f0c75e}
.hero-tag{font-size:17.5px;opacity:.94;margin:0;max-width:580px;line-height:1.55}
.hero-points{display:flex;gap:34px;flex-wrap:wrap;margin-top:30px}
.hero-point{display:flex;gap:10px;align-items:flex-start}
.hp-ic{width:34px;height:34px;flex:none;border-radius:50%;background:#0a9b58;display:flex;align-items:center;justify-content:center}
.hero-point b{display:block;font-size:14.5px}
.hero-point span span{display:block;font-size:12.5px;opacity:.85;margin-top:1px}
/* White search card overlapping the hero's bottom edge. */
.hero-card-wrap{position:relative;z-index:5;margin-top:-76px}
.hero-searchcard{background:#fff;border-radius:18px;padding:18px 20px;box-shadow:0 20px 45px rgba(0,0,0,.18);color:#111827}
.hsc-row1{display:flex;gap:10px;align-items:center;border:1px solid #e5e7eb;border-radius:12px;padding:4px 4px 4px 14px}
.hsc-row1>svg{flex:none}
.hsc-row1 input{flex:1;min-width:0;border:0;outline:0;font-size:15px;padding:10px 0;background:transparent}
.hsc-search{background:#0a7a4a;color:#fff;border:0;border-radius:10px;padding:13px 30px;font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.hsc-search:hover{background:#086b41}
.hsc-row2{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.hsc-row2 select{flex:1;min-width:150px;border:1px solid #e5e7eb;border-radius:10px;padding:11px 12px;font-size:14px;background:#fff;color:#374151;max-height:44px}
.hsc-adv{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;font-size:14.5px;color:#0a3d2c;text-decoration:none}
.hsc-adv:hover{text-decoration:underline}
/* Explore by Category. */
.home-cats{padding-top:60px;padding-bottom:8px}
.home-sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:22px}
.home-sec-head h2{margin:0;font-size:30px;color:#0a3d2c;letter-spacing:-.3px}
.home-sec-head p{margin:6px 0 0;color:#6b7280;font-size:15px}
.home-viewall{font-weight:700;color:#0a3d2c;text-decoration:none;white-space:nowrap;font-size:14.5px}
.home-viewall:hover{text-decoration:underline}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.cat-card{position:relative;display:block;background:#fff;border:1px solid #e7ece9;border-radius:14px;padding:20px 16px 20px;text-decoration:none;color:#111827}
.cat-card:hover{box-shadow:0 10px 24px rgba(10,61,44,.10);text-decoration:none}
.cc-ic{width:52px;height:52px;border-radius:50%;background:#e3f4ec;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.cat-card b{display:block;font-size:15.5px;color:#0a3d2c}
.cc-desc{display:block;font-size:13px;color:#6b7280;margin-top:4px;line-height:1.5;min-height:38px;padding-right:28px}
.cc-go{position:absolute;right:14px;bottom:16px;width:30px;height:30px;border-radius:50%;border:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;color:#0a3d2c;font-size:15px}
/* Stats banner. */
.home-stats{position:relative;overflow:hidden;border-radius:18px;margin:56px 0 8px;background:linear-gradient(100deg,#07352a,#0a5a40);background-size:cover;background-position:center;color:#fff;display:flex;align-items:center;gap:36px;padding:38px 40px}
/* v1.51: stronger overlay — on bright background photos the white text was
   washing out. Same left-dark feel as the hero gradient. */
.home-stats-grad{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,32,22,.95) 0%,rgba(4,32,22,.84) 35%,rgba(4,32,22,.64) 65%,rgba(4,32,22,.50) 100%)}
.home-stats>*{position:relative;z-index:1}
.hs-left{display:flex;gap:14px;align-items:flex-start;max-width:300px;flex:none}
.hs-shield{flex:none;width:52px;height:52px;color:#f0c75e}
.hs-left b{display:block;font-size:17px}
.hs-left>div>span{display:block;font-size:13px;opacity:.8;margin-top:4px;line-height:1.5}
.hs-nums{display:flex;gap:8px;flex:1;justify-content:center;flex-wrap:wrap}
.hs-num{text-align:center;padding:0 28px;border-left:1px solid rgba(255,255,255,.16)}
.hs-num:first-child{border-left:0;padding-left:0}
.hs-num svg{margin-bottom:6px}
.hs-num b{display:block;font-size:26px}
.hs-num span{font-size:13px;opacity:.85;white-space:nowrap}
/* Gold script line on the banner's right. */
.hs-script{font-family:'Segoe Script','Brush Script MT','Comic Sans MS',cursive;color:#f0c75e;font-size:21px;line-height:1.35;text-align:right;transform:rotate(-4deg);flex:none}
/* CTA. */
.home-cta{text-align:center;padding-top:60px;padding-bottom:72px}
.home-cta h2{margin:0;font-size:28px;color:#0a3d2c;letter-spacing:-.3px}
.home-cta p{color:#6b7280;margin:10px 0 22px;font-size:15.5px}
.home-cta-btn{font-size:15.5px;padding:13px 30px;border-radius:12px;display:inline-flex;align-items:center;gap:8px}
@media(max-width:900px){
  .hero-main-inner{padding-top:56px;padding-bottom:100px}
  .hero-main h1{font-size:34px}
  .hero-points{gap:18px}
  .hero-card-wrap{margin-top:-64px}
  .hsc-row1{flex-wrap:wrap}
  .hsc-row1 input{flex-basis:100%;order:-1;padding:8px 4px}
  .hsc-search{width:100%;justify-content:center}
  .hsc-row2 select{flex-basis:calc(50% - 5px)}
  .home-sec-head{flex-direction:column;align-items:flex-start}
  .home-stats{flex-direction:column;gap:26px;padding:30px 24px;text-align:center}
  .hs-left{max-width:none}
  .hs-nums{gap:18px}
  .hs-num{border-left:0;padding:0 10px}
  .hs-script{text-align:center}
}


/* v1.55 — Professional SAAS admin theme, designed in-house (light + dark).
   Dark navy sidebar, refined spacing scale, proper button/table/card/form
   systems. Replaces the v1.54 variable dump. Public site untouched. */
body.dash-body{
  --background:#f3f5f9; --foreground:#0f1c2e;
  --card:#ffffff; --card-foreground:#0f1c2e;
  --popover:#ffffff; --popover-foreground:#0f1c2e;
  --primary:#2563eb; --primary-foreground:#ffffff;
  --secondary:#edf1f7; --secondary-foreground:#334155;
  --muted:#f1f4f9; --muted-foreground:#64748b;
  --accent:#e7effe; --accent-foreground:#1e40af;
  --destructive:#dc2626; --destructive-foreground:#ffffff;
  --border:#e3e8f0; --input:#c3cedd; --ring:#2563eb;
  --sidebar:#0e1a2f; --sidebar-foreground:#93a4bd; --sidebar-primary:#3b82f6;
  --sidebar-primary-foreground:#ffffff; --sidebar-accent:rgba(255,255,255,.07);
  --sidebar-accent-foreground:#ffffff; --sidebar-border:rgba(148,163,184,.14); --sidebar-ring:#3b82f6;
  --radius:.75rem;
  --chart-1:#2563eb; --chart-2:#0891b2; --chart-3:#7c3aed; --chart-4:#f59e0b; --chart-5:#10b981;
  --shadow:0 1px 2px rgba(15,28,46,.05),0 2px 8px rgba(15,28,46,.06);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  background:var(--background); color:var(--foreground);
}
body.dash-body.dark{
  --background:#0a101d; --foreground:#dbe4f3;
  --card:#101a2e; --card-foreground:#dbe4f3;
  --popover:#101a2e; --popover-foreground:#dbe4f3;
  --primary:#3b82f6; --primary-foreground:#ffffff;
  --secondary:#182641; --secondary-foreground:#c3cfe6;
  --muted:#0f1830; --muted-foreground:#8494b3;
  --accent:#15294f; --accent-foreground:#93c5fd;
  --destructive:#f87171; --destructive-foreground:#ffffff;
  --border:#1c2946; --input:#2b3d63; --ring:#3b82f6;
  --sidebar:#060b15; --sidebar-foreground:#8494b3; --sidebar-primary:#3b82f6;
  --sidebar-accent:rgba(255,255,255,.06); --sidebar-accent-foreground:#ffffff;
  --sidebar-border:rgba(255,255,255,.07);
  --chart-1:#60a5fa; --chart-2:#38bdf8; --chart-3:#a78bfa; --chart-4:#fbbf24; --chart-5:#34d399;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25);
}
/* ---- sidebar ---- */
.dash-body .dash-side{background:linear-gradient(180deg,#111f38 0%,#0b1526 100%);border-right:1px solid var(--sidebar-border);color:var(--sidebar-foreground)}
.dash-body .dash-brand{color:#fff;font-weight:800;font-size:19px;letter-spacing:-.02em}
.dash-body .dash-brand span{color:var(--sidebar-foreground);font-weight:500;font-size:12px;letter-spacing:.04em}
.dash-body .dash-nav-label{color:#5b6b87;font-size:10.5px;letter-spacing:.12em;font-weight:700}
.dash-body .dash-nav a{color:var(--sidebar-foreground);border-radius:10px;padding:10px 12px;font-size:14.5px;font-weight:500;border:1px solid transparent}
.dash-body .dash-nav a:hover{background:var(--sidebar-accent);color:var(--sidebar-accent-foreground);text-decoration:none}
.dash-body .dash-nav a.on{background:var(--sidebar-primary);color:var(--sidebar-primary-foreground);font-weight:600;box-shadow:0 4px 14px rgba(59,130,246,.4);border-color:transparent}
.dash-body .dash-nav a.on [data-live-count]{color:#fff}
.dash-body a.dash-user{background:rgba(255,255,255,.05);border:1px solid var(--sidebar-border);color:#fff;border-radius:12px}
.dash-body a.dash-user:hover{background:rgba(255,255,255,.09);text-decoration:none}
.dash-body a.dash-user span{color:var(--sidebar-foreground)}
/* ---- topbar ---- */
.dash-topbar{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}
.dash-welcome{font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--foreground)}
.dash-crumb{color:var(--muted-foreground);font-size:12.5px}
.dash-search input{background:var(--muted);border:1px solid transparent;color:var(--foreground);border-radius:999px}
.dash-search input:focus{background:var(--card);border-color:var(--ring);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.dash-avatar{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.4);font-weight:700}
.dash-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:1px solid var(--border);background:var(--card);color:var(--muted-foreground);cursor:pointer;flex:none}
.dash-theme-toggle:hover{background:var(--muted);color:var(--foreground)}
.dash-topbar .notif-bell{color:var(--muted-foreground);border:1px solid var(--border);background:var(--card);width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center}
.dash-topbar .notif-bell:hover{background:var(--muted);color:var(--foreground)}
/* ---- main + headings ---- */
.dash-body .dash-main{background:var(--background)}
.dash-body .dash-h1{font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--foreground)}
/* ---- cards + stats ---- */
.dash-body .card,.dash-body .form-card{background:var(--card);color:var(--card-foreground);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}
.dash-body .cards .card{border-left:none;position:relative;overflow:hidden}
.dash-body .cards .card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--chart-1)}
.dash-body .cards .card:nth-child(4n+2)::before{background:var(--chart-5)}
.dash-body .cards .card:nth-child(4n+3)::before{background:var(--chart-4)}
.dash-body .cards .card:nth-child(4n+4)::before{background:var(--chart-2)}
.dash-body .cards .num{font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--foreground)}
.dash-body .cards .lbl{color:var(--muted-foreground);font-size:13px;font-weight:500}
.stat-num{font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--foreground)}
.stat-lbl{color:var(--muted-foreground);font-size:13px;font-weight:500}
.stat-ic{border-radius:14px}
.chart-legend{color:var(--foreground)}
.chan-track{background:var(--muted)}
.empty-box{border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted-foreground);background:var(--card)}
/* ---- buttons ---- */
.dash-body .btn-green{background:var(--primary);color:#fff;border:1px solid transparent;border-radius:10px;padding:10px 18px;font-weight:600;font-size:14px;box-shadow:0 1px 2px rgba(37,99,235,.3)}
.dash-body .btn-green:hover{background:#1d4ed8;box-shadow:0 4px 12px rgba(37,99,235,.35);text-decoration:none}
.dash-body a.btn-green{color:#fff}
.dash-body .btn-dark{background:var(--secondary);color:var(--secondary-foreground);border:1px solid var(--border);border-radius:10px;font-weight:600}
.dash-body .btn-dark:hover{background:var(--muted)}
.dash-body a.btn-dark{color:var(--secondary-foreground)}
.dash-body .btn-outline{background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:10px;font-weight:600}
.dash-body .btn-outline:hover{background:var(--muted);border-color:var(--input);text-decoration:none}
.dash-body .btn-danger{background:var(--destructive);color:#fff;border:1px solid transparent;border-radius:10px;font-weight:600}
.dash-body .btn-danger:hover{filter:brightness(.94)}
.dash-body a.btn-danger{color:#fff}
.dash-body .btn-sm{padding:7px 13px;font-size:13px;border-radius:8px}
.dash-body a{color:var(--primary)}
/* ---- tables ---- */
.dash-body .grid th{background:var(--muted);color:var(--muted-foreground);font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;font-weight:700;padding:12px 14px;border-bottom:1px solid var(--border)}
.dash-body .grid td{padding:13px 14px;border-bottom:1px solid var(--border);color:var(--foreground);font-size:14px;vertical-align:middle}
.dash-body .grid tr:last-child td{border-bottom:none}
.dash-body .grid tbody tr:hover td{background:var(--muted)}
/* ---- forms ---- */
.dash-body label{font-size:13.5px;font-weight:600;color:var(--foreground)}
.dash-body input,.dash-body select,.dash-body textarea{background:var(--card);color:var(--foreground);border:1px solid var(--input);border-radius:10px;padding:10px 13px;font-size:14px}
.dash-body input::placeholder,.dash-body textarea::placeholder{color:var(--muted-foreground)}
.dash-body input:focus,.dash-body select:focus,.dash-body textarea:focus{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px rgba(37,99,235,.16)}
.dash-body .filters{background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}
.dash-body .pagination .pg{background:var(--card);border:1px solid var(--border);color:var(--foreground);border-radius:8px}
.dash-body .pagination .pg.current{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}
.dash-body .dash-menu-btn,.dash-side-toggle{background:var(--primary);color:#fff;border:none;border-radius:10px}
.dash-body .dash-menu-btn:hover,.dash-side-toggle:hover{background:#1d4ed8}
/* ---- pills, alerts, dropdowns, modals ---- */
.dash-body .pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:700;background:var(--accent);color:var(--accent-foreground)}
.dash-body .alert{border-radius:12px;font-size:14px}
.dash-body .alert-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}
.dash-body .alert-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.dash-body .alert-warn{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
body.dash-body.dark .alert-success{background:#0c3a26;border-color:#14532d;color:#a7f3d0}
body.dash-body.dark .alert-error{background:#3d1414;border-color:#7f1d1d;color:#fca5a5}
body.dash-body.dark .alert-warn{background:#3a2a0c;border-color:#78350f;color:#fcd34d}
.dash-body .user-dropdown{background:var(--popover);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 40px rgba(2,8,20,.2);color:var(--popover-foreground)}
.dash-body .user-drop-meta{background:var(--muted);border-bottom:1px solid var(--border)}
.dash-body .user-drop-meta strong{color:var(--foreground)}
.dash-body .user-drop-meta span{color:var(--muted-foreground)}
.dash-body .user-dropdown a{color:var(--foreground)}
.dash-body .user-dropdown a:hover{background:var(--muted);text-decoration:none}
.dash-body .notif-drop{background:var(--popover);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 40px rgba(2,8,20,.2);color:var(--popover-foreground)}
.dash-body .notif-head{color:var(--foreground);border-bottom:1px solid var(--border)}
.dash-body .notif-item{border-bottom:1px solid var(--border)}
.dash-body .notif-item strong{color:var(--foreground)}
.dash-body .notif-item span{color:var(--muted-foreground)}
.dash-body .notif-item em{color:var(--muted-foreground)}
.dash-body .notif-foot a{color:var(--primary)}
body.dash-body.dark .modal-card{background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border)}
body.dash-body.dark .live-toast{background:var(--popover);color:var(--popover-foreground);border-color:var(--border)}
@media(min-width:901px){
 body.sidebar-collapsed .dash-side{padding:20px 10px}
 body.sidebar-collapsed .dash-brand::after{background:var(--sidebar-primary);color:#fff;box-shadow:0 4px 12px rgba(59,130,246,.4)}
 body.sidebar-collapsed .dash-nav a{justify-content:center}
 body.sidebar-collapsed .dash-nav a.on{box-shadow:0 4px 12px rgba(59,130,246,.4)}
}
@media(max-width:900px){
 .dash-body .dash-side{background:linear-gradient(180deg,#111f38 0%,#0b1526 100%)}
 body.dash-body.dark .dash-side{background:#060b15}
}

/* v1.55 — proper dark-mode hardening: every hardcoded light surface used
   inside the dashboard is re-mapped to theme vars, so dark mode is fully
   readable (no white tables, no washed-out text). */
.dash-body table.grid{background:var(--card);border-color:var(--border)}
.dash-body table.grid th,.dash-body table.grid td{border-color:var(--border)}
.dash-body .muted,.dash-body .cat-count,.dash-body .pg-dots{color:var(--muted-foreground)}
.dash-body .info-table td:first-child{color:var(--muted-foreground)}
.dash-body .tabs a{background:var(--card);border-color:var(--border);color:var(--foreground)}
.dash-body .tabs a.on{background:var(--primary);border-color:var(--primary);color:#fff}
.ring-track{stroke:var(--muted)}
.ring-text{fill:var(--foreground)}
.ring-sub{fill:var(--muted-foreground)}
.dash-body .form-actions-sticky{background:var(--card);border-color:var(--border);box-shadow:var(--shadow)}
.dash-body .info-table td{border-color:var(--border)}
.dash-body .info-table td:nth-child(odd){background:var(--muted);color:var(--muted-foreground)}
.dash-body .card .lbl{color:var(--muted-foreground)}
.dash-body .internal-note{background:#fffbeb;border-color:#fde68a;color:#92400e}
body.dash-body.dark .internal-note{background:#3a2a0c;border-color:#78350f;color:#fcd34d}

/* v1.56 — sticky dashboard sidebar: the left nav stays stuck (full height,
   own scroll if the menu is taller than the viewport) while the right side
   scrolls independently on long pages. Desktop only; mobile keeps the
   stacked top-bar layout. */
@media(min-width:901px){
  .dash-wrap{height:100vh;min-height:100vh;overflow:hidden}
  .dash-body .dash-side{position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;flex-shrink:0}
  .dash-body .dash-main{height:100vh;overflow-y:auto;overscroll-behavior:contain}
}

/* v1.57 — listings table card + reference-style footer (matches his mockup):
   white rounded card, per-page select + "Showing X–Y of Z" left, pagination
   right; actions column kept tidy. */
.dash-body .table-card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:18px}
.dash-body .table-card table.grid{border:none;border-radius:0;margin:0}
.dash-body .table-card table.grid th:first-child{border-top-left-radius:0}
.dash-body .table-card table.grid th:last-child{border-top-right-radius:0}
.table-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--border);background:var(--card)}
.table-foot-left{display:flex;align-items:center;gap:12px}
.per-page-form{margin:0}
.per-page-form select{width:auto;min-width:76px;padding:8px 30px 8px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--foreground);font-size:13.5px;font-weight:600;cursor:pointer}
.table-foot .showing{font-size:13.5px;color:var(--muted-foreground);font-weight:500}
.table-foot .showing strong{color:var(--foreground)}
.table-foot-right .pagination{margin:0}
.dash-body .table-card td:last-child{min-width:230px}
.dash-body .table-card .row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dash-body .table-card .row-actions .btn-sm{white-space:nowrap}
@media(max-width:700px){
  .table-foot{flex-direction:column;align-items:stretch}
  .table-foot-right{margin-left:auto}
}

/* v1.57 — WhatsApp button on the support (contact) page. */
.wa-card{border-color:#bbf7d0;background:#f0fdf4}
.wa-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#25d366;color:#fff!important;font-weight:700;font-size:15px;padding:13px 20px;border-radius:12px;text-decoration:none;box-shadow:0 4px 14px rgba(37,211,102,.35)}
.wa-btn:hover{background:#1fb857;color:#fff!important;text-decoration:none}

/* v1.58 — analytics overview (Shopeers-style): KPI cards with sparklines +
   delta pills, chart grids. */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.kpi-card{padding:18px;display:flex;flex-direction:column;gap:6px}
a.kpi-card{text-decoration:none;color:inherit}
a.kpi-card:hover{text-decoration:none}
.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.kpi-num{font-size:32px;font-weight:800;letter-spacing:-.02em;color:var(--foreground);line-height:1.1}
.kpi-lbl{font-size:13px;font-weight:500;color:var(--muted-foreground)}
.spark{margin-top:6px}
.delta-pill{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#dcfce7;color:#15803d;white-space:nowrap}
.delta-pill.down{background:#fee2e2;color:#b91c1c}
.delta-pill.flat{background:var(--muted);color:var(--muted-foreground)}
body.dash-body.dark .delta-pill.up{background:#14532d;color:#86efac}
body.dash-body.dark .delta-pill.down{background:#7f1d1d;color:#fca5a5}
.kpi-bar{height:8px;border-radius:999px;background:var(--muted);margin-top:10px;overflow:hidden}
.kpi-fill{height:100%;border-radius:999px}
.charts-2{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:18px}
.charts-3b{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.chart-card h3{margin-top:0}
@media(max-width:1100px){
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .charts-2,.charts-3b{grid-template-columns:1fr}
}
@media(max-width:640px){.kpi-grid{grid-template-columns:1fr}}

/* v1.59 — collapsible sidebar nav groups. */
.dash-body .nav-group{margin:2px 0}
.dash-body .nav-group-toggle{width:100%;display:flex;align-items:center;gap:10px;background:none;border:none;cursor:pointer;color:rgba(255,255,255,.8);padding:8px 10px;border-radius:8px;font-size:14.5px;font-family:inherit;text-align:left}
.dash-body .nav-group-toggle:hover{background:rgba(255,255,255,.1);color:#fff}
.dash-body .nav-group-toggle .nav-chev{margin-left:auto;transition:transform .18s ease;flex-shrink:0;opacity:.7}
.dash-body .nav-group.open .nav-group-toggle .nav-chev{transform:rotate(180deg)}
.dash-body .nav-group-items{display:none;padding:2px 0 4px}
.dash-body .nav-group.open .nav-group-items{display:block}
.dash-body .nav-group-items a{display:flex;align-items:center;gap:10px;padding:7px 10px 7px 38px;font-size:13.5px}
/* collapsed rail: groups behave like plain links (always show items as icons) */
body.sidebar-collapsed .nav-group-toggle{display:none}
body.sidebar-collapsed .nav-group-items{display:block;padding:0}
body.sidebar-collapsed .nav-group-items a{padding:10px;justify-content:center}
body.sidebar-collapsed .nav-group-items a .dt{display:none}
