/* LeadCPI Frontend Unified Topbar V2K — grid locked, component-scoped. */
body.lcpi-front-desktop .lcpi-v2k-topbar,
body.lcpi-offers-clean .lcpi-v2k-topbar,
body.partners-static-page .lcpi-v2k-topbar,
body.offerwall-page .lcpi-v2k-topbar,
body.transactions-page .lcpi-v2k-topbar,
body.account-route-page .lcpi-v2k-topbar{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:58px!important;
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:minmax(360px,var(--lcpi-v2k-search-w,680px)) max-content minmax(14px,1fr) max-content!important;
  align-items:center!important;
  column-gap:14px!important;
  overflow:visible!important;
  flex-wrap:nowrap!important;
}
body .lcpi-v2k-topbar--home{--lcpi-v2k-search-w:660px;}
body .lcpi-v2k-topbar--offers{--lcpi-v2k-search-w:720px;}
body .lcpi-v2k-topbar--partners{--lcpi-v2k-search-w:720px;}
body .lcpi-v2k-topbar--offerwall{--lcpi-v2k-search-w:880px;}
body .lcpi-v2k-topbar--transactions{--lcpi-v2k-search-w:660px;}
body .lcpi-v2k-topbar--account{--lcpi-v2k-search-w:680px;}

body .lcpi-v2k-topbar > .lcpi-v2k-search-slot{grid-column:1!important;min-width:0!important;width:100%!important;max-width:100%!important;display:flex!important;align-items:center!important;}
body .lcpi-v2k-topbar > .lcpi-v2k-filter-slot{grid-column:2!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;}
body .lcpi-v2k-topbar > .lcpi-v2k-filter-slot.is-empty{width:0!important;min-width:0!important;overflow:hidden!important;}
body .lcpi-v2k-topbar > .lcpi-v2k-fill{grid-column:3!important;min-width:14px!important;height:1px!important;}
body .lcpi-v2k-topbar > .lcpi-v2k-actions-slot{grid-column:4!important;min-width:max-content!important;width:max-content!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;justify-self:end!important;overflow:visible!important;}

body .lcpi-v2k-search-slot .lcpi-v2k-search,
body .lcpi-v2k-search-slot .lcpi-search,
body .lcpi-v2k-search-slot .lcpi-offers-search,
body .lcpi-v2k-search-slot .lcpi-partners-search,
body .lcpi-v2k-search-slot .ow-route-search{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 16px!important;
  border-radius:14px!important;
  color:#9eb0d3!important;
  border:1px solid rgba(117,139,255,.34)!important;
  background:rgba(10,17,43,.74)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 0 24px rgba(61,93,255,.09)!important;
  box-sizing:border-box!important;
  flex:0 1 auto!important;
}
body .lcpi-v2k-search-icon{font-size:22px;line-height:1;color:#b9c6ff;opacity:.95;display:inline-flex;align-items:center;justify-content:center;width:18px;flex:0 0 18px;}
body .lcpi-v2k-search svg{width:20px;height:20px;color:#b9c6ff;flex:0 0 20px;}
body .lcpi-v2k-search input,
body .lcpi-v2k-search-slot .lcpi-search input,
body .lcpi-v2k-search-slot .lcpi-offers-search input,
body .lcpi-v2k-search-slot .lcpi-partners-search input,
body .lcpi-v2k-search-slot .ow-route-search input{
  width:100%!important;min-width:0!important;flex:1 1 auto!important;border:0!important;outline:0!important;background:transparent!important;color:#e9edff!important;font-size:15px!important;font-weight:500!important;height:100%!important;box-shadow:none!important;padding:0!important;
}
body .lcpi-v2k-search input::placeholder{color:#91a0c2!important;opacity:.9!important;}
body .lcpi-v2k-search kbd{height:24px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:0;background:rgba(20,29,61,.86);color:#fff;font-size:11px;font-weight:800;padding:0 8px;white-space:nowrap;flex:0 0 auto;}

body .lcpi-v2k-filter-btn{
  height:52px!important;min-width:116px!important;padding:0 18px!important;border-radius:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;border:1px solid rgba(117,139,255,.36)!important;background:rgba(10,17,43,.78)!important;color:#fff!important;font-size:15px!important;font-weight:800!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;white-space:nowrap!important;box-sizing:border-box!important;
}
body .lcpi-v2k-filter-btn svg{width:18px;height:18px;flex:0 0 18px;color:#dce6ff;}
body .lcpi-v2k-filter-btn b{min-width:22px;height:22px;border-radius:999px;background:#8e39ff;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;box-shadow:0 0 16px rgba(157,62,255,.8);}

body .lcpi-v2k-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:max-content!important;width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;flex:0 0 auto!important;}
body .lcpi-v2k-chip,
body .lcpi-v2k-user,
body .lcpi-v2k-login{
  height:48px!important;box-sizing:border-box!important;border-radius:14px!important;border:1px solid rgba(118,91,255,.42)!important;background:linear-gradient(180deg,rgba(19,27,58,.86),rgba(10,15,38,.86))!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 18px rgba(111,54,255,.12)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;text-decoration:none!important;position:relative!important;
}
body .lcpi-v2k-theme{width:76px!important;gap:10px!important;padding:0 12px!important;}
body .lcpi-v2k-theme-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;opacity:.6;filter:saturate(.9);transition:opacity .18s ease,filter .18s ease,transform .18s ease;}
body .lcpi-v2k-theme-icon img{width:18px;height:18px;display:block;}
body .lcpi-v2k-theme.is-light .lcpi-v2k-sun,
body:not(.lcpi-dark) .lcpi-v2k-theme:not(.is-dark) .lcpi-v2k-sun{opacity:1;filter:drop-shadow(0 0 8px #ffd45b) drop-shadow(0 0 16px rgba(255,187,49,.5));transform:scale(1.08);}
body .lcpi-v2k-theme.is-dark .lcpi-v2k-moon,
body.lcpi-dark .lcpi-v2k-theme .lcpi-v2k-moon{opacity:1;filter:drop-shadow(0 0 8px #cda5ff) drop-shadow(0 0 18px rgba(139,94,255,.55));transform:scale(1.08);}

body .lcpi-v2k-geo{height:48px!important;min-width:74px!important;padding:0 13px!important;gap:8px!important;line-height:1!important;}
body .lcpi-v2k-geo .lcpi-v2k-flag{width:20px!important;height:14px!important;display:block!important;object-fit:cover!important;border-radius:3px!important;box-shadow:0 0 0 1px rgba(255,255,255,.18)!important;flex:0 0 20px!important;}
body .lcpi-v2k-geo strong{font-size:14px!important;font-weight:900!important;letter-spacing:.02em!important;line-height:1!important;color:#f6f7ff!important;display:block!important;}

body .lcpi-v2k-bell{width:50px!important;padding:0!important;}
body .lcpi-v2k-bell img{width:18px!important;height:18px!important;display:block!important;filter:drop-shadow(0 0 8px rgba(255,187,54,.65));}
body .lcpi-v2k-bell.is-on{border-color:rgba(255,190,78,.48)!important;box-shadow:0 0 18px rgba(255,177,35,.18), inset 0 1px 0 rgba(255,255,255,.06)!important;}
body .lcpi-v2k-bell.is-off{opacity:.72;}
body .lcpi-v2k-bell.is-off::after{content:'';position:absolute;width:25px;height:2px;border-radius:2px;background:#ffd45b;transform:rotate(-42deg);box-shadow:0 0 8px rgba(255,212,91,.85);}
body .lcpi-v2k-bell b,.lcpi-v2k-bell [data-lead-sound-label]{display:none!important;}

body .lcpi-v2k-user-wrap{position:relative!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;}
body .lcpi-v2k-user{min-width:178px!important;max-width:205px!important;padding:0 12px 0 8px!important;gap:10px!important;justify-content:flex-start!important;overflow:hidden!important;}
body .lcpi-v2k-guest{cursor:default!important;}
body .lcpi-v2k-avatar{width:42px!important;height:42px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;background:radial-gradient(circle at 30% 20%,#fff,#d9ddff 38%,#7e6dff 72%,#1a2458)!important;color:#0d1530!important;font-weight:900!important;font-size:16px!important;position:relative!important;box-shadow:0 0 18px rgba(154,117,255,.48)!important;overflow:visible!important;}
body .lcpi-v2k-avatar img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;display:block!important;}
body .lcpi-v2k-avatar i{position:absolute!important;right:-1px!important;bottom:1px!important;width:13px!important;height:13px!important;border-radius:50%!important;background:#22d7ff!important;border:2px solid #081126!important;box-shadow:0 0 9px #22d7ff!important;}
body .lcpi-v2k-user-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;overflow:hidden!important;line-height:1.12!important;}
body .lcpi-v2k-user-copy strong{display:block!important;font-size:14px!important;font-weight:900!important;color:#fff!important;max-width:116px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.15!important;}
body .lcpi-v2k-user-copy small{display:block!important;font-size:11px!important;font-weight:600!important;color:#9fb1d7!important;max-width:128px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.15!important;margin-top:2px!important;}
body .lcpi-v2k-login{min-width:166px!important;height:48px!important;padding:0 20px!important;gap:9px!important;background:linear-gradient(135deg,#7b34ff 0%,#c23cff 56%,#8a36ff 100%)!important;border-color:rgba(255,255,255,.2)!important;box-shadow:0 0 22px rgba(190,64,255,.46),inset 0 1px rgba(255,255,255,.22)!important;font-size:14px!important;font-weight:900!important;}
body .lcpi-v2k-login img{width:17px!important;height:17px!important;display:block!important;}

body .lcpi-v2k-user-menu{position:absolute;right:0;top:calc(100% + 10px);width:206px;padding:8px;border-radius:16px;border:1px solid rgba(138,93,255,.42);background:linear-gradient(180deg,rgba(17,24,55,.98),rgba(7,12,31,.98));box-shadow:0 18px 42px rgba(0,0,0,.42),0 0 26px rgba(139,74,255,.22);z-index:99999;}
body .lcpi-v2k-user-menu a{height:38px;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#eaf0ff;text-decoration:none;font-size:13px;font-weight:800;}
body .lcpi-v2k-user-menu a:hover{background:rgba(130,71,255,.18);}
body .lcpi-v2k-user-menu a span{width:22px;text-align:center;}
body .lcpi-v2k-user-menu a.is-danger{color:#ffb7c3;border-top:1px solid rgba(255,255,255,.08);margin-top:4px;padding-top:4px;}

/* Keep old route CSS from shrinking the unified action cluster. */
body .lcpi-v2k-topbar .lcpi-top-actions,
body .lcpi-v2k-topbar .lcpi-chip,
body .lcpi-v2k-topbar .lcpi-btn,
body .lcpi-v2k-topbar .lcpi-guest{all:unset;box-sizing:border-box;}
body .lcpi-v2k-topbar .lcpi-v2k-actions,
body .lcpi-v2k-topbar .lcpi-v2k-actions *{box-sizing:border-box;}

@media(max-width:1480px){
  body .lcpi-v2k-topbar{grid-template-columns:minmax(280px,min(46vw,var(--lcpi-v2k-search-w,620px))) max-content minmax(8px,1fr) max-content!important;column-gap:10px!important;}
  body .lcpi-v2k-actions{gap:8px!important;}
  body .lcpi-v2k-user{min-width:150px!important;max-width:166px!important;}
  body .lcpi-v2k-user-copy strong{max-width:88px!important;}
  body .lcpi-v2k-user-copy small{max-width:92px!important;}
  body .lcpi-v2k-login{min-width:146px!important;padding:0 15px!important;}
}
@media(max-width:1180px){
  body .lcpi-v2k-topbar{grid-template-columns:1fr max-content!important;height:auto!important;min-height:58px!important;row-gap:10px!important;}
  body .lcpi-v2k-topbar>.lcpi-v2k-search-slot{grid-column:1!important;}
  body .lcpi-v2k-topbar>.lcpi-v2k-filter-slot{grid-column:2!important;}
  body .lcpi-v2k-topbar>.lcpi-v2k-fill{display:none!important;}
  body .lcpi-v2k-topbar>.lcpi-v2k-actions-slot{grid-column:1 / -1!important;justify-self:end!important;}
}
