/* KBM Core v1.9.6.17 — Responsive Page Governance
   Global three-mode layout contract for Desktop / Tablet / Mobile. */
:root{
  --kbm-rpg-yellow:#ffcd11;
  --kbm-rpg-navy:#071d2d;
  --kbm-rpg-text:#0f172a;
  --kbm-rpg-muted:#64748b;
  --kbm-rpg-line:#e2e8f0;
  --kbm-rpg-bg:#f6f8fb;
  --kbm-rpg-card:#fff;
  --kbm-rpg-shell:1280px;
  --kbm-rpg-gutter:24px;
  --kbm-rpg-radius:22px;
  --kbm-rpg-shadow:0 14px 38px rgba(15,23,42,.10);
  --kbm-rpg-touch:44px;
  --kbm-rpg-safe-bottom:env(safe-area-inset-bottom,0px);
  --kbm-rpg-header-h:74px;
  --kbm-rpg-vh:1vh;
}
html.kbm-rpg-html,body.kbm-rpg-active{max-width:100%;overflow-x:hidden;scroll-behavior:smooth;}
body.kbm-rpg-active{background:var(--kbm-rpg-bg);color:var(--kbm-rpg-text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;}
body.kbm-rpg-active *,body.kbm-rpg-active *::before,body.kbm-rpg-active *::after{box-sizing:border-box;min-width:0;}
body.kbm-rpg-active :where(img,picture,video,canvas,svg,iframe){max-width:100%;}
body.kbm-rpg-active :where(img,video){height:auto;}
body.kbm-rpg-active :where(button,a,input,select,textarea,[role="button"]){touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,205,17,.22);}
body.kbm-rpg-active :where(button,a,[role="button"],input,select,textarea){min-height:var(--kbm-rpg-touch);}
body.kbm-rpg-active :where(button,a,[role="button"],input,select,textarea):focus-visible{outline:3px solid rgba(255,205,17,.86)!important;outline-offset:3px!important;border-radius:10px;}
body.kbm-rpg-active :where(h1,h2,h3,h4,h5,h6,p,li,dd,dt,span,strong,small,label,a,button,input,select,textarea){writing-mode:horizontal-tb!important;text-orientation:mixed!important;overflow-wrap:break-word;}
body.kbm-rpg-active :where([dir="rtl"],.rtl,.kbm-dir-rtl){unicode-bidi:plaintext;}
body.kbm-rpg-active :where(.kbm-shell,.kbm-theme-shell,.kbm-theme-container,.kbm-theme-content,.entry-content,.site-main,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-adsv2-wrap,.kbm-adsv2-archive,.kbm-ads-shell,.kbm-p20p-archive,.kbm-p20-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive,.kbm-driver-archive,.kbm-dashboard,.kbm-auth-page,.kbm-static-page){width:min(var(--kbm-rpg-shell),calc(100vw - var(--kbm-rpg-gutter) * 2));max-width:min(var(--kbm-rpg-shell),calc(100vw - var(--kbm-rpg-gutter) * 2));margin-inline:auto;overflow:visible;}
body.kbm-rpg-active :where(table){max-width:100%;border-collapse:collapse;}
body.kbm-rpg-active :where(.kbm-table-wrap,.kbm-dashboard-table,.kbm-admin-table,.kbm-health-panel table,.entry-content table){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
body.kbm-rpg-active :where(.kbm-rpg-overflow-guard){max-width:100vw!important;overflow-x:auto!important;}

/* shared components */
body.kbm-rpg-active :where(.kbm-adsv2-filters,.kbm-ads-filters,.kbm-filters,.kbm-filter-drawer,.kbm-p20p-filters,.kbm-p20-filters,.kbm-sales-filters,.kbm-machine-sales-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar,.kbm-p5r15-filters,.kbm-tender-filters,.kbm-driver-filters){background:#fff!important;border:1px solid rgba(226,232,240,.95)!important;border-radius:24px!important;box-shadow:0 16px 42px rgba(15,23,42,.08)!important;color:var(--kbm-rpg-text)!important;direction:rtl!important;}
body.kbm-rpg-active :where(input,select,textarea){font:inherit;max-width:100%;border-radius:14px;}
body.kbm-rpg-active :where(.kbm-adsv2-filters input,.kbm-adsv2-filters select,.kbm-ads-filters input,.kbm-ads-filters select,.kbm-filters input,.kbm-filters select,.kbm-filter-drawer input,.kbm-filter-drawer select,.kbm-p20p-filters input,.kbm-p20p-filters select,.kbm-p20-filters input,.kbm-p20-filters select,.kbm-provider-filters input,.kbm-provider-filters select,.kbm-p23-filters input,.kbm-p23-filters select,.kbm-p5r15-sidebar input,.kbm-p5r15-sidebar select,.kbm-driver-filters input,.kbm-driver-filters select,.kbm-auth-card input,.kbm-auth-sheet input,.kbm-dashboard input,.kbm-dashboard select,.kbm-dashboard textarea){width:100%!important;min-height:48px!important;border:1px solid #dbe4ee!important;border-radius:15px!important;background:#fff!important;color:#0f172a!important;font-size:15px!important;font-weight:800!important;padding:0 13px!important;box-shadow:none!important;}
body.kbm-rpg-active :where(.kbm-btn,.kbm-cta,.kbm-adsv2-apply,.kbm-adsv2-btn-primary,.kbm-card-actions a,.kbm-card-actions button,.kbm-p20p-btn--yellow,.kbm-p20p-filters button,.kbm-p20-filters button,.kbm-provider-filters button,.kbm-p23-filters button,.kbm-p5r15-sidebar button,.kbm-filter-drawer button){min-height:48px!important;border-radius:16px!important;font-weight:950!important;line-height:1.35!important;white-space:normal!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;}
body.kbm-rpg-active :where(.kbm-adsv2-card,.kbm-ad-card,.kbm-p20p-card,.kbm-p20-card,.kbm-sales-card,.kbm-provider-card,.kbm-p23-card,.kbm-p23-provider-card,.kbm-p5r15-card,.kbm-tender-card,.kbm-driver-card,.kbm-theme-loop-card){border-radius:22px;background:#fff;border:1px solid rgba(226,232,240,.95);box-shadow:0 10px 26px rgba(15,23,42,.07);overflow:hidden;}
body.kbm-rpg-active :where(.kbm-adsv2-card-media,.kbm-p20p-card__media,.kbm-p20-card__media,.kbm-sales-card__media,.kbm-provider-card__media,.kbm-p23-card__media,.kbm-ad-card__media,.kbm-card-media,.kbm-theme-loop-card__media){position:relative;aspect-ratio:16/10;background:#eef2f7;overflow:hidden;}
body.kbm-rpg-active :where(.kbm-adsv2-card-media img,.kbm-p20p-card__media img,.kbm-p20-card__media img,.kbm-sales-card__media img,.kbm-provider-card__media img,.kbm-p23-card__media img,.kbm-ad-card__media img,.kbm-card-media img,.kbm-theme-loop-card__media img){width:100%;height:100%;object-fit:cover;display:block;}
body.kbm-rpg-active :where(.kbm-adsv2-title,.kbm-p20p-card__title,.kbm-p20-card__title,.kbm-provider-card h3,.kbm-p23-card h3,.kbm-p5r15-card__title,.kbm-tender-card h3,.kbm-driver-card h3){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.72;}
body.kbm-rpg-active :where(.kbm-adsv2-meta,.kbm-card-meta,.kbm-p20p-card__meta,.kbm-provider-card__meta,.kbm-p23-card__meta){display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;}

/* desktop */
body.kbm-rpg-is-desktop{--kbm-rpg-gutter:24px;padding-bottom:0!important;}
body.kbm-rpg-is-desktop :where(.kbm-app-mini-topbar,.kbm-mobile-bottom-nav,.kbm-mobile-app-backdrop,.kbm-mobile-app-filter-fab,.kbm-mobile-app-drawer-head,.kbm-p3-overlap-filterbar,.kbm-p3-mf-filter-btn){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rpg-is-desktop :where(.kbm-mobile-app-drawer-target,.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){position:static!important;inset:auto!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;}
body.kbm-rpg-is-desktop :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){display:grid!important;grid-template-columns:minmax(260px,320px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;}
body.kbm-rpg-is-desktop :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))!important;gap:16px!important;align-items:stretch!important;}
body.kbm-rpg-is-desktop :where(.kbm-single-ad,.kbm-adsv2-single,.kbm-p20p-single,.kbm-p20p-single__top,.kbm-provider-single,.kbm-p23-single,.kbm-theme-single){max-width:min(var(--kbm-rpg-shell),calc(100vw - 48px));margin-inline:auto;}
body.kbm-rpg-is-desktop.kbm-rpg-width-compact :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){grid-template-columns:1fr!important;}
body.kbm-rpg-is-desktop.kbm-rpg-width-compact :where(.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){padding:16px!important;margin:0 0 14px!important;}

/* tablet: compact website, not phone app */
body.kbm-rpg-is-tablet{--kbm-rpg-gutter:16px;padding-bottom:18px!important;}
body.kbm-rpg-is-tablet :where(.kbm-app-mini-topbar,.kbm-mobile-bottom-nav,.kbm-mobile-app-backdrop,.kbm-mobile-app-filter-fab,.kbm-mobile-app-drawer-head,.kbm-p3-overlap-filterbar,.kbm-p3-mf-filter-btn){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rpg-is-tablet :where(.kbm-mobile-app-drawer-target,.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){position:static!important;inset:auto!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;padding:16px!important;margin:0 0 14px!important;}
body.kbm-rpg-is-tablet :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){display:block!important;}
body.kbm-rpg-is-tablet :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
body.kbm-rpg-is-tablet :where(.kbm-vhub-grid,.kbm-home-cat-grid,.kbm-screen-cat-grid,.kbm-marketplace-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
body.kbm-rpg-is-tablet :where(.kbm-adsv2-hero,.kbm-p20p-hero,.kbm-provider-hero,.kbm-p23-hero,.kbm-p5r15-hero,.kbm-vhub-hero,.kbm-home-hero){border-radius:24px!important;padding:22px!important;margin-block:12px 16px!important;}

/* mobile */
body.kbm-rpg-is-mobile{--kbm-rpg-gutter:10px;--kbm-rpg-touch:46px;padding-bottom:calc(88px + var(--kbm-rpg-safe-bottom))!important;}
body.kbm-rpg-is-mobile :where(.kbm-shell,.kbm-theme-shell,.kbm-theme-container,.kbm-theme-content,.entry-content,.site-main,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-adsv2-wrap,.kbm-adsv2-archive,.kbm-ads-shell,.kbm-p20p-archive,.kbm-p20-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive,.kbm-driver-archive,.kbm-dashboard,.kbm-auth-page,.kbm-static-page){width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;margin-inline:auto!important;padding-inline:0!important;}
body.kbm-rpg-is-mobile :where(.kbm-vhub-hero,.kbm-home-hero,.kbm-screen-hero,.kbm-adsv2-hero,.kbm-p20p-hero,.kbm-p20-hero,.kbm-provider-hero,.kbm-p23-hero,.kbm-p5r15-hero){border-radius:24px!important;padding:16px!important;margin:8px 0 12px!important;min-height:0!important;overflow:hidden!important;}
body.kbm-rpg-is-mobile :where(.kbm-vhub-hero h1,.kbm-home-hero h1,.kbm-screen-hero h1,.kbm-adsv2-hero h1,.kbm-p20p-hero h1,.kbm-p20-hero h1,.kbm-provider-hero h1,.kbm-p23-hero h1,.kbm-p5r15-hero h1){font-size:clamp(24px,7vw,32px)!important;line-height:1.55!important;margin:0!important;}
body.kbm-rpg-is-mobile :where(.kbm-vhub-hero p,.kbm-home-hero p,.kbm-screen-hero p,.kbm-adsv2-hero p,.kbm-p20p-hero p,.kbm-p20-hero p,.kbm-provider-hero p,.kbm-p23-hero p,.kbm-p5r15-hero p){font-size:13px!important;line-height:1.85!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:6px 0 0!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){display:block!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid,.kbm-vhub-grid,.kbm-home-cat-grid,.kbm-screen-cat-grid){display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-card,.kbm-ad-card,.kbm-p20p-card,.kbm-p20-card,.kbm-sales-card,.kbm-provider-card,.kbm-p23-card,.kbm-p23-provider-card,.kbm-p5r15-card,.kbm-tender-card,.kbm-driver-card){width:100%!important;max-width:100%!important;margin:0!important;border-radius:22px!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-card-media,.kbm-p20p-card__media,.kbm-p20-card__media,.kbm-sales-card__media,.kbm-provider-card__media,.kbm-p23-card__media,.kbm-ad-card__media,.kbm-card-media){aspect-ratio:4/3!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-card-body,.kbm-card-body,.kbm-p20p-card__body,.kbm-p20-card__body,.kbm-provider-card__body,.kbm-p23-card__body){padding:12px!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-actions,.kbm-card-actions,.kbm-p20p-card__actions,.kbm-provider-card__actions,.kbm-p23-card__actions){display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
body.kbm-rpg-is-mobile :where(.kbm-adsv2-actions a,.kbm-adsv2-actions button,.kbm-card-actions a,.kbm-card-actions button,.kbm-p20p-card__actions a,.kbm-provider-card__actions a,.kbm-p23-card__actions a){width:100%!important;}
body.kbm-rpg-is-mobile :where(.kbm-mobile-app-drawer-target){position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:max(10px,var(--kbm-rpg-safe-bottom))!important;transform:translateX(-50%) translateY(112%)!important;width:calc(100vw - 22px)!important;max-width:430px!important;max-height:min(calc(var(--kbm-rpg-vh) * 82),680px)!important;overflow:auto!important;z-index:2147482600!important;padding:14px!important;}
body.kbm-rpg-is-mobile.kbm-mobile-app-drawer-open :where(.kbm-mobile-app-drawer-target.is-kbm-mobile-app-open){transform:translateX(-50%) translateY(0)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
body.kbm-rpg-is-mobile :where(.kbm-mobile-app-filter-fab){left:50%!important;right:auto!important;bottom:calc(86px + var(--kbm-rpg-safe-bottom))!important;transform:translateX(-50%)!important;width:calc(100vw - 42px)!important;max-width:388px!important;background:var(--kbm-rpg-yellow)!important;color:#071d2d!important;border-radius:18px!important;box-shadow:0 16px 34px rgba(255,205,17,.28)!important;}
body.kbm-rpg-is-mobile.kbm-rpg-route-home :where(.kbm-mobile-app-filter-fab,.kbm-mobile-app-backdrop,.kbm-p3-overlap-filterbar,.kbm-p3-mf-filter-btn),body.kbm-rpg-is-mobile.kbm-rpg-route-static :where(.kbm-mobile-app-filter-fab,.kbm-mobile-app-backdrop,.kbm-p3-overlap-filterbar,.kbm-p3-mf-filter-btn){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rpg-is-mobile :where(.kbm-mobile-bottom-nav){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:center!important;}
body.kbm-rpg-is-mobile.kbm-auth-modal-open :where(.kbm-mobile-bottom-nav),body.kbm-rpg-is-mobile.kbm-mobile-app-drawer-open :where(.kbm-mobile-bottom-nav){transform:translateX(-50%) translateY(120%)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rpg-is-mobile :where(#kbm-auth-modal .kbm-auth-card,#kbm-auth-modal .kbm-auth-sheet,.kbm-auth-modal .kbm-auth-card,.kbm-auth-modal .kbm-auth-sheet,body.kbm-mobile-route-auth .kbm-auth-card,body.kbm-mobile-route-auth .kbm-auth__card,body.kbm-mobile-route-auth .kbm-auth-sheet,body.kbm-mobile-route-auth .kbm-otp-sheet){max-width:430px!important;width:calc(100vw - 22px)!important;max-height:min(calc(var(--kbm-rpg-vh) * 82),680px)!important;border-radius:26px!important;}
body.kbm-rpg-is-mobile :where(.kbm-dashboard,.kbm-dashboard-card,.kbm-account-card,.kbm-panel-card){border-radius:22px!important;}
body.kbm-rpg-is-mobile :where(.kbm-dashboard-grid,.kbm-account-grid,.kbm-panel-grid){display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}



/* static/legal pages */
body.kbm-rpg-route-static :where(.entry-content,.kbm-static-page,.kbm-theme-content){background:#fff;border:1px solid rgba(226,232,240,.95);border-radius:24px;box-shadow:0 14px 38px rgba(15,23,42,.07);padding:clamp(16px,3vw,28px);line-height:1.95;}
body.kbm-rpg-route-static :where(.entry-content h1,.kbm-static-page h1){font-size:clamp(24px,4vw,38px);line-height:1.45;margin-top:0;}

@media(max-width:767px){body.kbm-rpg-active{--kbm-rpg-gutter:10px;}.kbm-rpg-no-motion *{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}
@media(prefers-reduced-motion:reduce){body.kbm-rpg-active *,body.kbm-rpg-active *::before,body.kbm-rpg-active *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}

/* ============================================================
 * KBM Core v1.9.6.18 — Package 02: Mobile UX Governance Upgrades
 * ============================================================ */

/* --- Zoom 125/150%: sidebar compact fix --- */
@media (min-width:1181px) and (max-width:1360px){
  body.kbm-rpg-is-desktop :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){
    grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;
  }
}

/* --- Tablet 768–1024px: 2-col grid refinement --- */
@media (min-width:768px) and (max-width:1024px){
  body.kbm-rpg-is-tablet :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.kbm-rpg-is-tablet :where(.kbm-vhub-hero,.kbm-home-hero,.kbm-screen-hero){padding:18px!important;min-height:0!important;}
}

/* --- RTL mixed numbers: prices/dates stay LTR --- */
body.kbm-rpg-active :where(.kbm-price,.kbm-badge,.kbm-meta-value,.kbm-card-price,.kbm-card-city,.kbm-card-date,.kbm-stat-number){
  direction:ltr!important;unicode-bidi:embed!important;display:inline-block!important;
}

/* --- Desktop: sticky sidebar with scroll --- */
body.kbm-rpg-is-desktop :where(.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){
  position:sticky!important;
  top:calc(var(--kbm-rpg-header-h) + 12px)!important;
  max-height:calc(100vh - var(--kbm-rpg-header-h) - 32px)!important;
  overflow-y:auto!important;
}

/* --- Mobile bottom-nav safe area on all devices --- */
body.kbm-rpg-is-mobile :where(.kbm-mobile-bottom-nav){
  padding-bottom:var(--kbm-rpg-safe-bottom)!important;
}

/* --- Mobile 360px: button stack vertical (prevent overflow) --- */
@media(max-width:380px){
  body.kbm-rpg-is-mobile :where(.kbm-adsv2-actions,.kbm-card-actions,.kbm-p20p-card__actions,.kbm-provider-card__actions,.kbm-p23-card__actions){
    flex-direction:column!important;gap:8px!important;
  }
  body.kbm-rpg-is-mobile :where(.kbm-adsv2-actions a,.kbm-adsv2-actions button,.kbm-card-actions a,.kbm-card-actions button){
    width:100%!important;justify-content:center!important;text-align:center!important;
  }
}

/* --- Landscape mobile: compress vertical space --- */
@media(max-width:900px) and (orientation:landscape) and (max-height:500px){
  body.kbm-rpg-is-mobile{
    --kbm-rpg-header-h:52px;
    padding-bottom:calc(64px + var(--kbm-rpg-safe-bottom))!important;
  }
  body.kbm-rpg-is-mobile :where(.kbm-vhub-hero,.kbm-home-hero){padding:10px!important;margin:4px 0 8px!important;}
  body.kbm-rpg-is-mobile :where(.kbm-mobile-bottom-nav){height:56px!important;}
}

/* --- Form submit button: consistent yellow on mobile --- */
body.kbm-rpg-is-mobile :where(
  .kbm-auth-card .kbm-btn-submit,
  .kbm-auth-sheet .kbm-btn-submit,
  .kbm-otp-sheet .kbm-btn-submit,
  button[type=submit].kbm-p28-submit,
  .kbm-submit-btn-primary,
  .kbm-p28-form-submit,
  .kbm-rental-submit-btn
){
  background:var(--kbm-rpg-yellow)!important;
  color:#071d2d!important;
  font-weight:950!important;
  width:100%!important;
  min-height:52px!important;
  border-radius:18px!important;
  font-size:16px!important;
  border:none!important;
}

/* --- Dashboard table: horizontal scroll on mobile --- */
body.kbm-rpg-is-mobile :where(
  .kbm-dashboard-table-wrap,
  .kbm-my-ads-table,
  .kbm-account-table,
  .kbm-dashboard-table,
  .kbm-ads-table-wrap
){
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:14px!important;
  display:block!important;
}

/* --- Single page gallery: safe aspect-ratio --- */
body.kbm-rpg-active :where(
  .kbm-single-gallery,
  .kbm-gallery-main,
  .kbm-p20p-gallery__main,
  .kbm-adsv2-gallery-main,
  .kbm-ad-gallery-main
){
  aspect-ratio:16/9!important;
  width:100%!important;
  object-fit:cover!important;
  border-radius:18px!important;
  overflow:hidden!important;
}

/* --- Empty State / No Results: centered display --- */
body.kbm-rpg-active :where(
  .kbm-empty-state,
  .kbm-no-results,
  .kbm-error-state,
  .kbm-adsv2-empty,
  .kbm-p20-empty,
  .kbm-provider-empty
){
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(24px,5vw,48px) 20px!important;
  text-align:center!important;
  min-height:200px!important;
  color:var(--kbm-rpg-muted)!important;
  border-radius:var(--kbm-rpg-radius)!important;
  background:var(--kbm-rpg-card)!important;
  border:1px dashed var(--kbm-rpg-line)!important;
}
body.kbm-rpg-active :where(.kbm-empty-state svg,.kbm-no-results svg,.kbm-empty-icon){
  width:56px!important;height:56px!important;margin-bottom:16px!important;opacity:.45!important;
}
body.kbm-rpg-active :where(.kbm-empty-title){
  font-size:18px!important;font-weight:900!important;color:var(--kbm-rpg-text)!important;margin:0 0 8px!important;
}
body.kbm-rpg-active :where(.kbm-empty-desc){
  font-size:14px!important;line-height:1.8!important;max-width:340px!important;
}

/* --- Toast / Snackbar system --- */
.kbm-toast-container{
  position:fixed!important;
  bottom:calc(96px + var(--kbm-rpg-safe-bottom))!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  z-index:2147483640!important;
  display:flex!important;flex-direction:column!important;gap:10px!important;
  width:calc(100vw - 32px)!important;max-width:400px!important;
  pointer-events:none!important;
}
.kbm-toast{
  background:#1e293b!important;color:#fff!important;
  border-radius:18px!important;padding:14px 20px!important;
  font-size:14px!important;font-weight:800!important;line-height:1.6!important;
  box-shadow:0 12px 32px rgba(15,23,42,.22)!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  direction:rtl!important;
  opacity:0!important;transform:translateY(12px)!important;
  transition:opacity .25s ease,transform .25s ease!important;
  pointer-events:auto!important;
}
.kbm-toast.kbm-toast--visible{opacity:1!important;transform:translateY(0)!important;}
.kbm-toast.kbm-toast--success{background:#064e3b!important;border:1px solid #10b981!important;}
.kbm-toast.kbm-toast--error{background:#7f1d1d!important;border:1px solid #ef4444!important;}
.kbm-toast.kbm-toast--info{background:#1e3a5f!important;border:1px solid var(--kbm-rpg-yellow)!important;}

/* --- Static/Legal pages: typography polish --- */
body.kbm-rpg-route-static :where(.entry-content,.kbm-static-page,.kbm-theme-content){
  background:#fff;border:1px solid rgba(226,232,240,.95);
  border-radius:24px;box-shadow:0 14px 38px rgba(15,23,42,.07);
  padding:clamp(16px,4vw,32px);line-height:2;
}
body.kbm-rpg-route-static :where(.entry-content h1,.kbm-static-page h1){
  font-size:clamp(22px,4vw,36px);line-height:1.45;margin-top:0;color:var(--kbm-rpg-navy);
}
body.kbm-rpg-route-static :where(.entry-content h2,.kbm-static-page h2){
  font-size:clamp(18px,3vw,26px);color:var(--kbm-rpg-navy);margin:1.5em 0 .75em;
}
body.kbm-rpg-route-static :where(.entry-content p){margin:0 0 1.25em;}
