/* U9 — unified polish, performance-safe. Core/Theme remain data and layout owners. */
body.kbm-u8-motion{
  --kbm-u9-navy:#092c40;
  --kbm-u9-deep:#061d2c;
  --kbm-u9-gold:#ffcf30;
  --kbm-u9-paper:#f5f8fa;
  --kbm-u9-line:rgba(9,44,64,.13);
  --kbm-u9-time:180ms;
}
/* Do not globally hide, reflow, tilt or recolor the owners' card contents. */
body.kbm-u8-motion :where(.kbm-g13-card,.kbm-ads-recode-card,.kbm-dashboard-recode-card,.kbm-gdb03-card,.kbm-gdb06-card,.kbm-gdb07-card,.kbm-card2,.kbm-card165,.kbm-c118-card,.kbm-demand-market-card,.kbm-auth-recode-card,.kbm-f176-premium-card,.kbm-demand-board){
  overflow:visible;
  transform:none;
}
body.kbm-u8-motion :where(.kbm-u8-shine)::after{content:none!important}
/* Keep smooth, non-jumping gestures only for devices that have a true pointer. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body.kbm-u8-motion :where(.kbm-g13-card,.kbm-ads-recode-card,.kbm-dashboard-recode-card,.kbm-gdb03-card,.kbm-gdb06-card,.kbm-gdb07-card,.kbm-card2,.kbm-card165,.kbm-c118-card,.kbm-demand-market-card,.kbm-arx013-category,.kbm-sx014-category):hover{
    transform:translate3d(0,-3px,0);
    box-shadow:0 15px 30px rgba(6,29,44,.16);
  }
}
@media (hover:none){
  body.kbm-u8-motion :where(.kbm-g13-card,.kbm-ads-recode-card,.kbm-dashboard-recode-card,.kbm-gdb03-card,.kbm-gdb06-card,.kbm-gdb07-card,.kbm-card2,.kbm-card165,.kbm-c118-card,.kbm-demand-market-card,.kbm-arx013-category,.kbm-sx014-category):hover{
    transform:none;
  }
}
/* A concise, evidence-based trust strip. Only links already present in the footer are reused. */
body.kbm-u8-motion .kbm-u9-trust-strip{
  margin:clamp(16px,2.5vw,32px) auto;
  width:100%;max-width:100%;min-width:0;grid-column:1/-1;box-sizing:border-box;
  border:1px solid rgba(255,207,48,.36);
  background:linear-gradient(135deg,rgba(17,66,91,.97),rgba(6,29,44,.99));
  color:#fff;
  border-radius:22px;
  padding:clamp(15px,2vw,26px);
  box-shadow:0 14px 38px rgba(0,0,0,.12);
  direction:rtl;
}
body.kbm-u8-motion .kbm-u9-trust-strip__head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 18px;margin:0 0 15px}
body.kbm-u8-motion .kbm-u9-trust-strip__title{font-size:clamp(15px,1.35vw,19px);line-height:1.7;font-weight:800;color:#fff;margin:0}
body.kbm-u8-motion .kbm-u9-trust-strip__note{font-size:clamp(12px,1vw,13px);line-height:1.8;color:#d1e3eb;margin:0}
body.kbm-u8-motion .kbm-u9-trust-strip__links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.kbm-u8-motion a.kbm-u9-trust-strip__item{
  display:flex;align-items:center;gap:10px;min-width:0;min-height:57px;padding:9px 12px;
  border:1px solid rgba(255,255,255,.16);border-radius:15px;background:rgba(255,255,255,.07);
  color:#fff;text-decoration:none;font-size:clamp(12px,1vw,14px);font-weight:650;line-height:1.7;
  transition:background-color var(--kbm-u9-time) ease,border-color var(--kbm-u9-time) ease,transform var(--kbm-u9-time) ease;
}
body.kbm-u8-motion a.kbm-u9-trust-strip__item:hover{color:#fff;background:rgba(255,255,255,.13);border-color:rgba(255,207,48,.6)}
body.kbm-u8-motion .kbm-u9-trust-strip__item span:last-child{min-width:0;overflow-wrap:anywhere}
body.kbm-u8-motion .kbm-u9-trust-strip__icon{
  flex:0 0 34px;display:inline-grid;place-items:center;width:34px;height:34px;
  border-radius:11px;background:rgba(255,207,48,.15);color:#ffdc56;
}
body.kbm-u8-motion .kbm-u9-trust-strip__icon svg{display:block;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.kbm-u8-motion a.kbm-u9-trust-strip__item:focus-visible{outline:3px solid #ffcf30;outline-offset:2px}

/* Empty states are styled only where the data owner has explicitly shown emptiness. */
body.kbm-u8-motion :where(.kbm-demand-market-empty,.kbm-f176-empty,.kbm-contractors-empty,.kbm-ads-recode-empty,.kbm-drivers-recode-empty,.kbm-gdb05-empty,.kbm-dashboard-recode-empty,.kbm-empty-state):not([hidden]){
  padding:clamp(22px,4vw,42px);
  margin-block:14px;
  border:1px dashed rgba(10,47,68,.26);
  border-radius:22px;
  background:linear-gradient(155deg,#fff 0%,#f3f8fa 100%);
  color:#27465b;
  text-align:center;
  font-size:clamp(13px,1.08vw,16px);
  line-height:1.9;
}
body.kbm-u8-motion :where(.kbm-demand-market-empty,.kbm-f176-empty,.kbm-contractors-empty,.kbm-ads-recode-empty,.kbm-drivers-recode-empty,.kbm-gdb05-empty,.kbm-dashboard-recode-empty,.kbm-empty-state):not([hidden])::before{
  content:"";display:block;width:46px;height:46px;margin:0 auto 12px;
  border-radius:15px;
  background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.94),rgba(255,255,255,0) 32%),linear-gradient(135deg,#ffe38b,#efc02d);
  box-shadow:inset 0 1px 0 #fff,0 9px 16px rgba(10,47,68,.12);
}
body.kbm-u8-motion .kbm-u9-empty-reset{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:12px auto 0;padding:8px 18px;border-radius:14px;background:#10394e;color:#fff;font-weight:700;text-decoration:none}
body.kbm-u8-motion .kbm-u9-empty-reset:hover{background:#164d69;color:#fff}
body.kbm-u8-motion .kbm-u9-empty-reset:focus-visible{outline:3px solid #efc02d;outline-offset:2px}
/* A genuine loading flag is the only trigger for skeletons; no permanently fake placeholders. */
body.kbm-u8-motion :where(.kbm-rc1981-infinite-status,.kbm-loading-status,.kbm-ads-recode-results,.kbm-machine-sale-recode-results,.kbm-dashboard-recode-list)[aria-busy="true"]::after,
body.kbm-u8-motion :where(.kbm-rc1981-infinite-status,.kbm-loading-status).is-loading::after{
  content:"";display:block;width:100%;height:96px;margin-block:12px;
  border-radius:16px;border:1px solid rgba(9,44,64,.08);
  background-image:
    linear-gradient(100deg,transparent 15%,rgba(255,255,255,.75) 42%,transparent 66%),
    linear-gradient(#dfebef,#dfebef),
    linear-gradient(#e7eff3,#e7eff3),
    linear-gradient(#d6e4eb,#d6e4eb);
  background-size:180% 100%,27% 62%,58% 15%,40% 12%;
  background-position:200% 0,97% 50%,8% 26%,8% 67%;
  background-repeat:no-repeat;
  background-color:#f3f7f9;
  animation:kbm-u9-skeleton-wave 1.35s ease-in-out infinite;
  pointer-events:none;
}
@keyframes kbm-u9-skeleton-wave{to{background-position:-160% 0,97% 50%,8% 26%,8% 67%}}
/* This animation is an additive entry accent: never hide unobserved cards. */
body.kbm-u8-motion .kbm-u9-inview{animation:kbm-u9-enter .32s ease both}
@keyframes kbm-u9-enter{from{opacity:.92}to{opacity:1}}
@media(max-width:1023px){body.kbm-u8-motion .kbm-u9-trust-strip__links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  body.kbm-u8-motion .kbm-u9-trust-strip{padding:16px;margin-block:18px;border-radius:18px}
  body.kbm-u8-motion .kbm-u9-trust-strip__head{display:block}
  body.kbm-u8-motion .kbm-u9-trust-strip__note{margin-top:3px}
  body.kbm-u8-motion .kbm-u9-trust-strip__links{grid-template-columns:minmax(0,1fr);gap:8px}
  body.kbm-u8-motion a.kbm-u9-trust-strip__item{min-height:52px}
}
@media(prefers-reduced-motion:reduce){
  body.kbm-u8-motion .kbm-u9-inview{animation:none!important}
  body.kbm-u8-motion :where(.kbm-rc1981-infinite-status,.kbm-loading-status,.kbm-ads-recode-results,.kbm-machine-sale-recode-results,.kbm-dashboard-recode-list)[aria-busy="true"]::after,
  body.kbm-u8-motion :where(.kbm-rc1981-infinite-status,.kbm-loading-status).is-loading::after{animation:none!important;background-position:200% 0,97% 50%,8% 26%,8% 67%}
  body.kbm-u8-motion a.kbm-u9-trust-strip__item{transition:none!important}
}
