/* v3.2 - Provider & customer premium portals */
.provider-hub-v32,.customer-hub-v32{padding:22px 0 64px;background:linear-gradient(180deg,#f6f9ff 0,#f8fafc 360px,#f6f8fb 100%);min-height:78vh;color:#17233b}.portal-topbar{display:flex;align-items:center;gap:22px;background:rgba(255,255,255,.94);border:1px solid #e6ebf3;border-radius:18px;padding:10px 12px 10px 14px;box-shadow:0 10px 30px rgba(31,50,84,.06);margin-bottom:14px;position:relative;z-index:5}.portal-brand{display:flex;align-items:center;gap:10px;min-width:175px}.portal-brand-mark{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#1268ff,#21a8ff);color:#fff;font-weight:900;box-shadow:0 8px 18px rgba(18,104,255,.22)}.portal-brand-mark.customer{background:linear-gradient(135deg,#6a5cff,#8b72ff)}.portal-brand div{display:grid;line-height:1.15}.portal-brand b{font-size:14px}.portal-brand small{font-size:11px;color:#7b879b;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-nav{display:flex;align-items:center;gap:3px;flex:1}.portal-nav a,.portal-nav button{border:0;background:transparent;color:#536078;font:inherit;font-size:13px;font-weight:700;padding:10px 11px;border-radius:10px;display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}.portal-nav a:hover,.portal-nav button:hover,.portal-nav a.active{background:#eef5ff;color:#0964ed}.portal-nav em{font-style:normal;background:#e92d4f;color:#fff;border-radius:999px;font-size:10px;padding:1px 6px}.portal-actions{display:flex;align-items:center;gap:8px}.portal-actions form{margin:0}.portal-ghost,.portal-logout{border:0;background:#f3f6fa;color:#516078;padding:9px 11px;border-radius:10px;font-weight:700;font-size:12px;cursor:pointer}.portal-mobile-nav{display:none}.portal-hero{display:grid;grid-template-columns:1fr 285px;gap:22px;align-items:stretch;min-height:190px;padding:30px 32px;border-radius:24px;margin-bottom:16px;overflow:hidden;position:relative;background:linear-gradient(115deg,#eaf4ff 0%,#f6fbff 62%,#eaf2ff 100%);border:1px solid #dfeaf8;box-shadow:0 12px 36px rgba(34,73,132,.07)}.provider-portal-hero:after,.customer-portal-hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:150px;top:-180px;background:rgba(44,128,255,.08)}.customer-portal-hero{background:linear-gradient(115deg,#f0efff 0%,#fafaff 58%,#edf4ff 100%)}.portal-hero-copy{position:relative;z-index:1;align-self:center}.portal-kicker{display:inline-block;font-size:10px;letter-spacing:.12em;font-weight:900;color:#0b66ef;margin-bottom:8px}.portal-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.portal-hero h1{margin:0;color:#15213a;font-size:30px;line-height:1.15}.portal-hero p{margin:8px 0 0;color:#68758a;max-width:720px}.verified-pill{font-size:11px;font-weight:800;background:#ddf8e9;color:#08763f;border:1px solid #bceccd;padding:6px 9px;border-radius:999px}.portal-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.portal-quick-actions a,.portal-quick-actions button{border:1px solid #dce5f2;background:#fff;color:#34445e;font:inherit;font-size:12px;font-weight:800;border-radius:10px;padding:9px 12px;box-shadow:0 5px 14px rgba(34,64,110,.05);cursor:pointer}.portal-hero-wallet{position:relative;z-index:1;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.92);border-radius:18px;padding:22px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 12px 30px rgba(40,81,139,.08);backdrop-filter:blur(8px)}.portal-hero-wallet small{color:#7a879a;font-size:10px;font-weight:900;letter-spacing:.08em}.portal-hero-wallet strong{font-size:31px;color:#10213e;margin:5px 0}.portal-hero-wallet span{font-size:12px;color:#758196}.portal-hero-wallet a{font-size:12px;font-weight:800;color:#0964ed;margin-top:12px}.portal-hero-wallet.customer-stat strong{font-size:44px}.portal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.portal-kpis article{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e6ebf3;border-radius:16px;padding:15px 16px;box-shadow:0 7px 22px rgba(31,50,84,.045)}.portal-kpi-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:17px}.portal-kpi-icon.blue{background:#e9f3ff;color:#0b66ef}.portal-kpi-icon.amber{background:#fff3df;color:#e58a00}.portal-kpi-icon.green{background:#e7f8ee;color:#099552}.portal-kpi-icon.violet{background:#f0ebff;color:#7657e9}.portal-kpis article>div{display:grid;min-width:0}.portal-kpis small{color:#6f7c91;font-size:11px;font-weight:700}.portal-kpis strong{font-size:22px;color:#17233b;line-height:1.15;margin:2px 0}.portal-kpis article>div>span{font-size:10px;color:#95a0b2}.portal-alert{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;border:1px solid #f1d499;border-radius:15px;background:#fff9ed;margin-bottom:16px}.portal-alert.verify{border-color:#cfdefb;background:#f5f9ff}.portal-alert>div{display:flex;align-items:center;gap:12px}.portal-alert-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:#fff0cb;color:#b86b00;font-weight:900}.portal-alert.verify .portal-alert-icon{background:#e7f0ff;color:#1268ff}.portal-alert p{margin:2px 0 0;color:#68758a;font-size:12px}.provider-dashboard-grid-v32,.customer-dashboard-grid-v32{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.portal-card{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:17px;box-shadow:0 8px 26px rgba(31,50,84,.045)}.portal-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef1f5;padding-bottom:13px;margin-bottom:4px}.portal-card-head>div{display:flex;align-items:center;gap:10px}.portal-card-icon{width:34px;height:34px;border-radius:10px;background:#edf5ff;color:#0964ed;display:grid;place-items:center;font-weight:900}.portal-card-head h2{font-size:15px;margin:0;color:#18243b}.portal-card-head p{font-size:11px;color:#8994a6;margin:2px 0 0}.portal-card-head>a{font-size:11px;font-weight:800;color:#0964ed}.provider-job-list-v32 article,.customer-request-list-v32 article{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 1px;border-bottom:1px solid #eef1f5}.provider-job-list-v32 article:last-child,.customer-request-list-v32 article:last-child{border-bottom:0}.job-service-avatar{width:40px;height:40px;border-radius:12px;background:#eaf3ff;color:#0964ed;display:grid;place-items:center;font-weight:900}.job-service-avatar.customer{background:#f0edff;color:#7158e6}.job-info{min-width:0}.job-title-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.job-info p{margin:3px 0;color:#69768b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-info small{color:#98a3b3;font-size:10px}.job-price{font-size:14px;white-space:nowrap}.job-contact-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.job-contact-chips span,.job-contact-chips a,.job-lock-note{font-size:10px;padding:5px 7px;border-radius:7px;background:#f3f6fa;color:#59677c}.job-contact-chips a{color:#0964ed;font-weight:800}.job-lock-note{display:inline-block;margin-top:6px;background:#fff7e8;color:#9a6200}.provider-side-stack-v32{display:grid;gap:16px;align-content:start}.finance-row{display:flex;justify-content:space-between;align-items:center;padding:11px 1px;border-bottom:1px solid #eef1f5;font-size:12px}.finance-row span{color:#718096}.finance-card-v32 .btn{margin-top:13px}.portal-notice{display:flex;gap:9px;padding:10px 1px;border-bottom:1px solid #eef1f5}.portal-notice>span{color:#b7c1d0}.portal-notice.unread>span{color:#0964ed}.portal-notice div{display:grid}.portal-notice b{font-size:11px;color:#3f4c62}.portal-notice.unread b{color:#0964ed}.portal-notice small{font-size:9px;color:#9aa5b5;margin-top:2px}.customer-request-actions{display:grid;justify-items:end;gap:4px;font-size:11px}.customer-request-actions a{font-weight:800;color:#0964ed}.quick-link-stack{display:grid}.quick-link-stack a,.quick-link-stack button{display:flex;justify-content:space-between;align-items:center;border:0;background:transparent;padding:12px 2px;border-bottom:1px solid #eef1f5;color:#47566d;font:inherit;font-size:12px;font-weight:750;cursor:pointer;text-align:left}.quick-link-stack a:hover,.quick-link-stack button:hover{color:#0964ed}.portal-empty{padding:28px 8px}.provider-hub-v32 .status,.customer-hub-v32 .status{font-size:9px;padding:4px 7px;border-radius:999px}
@media(max-width:1050px){.portal-topbar{gap:10px}.portal-brand{min-width:145px}.portal-nav a,.portal-nav button{padding:9px 8px}.portal-actions .portal-ghost{display:none}.provider-dashboard-grid-v32,.customer-dashboard-grid-v32{grid-template-columns:1fr}.provider-side-stack-v32{grid-template-columns:1fr 1fr}.portal-hero{grid-template-columns:1fr 245px}.portal-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.provider-hub-v32,.customer-hub-v32{padding:10px 0 84px}.provider-hub-v32>.container,.customer-hub-v32>.container{padding-left:12px;padding-right:12px}.portal-topbar{padding:9px 10px;border-radius:14px;margin-bottom:9px}.portal-brand{min-width:0;flex:1}.portal-brand small{max-width:160px}.portal-nav{display:none}.portal-actions .btn{font-size:0;width:38px;height:38px;padding:0;display:grid;place-items:center}.portal-actions .btn:before{content:"＋";font-size:19px}.portal-logout{padding:9px 10px}.portal-mobile-nav{display:flex;gap:7px;overflow-x:auto;margin:0 -1px 10px;padding:1px 1px 5px;scrollbar-width:none}.portal-mobile-nav::-webkit-scrollbar{display:none}.portal-mobile-nav a,.portal-mobile-nav button{white-space:nowrap;border:1px solid #e2e8f1;background:#fff;color:#5c697e;border-radius:10px;padding:8px 11px;font:inherit;font-size:11px;font-weight:800}.portal-mobile-nav .active{background:#1268ff;color:#fff;border-color:#1268ff}.portal-hero{grid-template-columns:1fr;padding:21px 18px;border-radius:18px;min-height:auto;gap:16px}.portal-hero h1{font-size:23px}.portal-hero p{font-size:12px;line-height:1.55}.verified-pill{font-size:9px;padding:5px 7px}.portal-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.portal-quick-actions a,.portal-quick-actions button{padding:9px 8px;text-align:center;font-size:10px}.portal-hero-wallet{padding:16px;border-radius:14px}.portal-hero-wallet strong{font-size:26px}.portal-hero-wallet.customer-stat strong{font-size:34px}.portal-kpis{grid-template-columns:1fr 1fr;gap:8px}.portal-kpis article{padding:12px 10px;gap:9px;border-radius:14px}.portal-kpi-icon{width:35px;height:35px;flex-basis:35px;font-size:14px}.portal-kpis strong{font-size:18px}.portal-kpis article>div>span{display:none}.portal-alert{align-items:flex-start;flex-direction:column;padding:12px}.portal-alert .btn,.portal-alert form{width:100%}.portal-alert button{width:100%}.provider-side-stack-v32{grid-template-columns:1fr}.portal-card{padding:14px;border-radius:15px}.portal-card-head{align-items:flex-start}.portal-card-head p{display:none}.provider-job-list-v32 article,.customer-request-list-v32 article{grid-template-columns:38px 1fr;gap:9px;padding:12px 0}.job-service-avatar{width:36px;height:36px}.job-price,.customer-request-actions{grid-column:2;justify-self:start}.customer-request-actions{display:flex;align-items:center;gap:10px}.job-info p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.job-contact-chips{display:grid;grid-template-columns:1fr 1fr}.portal-card-head>a{white-space:nowrap}.provider-portal-hero:after,.customer-portal-hero:after{display:none}}
@media(max-width:420px){.portal-brand b{font-size:12px}.portal-brand small{max-width:110px}.portal-actions .portal-logout{font-size:0;width:36px;height:36px}.portal-actions .portal-logout:after{content:"↪";font-size:17px}.portal-kpis article{align-items:flex-start}.portal-kpis small{font-size:9px}.portal-kpis strong{font-size:16px}.portal-quick-actions{grid-template-columns:1fr}.portal-title-line{gap:7px}.portal-hero h1{font-size:21px}}

/* v3.2.1 - Smart back navigation for provider/customer sub-pages */
.portal-back-wrap{padding:14px 0 0;background:#f7f9fc}.portal-smart-back{display:inline-grid;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;border:1px solid #dde5f0;background:#fff;color:#263750;border-radius:13px;padding:8px 14px 8px 9px;box-shadow:0 7px 22px rgba(31,50,84,.055);font:inherit;cursor:pointer;transition:.18s ease}.portal-smart-back>span{grid-row:1/3;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf5ff;color:#0964ed;font-size:18px;font-weight:900}.portal-smart-back b{font-size:12px;line-height:1.1;text-align:left}.portal-smart-back small{font-size:9px;color:#8a96a8;line-height:1.1;text-align:left;margin-top:2px}.portal-smart-back:hover{border-color:#bfd4f4;transform:translateY(-1px);box-shadow:0 10px 26px rgba(31,50,84,.08)}
@media(max-width:760px){.portal-back-wrap{padding:8px 0 0}.portal-back-wrap>.container{padding-left:12px;padding-right:12px}.portal-smart-back{position:relative;padding:6px 10px 6px 6px;border-radius:11px;grid-template-columns:30px auto;column-gap:7px;box-shadow:0 5px 16px rgba(31,50,84,.05)}.portal-smart-back>span{width:30px;height:30px;border-radius:8px;font-size:16px}.portal-smart-back b{font-size:11px}.portal-smart-back small{display:none}}
@media(max-width:420px){.portal-smart-back{padding-right:9px}.portal-smart-back b{font-size:10px}}

/* v3.2.2 — smarter portal back control + quick service autocomplete */
.portal-back-wrap{position:relative;z-index:32;margin:14px 0 -4px;pointer-events:none}
.portal-back-wrap .container{display:flex;align-items:center}
.portal-smart-back{pointer-events:auto;display:inline-flex;align-items:center;gap:10px;border:1px solid #dce6f2;background:rgba(255,255,255,.96);color:#17324d;border-radius:14px;padding:7px 13px 7px 7px;box-shadow:0 7px 24px rgba(34,63,92,.08);cursor:pointer;transition:.18s ease;min-height:44px}
.portal-smart-back:hover{transform:translateY(-1px);border-color:#bfd2e7;box-shadow:0 10px 28px rgba(34,63,92,.12)}
.portal-back-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#eef5fc;color:var(--blue);flex:0 0 30px}
.portal-back-icon svg{width:17px;height:17px}
.portal-back-copy{display:grid;text-align:left;line-height:1.05;gap:3px}
.portal-back-copy b{font-size:13px;font-weight:800}
.portal-back-copy small{font-size:10.5px;color:#7a8b9e;font-weight:600}

.quick-service-searchbox{margin-top:16px;display:flex;align-items:center;gap:10px;border:1px solid #d7e3ef;background:#fff;border-radius:15px;padding:0 13px;box-shadow:0 8px 24px rgba(29,70,110,.07)}
.quick-service-searchbox>span{font-size:20px;color:#7b8da1}
.quick-service-searchbox input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:15px 0!important;font-size:15px}
.quick-service-searchbox kbd{font-family:inherit;font-size:10px;font-weight:800;color:#8391a1;border:1px solid #e1e8ef;background:#f6f8fb;border-radius:7px;padding:4px 7px}
.quick-search-hint{margin:8px 2px 0;color:#7a8999;font-size:12px;font-weight:650}
.quick-service-suggestions{display:grid;gap:7px;margin:14px 0 6px;max-height:360px;overflow:auto;padding:2px}
.quick-service-suggestions>a{display:grid;grid-template-columns:42px minmax(0,1fr) 24px;gap:11px;align-items:center;text-decoration:none;color:#18324a;border:1px solid #e3ebf3;background:#fff;border-radius:13px;padding:9px 11px;transition:.16s ease}
.quick-service-suggestions>a:hover,.quick-service-suggestions>a.active{border-color:#a9c9e7;background:#f4f9fe;transform:translateX(2px)}
.quick-service-suggestions>a>span{width:40px;height:40px;border-radius:11px;background:#eaf4ff;color:var(--blue);display:grid;place-items:center;font-weight:900}
.quick-service-suggestions b{display:block;font-size:13px;margin-bottom:3px}
.quick-service-suggestions small{display:block;color:#77899a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-service-suggestions i{font-style:normal;color:var(--blue);font-weight:900}
.quick-no-result{padding:20px;border:1px dashed #ccd9e5;border-radius:13px;text-align:center;background:#fafcff;color:#718296}
.quick-no-result b,.quick-no-result span{display:block}.quick-no-result b{color:#324b63;margin-bottom:5px}
.request-quick-popular[hidden]{display:none!important}

@media(max-width:760px){
 .portal-back-wrap{margin:8px 0 -2px;position:sticky;top:6px;z-index:45}
 .portal-back-wrap .container{padding-left:12px;padding-right:12px}
 .portal-smart-back{padding:6px;width:42px;height:42px;min-height:42px;border-radius:13px;box-shadow:0 8px 24px rgba(34,63,92,.12);background:rgba(255,255,255,.97)}
 .portal-back-icon{width:28px;height:28px;flex-basis:28px;background:transparent}
 .portal-back-copy{display:none}
 .quick-service-searchbox{border-radius:13px;padding:0 10px}.quick-service-searchbox input{font-size:14px;padding:14px 0!important}.quick-service-searchbox kbd{display:none}
 .quick-service-suggestions{max-height:46vh;gap:6px;margin-top:10px}
 .quick-service-suggestions>a{grid-template-columns:38px minmax(0,1fr) 20px;padding:8px 9px;border-radius:12px}.quick-service-suggestions>a>span{width:36px;height:36px;border-radius:10px}.quick-service-suggestions small{font-size:11px}
}


/* v3.2.3 — page-native back actions + compact quote autocomplete */
.portal-back-wrap{display:none!important}
.page-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.page-inline-back{height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #dfe7f0;border-radius:11px;background:#fff;color:#405269;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 4px 14px rgba(28,52,82,.045);transition:.16s ease}
.page-inline-back span{width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:#eef5ff;color:var(--blue);font-size:15px;line-height:1}
.page-inline-back:hover{border-color:#bdd1e6;color:var(--blue);transform:translateY(-1px)}
.request-quick-dialog{width:min(560px,calc(100vw - 32px))!important;max-height:min(78vh,680px)!important;padding:20px!important;border-radius:20px!important}
.request-quick-close{right:14px!important;top:13px!important;width:34px!important;height:34px!important;border-radius:10px!important;font-size:21px!important}
.request-quick-head{padding-right:38px!important}
.request-quick-head h2{font-size:23px!important;margin:4px 0 4px!important}
.request-quick-head p{font-size:12.5px!important;margin:0!important;line-height:1.45!important}
.request-quick-head:after{font-size:10px!important;padding:7px 9px!important;margin-top:7px!important}
.quick-service-searchbox{margin-top:12px!important;min-height:44px;border-radius:12px!important;padding:0 10px!important;gap:8px!important;box-shadow:0 4px 14px rgba(29,70,110,.05)!important}
.quick-service-searchbox>span{font-size:17px!important}
.quick-service-searchbox input{padding:11px 0!important;font-size:13.5px!important}
.quick-search-hint{font-size:10.5px!important;margin-top:6px!important}
.request-quick-grid{gap:7px!important;margin-top:10px}
.request-quick-grid a{min-height:48px!important;padding:8px 9px!important;border-radius:11px!important;grid-template-columns:32px 1fr auto!important;gap:8px!important}
.request-quick-grid a>span{width:31px!important;height:31px!important;border-radius:9px!important;font-size:12px!important}
.request-quick-grid b{font-size:11.5px!important}
.request-quick-grid small{font-size:9.5px!important;line-height:1.25!important}
.request-quick-all{margin-top:11px!important;font-size:11.5px!important}
.quick-service-suggestions{max-height:290px!important;margin:10px 0 4px!important;gap:5px!important}
.quick-service-suggestions>a{grid-template-columns:34px minmax(0,1fr) 18px!important;gap:8px!important;padding:7px 8px!important;border-radius:10px!important}
.quick-service-suggestions>a>span{width:32px!important;height:32px!important;border-radius:9px!important;font-size:11px!important}
.quick-service-suggestions b{font-size:11.5px!important;margin-bottom:1px!important}
.quick-service-suggestions small{font-size:9.5px!important}
@media(max-width:700px){
 .dash-head{align-items:flex-start!important;gap:10px!important}.page-head-actions{gap:7px;margin-left:auto}.page-inline-back{height:36px;padding:0 9px;border-radius:10px}.page-inline-back span{width:22px;height:22px}.page-inline-back b{font-size:0}.page-inline-back b:after{content:'Geri';font-size:11px}
 .request-quick-modal{align-items:center!important;padding:12px!important}
 .request-quick-dialog{width:min(94vw,520px)!important;max-height:82dvh!important;border-radius:18px!important;padding:17px 13px 15px!important}
 .request-quick-close{position:absolute!important;float:none!important;right:11px!important;top:10px!important;width:32px!important;height:32px!important}
 .request-quick-head{position:relative!important;top:auto!important;padding-right:34px!important}
 .request-quick-head h2{font-size:19px!important}.request-quick-head p{font-size:11.5px!important}
 .quick-service-searchbox{min-height:42px!important;margin-top:10px!important}.quick-service-searchbox input{padding:10px 0!important;font-size:13px!important}
 .request-quick-grid{grid-template-columns:1fr 1fr!important}.request-quick-grid a{min-height:46px!important}.request-quick-grid small{display:none}
 .quick-service-suggestions{max-height:44dvh!important}.quick-service-suggestions>a{min-height:46px!important}
}
@media(max-width:430px){.request-quick-grid{grid-template-columns:1fr!important}.request-quick-dialog{width:calc(100vw - 20px)!important}.page-head-actions .btn{padding-left:11px;padding-right:11px;font-size:11px}}
