/* LeadCPI frontend shared topbar production normalization.
   UI-only guard: keeps route search/filter unique while making the right action cluster identical. */
.lcpi-unified-topbar{display:flex;align-items:center;gap:14px;width:100%;min-width:0;box-sizing:border-box;}
.lcpi-unified-topbar__search{flex:1 1 auto;min-width:280px;max-width:760px;}
.lcpi-unified-topbar__search > form,.lcpi-unified-topbar__search > label{width:100%;}
.lcpi-unified-topbar__filter{flex:0 0 auto;display:flex;align-items:center;min-width:0;}
.lcpi-unified-topbar__spacer{flex:1 1 auto;min-width:16px;}
.lcpi-unified-topbar__actions{margin-left:auto;display:flex;align-items:center;gap:12px;flex:0 0 auto;white-space:nowrap;min-width:max-content;}
.lcpi-unified-topbar__actions .lcpi-chip,.lcpi-unified-topbar__actions .lcpi-guest,.lcpi-unified-topbar__actions .lcpi-btn{flex:0 0 auto;}
.lcpi-unified-topbar__actions .lcpi-user-panel,.lcpi-unified-topbar__actions .lcpi-guest{display:flex;align-items:center;}
.lcpi-unified-topbar__actions .lcpi-login-btn{display:inline-flex;align-items:center;justify-content:center;}
.lcpi-unified-topbar--account .lcpi-unified-topbar__actions,.lcpi-unified-topbar--partners .lcpi-unified-topbar__actions{gap:12px;}
.lcpi-unified-topbar--account .lcpi-login-btn,.lcpi-unified-topbar--partners .lcpi-login-btn{min-height:44px;padding-left:18px;padding-right:18px;}
.lcpi-unified-topbar--account .lcpi-unified-topbar__search{max-width:680px;}
.lcpi-unified-topbar--partners .lcpi-unified-topbar__search{max-width:none;}
.lcpi-unified-topbar--offerwall .lcpi-unified-topbar__search{max-width:920px;}
.lcpi-unified-topbar--transactions .lcpi-unified-topbar__search{max-width:680px;}
.lcpi-unified-topbar .lcpi-theme-symbols{display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.lcpi-unified-topbar .lcpi-bell{position:relative;}
@media (max-width:1360px){.lcpi-unified-topbar{gap:10px}.lcpi-unified-topbar__actions{gap:8px}.lcpi-unified-topbar__search{min-width:220px}.lcpi-unified-topbar .lcpi-login-btn span{white-space:nowrap}}
@media (max-width:1180px){.lcpi-unified-topbar{flex-wrap:nowrap}.lcpi-unified-topbar__search{max-width:520px}.lcpi-unified-topbar__actions .lcpi-user-panel small,.lcpi-unified-topbar__actions .lcpi-guest small{display:none}}

/* V2B: stable shared topbar right actions, no layout reflow. */
.lcpi-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;min-width:max-content;position:relative;z-index:12;}
.lcpi-top-spacer{flex:1 1 auto;min-width:8px;}
.lcpi-top-actions .lcpi-chip,.lcpi-top-actions .lcpi-btn,.lcpi-top-actions .lcpi-guest{flex:0 0 auto;}
.lcpi-theme-toggle{position:relative;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease;}
.lcpi-theme-toggle .lcpi-top-sun,.lcpi-theme-toggle .lcpi-top-moon{width:18px;height:18px;transition:opacity .18s ease,filter .18s ease,transform .18s ease;}
.lcpi-theme-toggle.is-light-on{border-color:rgba(255,207,79,.55)!important;box-shadow:0 0 0 1px rgba(255,207,79,.18),0 0 18px rgba(255,199,56,.42),inset 0 0 18px rgba(255,199,56,.12)!important;}
.lcpi-theme-toggle.is-light-on .lcpi-top-sun{opacity:1;filter:drop-shadow(0 0 8px #ffd95b);transform:scale(1.08);}
.lcpi-theme-toggle.is-light-on .lcpi-top-moon{opacity:.42;filter:none;transform:scale(.92);}
.lcpi-theme-toggle.is-dark-on{border-color:rgba(153,105,255,.45)!important;box-shadow:0 0 0 1px rgba(153,105,255,.16),0 0 18px rgba(117,84,255,.36),inset 0 0 18px rgba(117,84,255,.1)!important;}
.lcpi-theme-toggle.is-dark-on .lcpi-top-moon{opacity:1;filter:drop-shadow(0 0 8px #a982ff);transform:scale(1.08);}
.lcpi-theme-toggle.is-dark-on .lcpi-top-sun{opacity:.45;filter:none;transform:scale(.92);}
.lcpi-geo-chip{cursor:default;user-select:none;gap:8px;padding:0 13px!important;min-width:74px;justify-content:center;}
.lcpi-geo-chip img{width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.12);}
.lcpi-geo-chip span{font-weight:900;letter-spacing:.02em;color:#fff;}
.lcpi-bell b{display:none!important;}
.lcpi-bell{position:relative;overflow:visible;}
.lcpi-bell .lcpi-bell-state{position:absolute;right:-7px;bottom:-7px;min-width:22px;height:16px;padding:0 4px;border-radius:999px;background:#16db65;color:#071225;font-size:8px;font-weight:1000;line-height:16px;text-align:center;box-shadow:0 0 12px rgba(22,219,101,.6);}
.lcpi-bell.is-muted .lcpi-bell-state{background:#64748b;color:#e2e8f0;box-shadow:none;}
.lcpi-bell.is-muted img{opacity:.48;filter:grayscale(1);}
.lcpi-user-menu{position:relative;display:flex;align-items:center;flex:0 0 auto;}
.lcpi-user-menu-toggle{border:0;cursor:pointer;text-align:left;}
.lcpi-user-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:210px;padding:8px;border:1px solid rgba(172,104,255,.32);border-radius:16px;background:linear-gradient(180deg,rgba(16,20,48,.98),rgba(7,12,31,.98));box-shadow:0 18px 45px rgba(0,0,0,.38),0 0 30px rgba(155,68,255,.14);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:9999;}
.lcpi-user-menu.is-open .lcpi-user-dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.lcpi-user-dropdown:before{content:"";position:absolute;right:24px;top:-7px;width:12px;height:12px;transform:rotate(45deg);background:rgba(16,20,48,.98);border-left:1px solid rgba(172,104,255,.28);border-top:1px solid rgba(172,104,255,.28);}
.lcpi-user-dropdown a{position:relative;z-index:1;display:flex;align-items:center;gap:10px;height:38px;padding:0 12px;border-radius:11px;color:#dfe7ff;text-decoration:none;font-weight:800;font-size:13px;}
.lcpi-user-dropdown a:hover{background:rgba(145,84,255,.18);color:#fff;}
.lcpi-user-dropdown a.is-danger{color:#ff9aa7;}
.lcpi-user-dropdown a.is-danger:hover{background:rgba(255,77,109,.13);color:#ffced6;}
.lcpi-user-panel .lcpi-user-copy,.lcpi-user-panel span:last-child{min-width:0;}
.lcpi-user-panel strong{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lcpi-user-panel small{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lcpi-offers-topbar,.lcpi-partners-topbar,.lcpi-topbar.lcpi-transactions-topbar,.lcpi-topbar.ow-route-topbar,.lcpi-topbar.account-index-topbar{display:flex;align-items:center;gap:12px;min-width:0;}
.lcpi-offers-search,.lcpi-partners-search,.ow-route-search,.lcpi-transactions-topbar .lcpi-search,.account-index-topbar .lcpi-search{flex:1 1 auto;min-width:220px;}
.lcpi-offers-filter-wrap,.lcpi-partners-filter,.ow-filter-chip{flex:0 0 auto;}
@media (max-width:1360px){.lcpi-top-actions{gap:7px}.lcpi-geo-chip{min-width:62px;padding:0 9px!important}.lcpi-user-panel strong,.lcpi-user-panel small{max-width:78px}.lcpi-login-btn span{white-space:nowrap}}


/* V2C safe layout fix: keep one-row topbar in every route without moving main/rightbar. */
.lcpi-top-actions,.lcpi-unified-topbar__actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important;flex-wrap:nowrap!important;position:relative!important;z-index:25!important;}
.lcpi-top-actions>* ,.lcpi-unified-topbar__actions>*{flex:0 0 auto!important;}
.lcpi-top-actions .lcpi-chip,.lcpi-top-actions .lcpi-btn,.lcpi-top-actions .lcpi-user-panel,
.lcpi-unified-topbar__actions .lcpi-chip,.lcpi-unified-topbar__actions .lcpi-btn,.lcpi-unified-topbar__actions .lcpi-user-panel{height:48px!important;min-height:48px!important;}
.lcpi-theme-toggle{width:78px!important;min-width:78px!important;}
.lcpi-geo-chip{width:auto!important;min-width:72px!important;max-width:88px!important;}
.lcpi-bell{width:48px!important;min-width:48px!important;}
.lcpi-bell .lcpi-bell-state{display:none!important;}
.lcpi-bell.is-on{border-color:rgba(255,190,64,.45)!important;box-shadow:0 0 0 1px rgba(255,190,64,.16),0 0 18px rgba(255,176,45,.30),inset 0 0 16px rgba(255,176,45,.08)!important;}
.lcpi-bell.is-muted{border-color:rgba(100,116,139,.25)!important;box-shadow:none!important;}
.lcpi-bell.is-muted img{opacity:.46!important;filter:grayscale(1)!important;}
.lcpi-user-menu,.lcpi-user-panel{max-width:178px!important;}
.lcpi-user-panel{min-width:0!important;}
.lcpi-user-panel strong{max-width:92px!important;}
.lcpi-user-panel small{max-width:92px!important;}
.lcpi-login-btn{min-width:142px!important;max-width:164px!important;padding-left:16px!important;padding-right:16px!important;}

/* Home: shared topbar stays compact, right actions never wrap into content. */
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-topbar.lcpi-unified-topbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;height:64px!important;overflow:visible!important;}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__search{flex:1 1 620px!important;max-width:680px!important;min-width:260px!important;}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__spacer{flex:1 1 auto!important;min-width:12px!important;}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__actions{margin-left:auto!important;}

/* Offers: four topbar columns = search | filter | elastic spacer | right actions. */
body.lcpi-offers-clean .offers-page-shell>.lcpi-offers-topbar,
body.lcpi-offers-clean .lcpi-offers-topbar.lcpi-unified-topbar--offers{display:grid!important;grid-template-columns:minmax(420px,1fr) max-content minmax(12px,1fr) max-content!important;grid-template-rows:56px!important;align-items:center!important;column-gap:10px!important;row-gap:0!important;height:64px!important;min-height:64px!important;overflow:visible!important;}
body.lcpi-offers-clean .lcpi-offers-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-offers-clean .lcpi-offers-filter-wrap{grid-column:2!important;grid-row:1!important;min-width:0!important;}
body.lcpi-offers-clean .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;min-width:12px!important;display:block!important;}
body.lcpi-offers-clean .lcpi-top-actions{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important;}

/* Partners: do not let action cluster drop over the iframe/rightbar. */
body.lcpi-partners-page .partners-page-shell>.lcpi-partners-topbar,
body.lcpi-partners-page .lcpi-partners-topbar.lcpi-unified-topbar--partners{display:grid!important;grid-template-columns:minmax(360px,1fr) max-content minmax(12px,1fr) max-content!important;grid-template-rows:56px!important;align-items:center!important;column-gap:10px!important;row-gap:0!important;height:72px!important;min-height:72px!important;overflow:visible!important;}
body.lcpi-partners-page .lcpi-partners-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-partners-page .lcpi-partners-filter{grid-column:2!important;grid-row:1!important;min-width:124px!important;}
body.lcpi-partners-page .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;display:block!important;min-width:12px!important;}
body.lcpi-partners-page .lcpi-top-actions{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important;}

/* Offerwall: route CSS previously had 2 grid columns; V2C keeps filter and actions in the first row. */
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar.lcpi-unified-topbar--offerwall{display:grid!important;grid-template-columns:minmax(420px,1fr) max-content minmax(12px,1fr) max-content!important;grid-template-rows:56px!important;align-items:center!important;column-gap:10px!important;row-gap:0!important;height:72px!important;min-height:72px!important;overflow:visible!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .ow-route-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .ow-filter-chip{grid-column:2!important;grid-row:1!important;min-width:118px!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;display:block!important;min-width:12px!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .lcpi-top-actions{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important;}
body.lcpi-offerwall-page .ow-right{z-index:2!important;}

/* Transactions: one row, no overlap with performance rightbar. */
body.lcpi-transactions-page .lcpi-transactions-topbar.lcpi-unified-topbar--transactions,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar.lcpi-unified-topbar--transactions{display:grid!important;grid-template-columns:minmax(420px,680px) minmax(12px,1fr) max-content!important;grid-template-rows:56px!important;align-items:center!important;column-gap:10px!important;height:64px!important;min-height:64px!important;overflow:visible!important;}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-search,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-top-spacer,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-top-spacer{grid-column:2!important;grid-row:1!important;display:block!important;min-width:12px!important;}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-top-actions,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-top-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;}

/* Account: use the same row rhythm as all other frontend routes. */
body.account-route-page .account-index-topbar.lcpi-unified-topbar--account{display:grid!important;grid-template-columns:minmax(420px,680px) minmax(12px,1fr) max-content!important;grid-template-rows:56px!important;align-items:center!important;column-gap:10px!important;height:64px!important;min-height:64px!important;overflow:visible!important;}
body.account-route-page .account-index-topbar .lcpi-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.account-route-page .account-index-topbar .lcpi-top-spacer{grid-column:2!important;grid-row:1!important;display:block!important;min-width:12px!important;}
body.account-route-page .account-index-topbar .lcpi-top-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;}

@media (max-width:1480px){
  .lcpi-top-actions,.lcpi-unified-topbar__actions{gap:7px!important;}
  .lcpi-theme-toggle{width:64px!important;min-width:64px!important;}
  .lcpi-geo-chip{min-width:62px!important;max-width:70px!important;padding-left:9px!important;padding-right:9px!important;}
  .lcpi-user-menu,.lcpi-user-panel{max-width:146px!important;}
  .lcpi-user-panel strong,.lcpi-user-panel small{max-width:68px!important;}
  .lcpi-login-btn{min-width:132px!important;max-width:148px!important;padding-left:14px!important;padding-right:14px!important;}
  body.lcpi-offers-clean .offers-page-shell>.lcpi-offers-topbar,body.lcpi-offers-clean .lcpi-offers-topbar.lcpi-unified-topbar--offers{grid-template-columns:minmax(330px,1fr) max-content minmax(8px,1fr) max-content!important;}
  body.lcpi-partners-page .partners-page-shell>.lcpi-partners-topbar,body.lcpi-partners-page .lcpi-partners-topbar.lcpi-unified-topbar--partners{grid-template-columns:minmax(300px,1fr) max-content minmax(8px,1fr) max-content!important;}
  body.lcpi-offerwall-page .ow-shell>.lcpi-topbar.lcpi-unified-topbar--offerwall{grid-template-columns:minmax(320px,1fr) max-content minmax(8px,1fr) max-content!important;}
}

/* V2D final layout correction: keep route topbars in one compact row without overlapping page cards/rightbars. */
.lcpi-top-actions,.lcpi-unified-topbar__actions{box-sizing:border-box!important;isolation:isolate!important;}
.lcpi-top-actions .lcpi-chip,.lcpi-unified-topbar__actions .lcpi-chip{height:44px!important;min-height:44px!important;}
.lcpi-top-actions .lcpi-user-panel,.lcpi-unified-topbar__actions .lcpi-user-panel{height:46px!important;min-height:46px!important;}
.lcpi-theme-toggle{width:70px!important;min-width:70px!important;}
.lcpi-theme-toggle .lcpi-theme-symbols{gap:8px!important;}
.lcpi-theme-toggle .lcpi-top-sun,.lcpi-theme-toggle .lcpi-top-moon{width:17px!important;height:17px!important;}
.lcpi-geo-chip{height:44px!important;min-width:66px!important;max-width:74px!important;padding:0 10px!important;gap:7px!important;}
.lcpi-geo-chip img{width:21px!important;height:15px!important;}
.lcpi-bell{width:44px!important;min-width:44px!important;height:44px!important;}
.lcpi-user-menu,.lcpi-user-panel{max-width:166px!important;}
.lcpi-user-panel .avatar{width:42px!important;height:42px!important;min-width:42px!important;}
.lcpi-user-panel strong{max-width:86px!important;}
.lcpi-user-panel small{max-width:86px!important;}
.lcpi-login-btn{height:46px!important;min-height:46px!important;min-width:138px!important;max-width:156px!important;padding-left:14px!important;padding-right:14px!important;}

/* Home/index: exact two-zone rhythm: search left, action cluster right, no floating over the hero/stat row. */
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-topbar.lcpi-unified-topbar{
  display:grid!important;
  grid-template-columns:minmax(420px,680px) minmax(16px,1fr) max-content!important;
  grid-template-rows:56px!important;
  align-items:center!important;
  column-gap:12px!important;
  height:64px!important;
  min-height:64px!important;
  overflow:visible!important;
  position:relative!important;
  z-index:10!important;
}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__spacer{grid-column:2!important;grid-row:1!important;display:block!important;min-width:16px!important;}
body.lcpi-neon-home:not(.lcpi-offers-clean):not(.lcpi-partners-page):not(.lcpi-offerwall-page):not(.lcpi-transactions-page):not(.account-route-page) .lcpi-unified-topbar__actions{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;max-width:100%!important;}

/* Offers: preserve existing offer route topbar and keep filters/actions inside first row. */
body.lcpi-offers-clean .offers-page-shell>.lcpi-offers-topbar,
body.lcpi-offers-clean .lcpi-offers-topbar.lcpi-unified-topbar--offers{
  display:grid!important;
  grid-template-columns:minmax(360px,1fr) max-content minmax(10px,.6fr) max-content!important;
  grid-template-rows:56px!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:0!important;
  height:64px!important;
  min-height:64px!important;
  overflow:visible!important;
  position:relative!important;
  z-index:10!important;
}
body.lcpi-offers-clean .lcpi-offers-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-offers-clean .lcpi-offers-filter-wrap{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:0!important;justify-self:start!important;}
body.lcpi-offers-clean .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;display:block!important;min-width:10px!important;}
body.lcpi-offers-clean .lcpi-top-actions{grid-column:4!important;grid-row:1!important;justify-self:end!important;margin:0!important;max-width:100%!important;}

/* Partners: do not touch iframe area; topbar is one row search/filter/actions only. */
body.lcpi-partners-page .partners-page-shell>.lcpi-partners-topbar,
body.lcpi-partners-page .lcpi-partners-topbar.lcpi-unified-topbar--partners{
  display:grid!important;
  grid-template-columns:minmax(340px,1fr) max-content minmax(10px,.55fr) max-content!important;
  grid-template-rows:56px!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:0!important;
  height:72px!important;
  min-height:72px!important;
  overflow:visible!important;
  position:relative!important;
  z-index:10!important;
}
body.lcpi-partners-page .lcpi-partners-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-partners-page .lcpi-partners-filter{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:108px!important;justify-self:start!important;}
body.lcpi-partners-page .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;display:block!important;min-width:10px!important;}
body.lcpi-partners-page .lcpi-top-actions{grid-column:4!important;grid-row:1!important;justify-self:end!important;margin:0!important;max-width:100%!important;}

/* Offerwall: route shell spans main+rightbar; prevent filter/actions from wrapping down over the rightbar cards. */
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar.lcpi-unified-topbar--offerwall{
  display:grid!important;
  grid-template-columns:minmax(380px,1fr) max-content minmax(10px,.45fr) max-content!important;
  grid-template-rows:56px!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:0!important;
  height:64px!important;
  min-height:64px!important;
  overflow:visible!important;
  position:relative!important;
  z-index:10!important;
}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .ow-route-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .ow-filter-chip{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:108px!important;max-width:132px!important;justify-self:start!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .lcpi-top-spacer{grid-column:3!important;grid-row:1!important;display:block!important;min-width:10px!important;}
body.lcpi-offerwall-page .ow-shell>.lcpi-topbar .lcpi-top-actions{grid-column:4!important;grid-row:1!important;justify-self:end!important;margin:0!important;max-width:100%!important;}

/* Transactions / Account: keep compact row and never overlap rightbar widgets. */
body.lcpi-transactions-page .lcpi-transactions-topbar.lcpi-unified-topbar--transactions,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar.lcpi-unified-topbar--transactions,
body.account-route-page .account-index-topbar.lcpi-unified-topbar--account{
  display:grid!important;
  grid-template-columns:minmax(360px,680px) minmax(10px,1fr) max-content!important;
  grid-template-rows:56px!important;
  align-items:center!important;
  column-gap:10px!important;
  height:64px!important;
  min-height:64px!important;
  overflow:visible!important;
  position:relative!important;
  z-index:10!important;
}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-search,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-search,
body.account-route-page .account-index-topbar .lcpi-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-top-spacer,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-top-spacer,
body.account-route-page .account-index-topbar .lcpi-top-spacer{grid-column:2!important;grid-row:1!important;display:block!important;min-width:10px!important;}
body.lcpi-transactions-page .lcpi-transactions-topbar .lcpi-top-actions,
body.lcpi-front-desktop .tx-route-body>.lcpi-transactions-topbar .lcpi-top-actions,
body.account-route-page .account-index-topbar .lcpi-top-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;max-width:100%!important;}

@media (max-width:1480px){
  .lcpi-theme-toggle{width:62px!important;min-width:62px!important;}
  .lcpi-geo-chip{min-width:58px!important;max-width:64px!important;padding-left:8px!important;padding-right:8px!important;}
  .lcpi-bell{width:42px!important;min-width:42px!important;}
  .lcpi-user-menu,.lcpi-user-panel{max-width:132px!important;}
  .lcpi-user-panel strong,.lcpi-user-panel small{max-width:58px!important;}
  .lcpi-login-btn{min-width:126px!important;max-width:136px!important;padding-left:12px!important;padding-right:12px!important;}
  body.lcpi-offers-clean .offers-page-shell>.lcpi-offers-topbar,body.lcpi-offers-clean .lcpi-offers-topbar.lcpi-unified-topbar--offers{grid-template-columns:minmax(300px,1fr) max-content minmax(8px,.4fr) max-content!important;}
  body.lcpi-partners-page .partners-page-shell>.lcpi-partners-topbar,body.lcpi-partners-page .lcpi-partners-topbar.lcpi-unified-topbar--partners{grid-template-columns:minmax(270px,1fr) max-content minmax(8px,.35fr) max-content!important;}
  body.lcpi-offerwall-page .ow-shell>.lcpi-topbar.lcpi-unified-topbar--offerwall{grid-template-columns:minmax(300px,1fr) max-content minmax(8px,.35fr) max-content!important;}
}

/* V2E: geo chip visual alignment fix.
   Keep the existing topbar layout; only normalize the flag + country code inside the chip. */
.lcpi-top-actions .lcpi-geo-chip,
.lcpi-unified-topbar__actions .lcpi-geo-chip,
.lcpi-geo-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:row!important;
  box-sizing:border-box!important;
  height:44px!important;
  min-height:44px!important;
  line-height:1!important;
  vertical-align:middle!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
.lcpi-top-actions .lcpi-geo-chip img,
.lcpi-unified-topbar__actions .lcpi-geo-chip img,
.lcpi-geo-chip img{
  display:block!important;
  flex:0 0 auto!important;
  width:21px!important;
  height:15px!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  transform:none!important;
  vertical-align:middle!important;
}
.lcpi-top-actions .lcpi-geo-chip span,
.lcpi-unified-topbar__actions .lcpi-geo-chip span,
.lcpi-geo-chip span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:15px!important;
  line-height:15px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  position:static!important;
}

/* V2F: hard fix geo chip alignment by wrapping flag/code and overriding legacy chip baseline styles. */
body.lcpi-front-desktop .lcpi-topbar .lcpi-top-actions .lcpi-geo-chip-v2f,
body.lcpi-front-desktop .lcpi-topbar .lcpi-unified-topbar__actions .lcpi-geo-chip-v2f,
body.lcpi-front-desktop .lcpi-geo-chip-v2f{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:44px!important;
  min-height:44px!important;
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  padding:0!important;
  line-height:1!important;
  border-radius:13px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  vertical-align:middle!important;
}
body.lcpi-front-desktop .lcpi-topbar .lcpi-geo-chip-v2f .lcpi-geo-flag,
body.lcpi-front-desktop .lcpi-geo-chip-v2f .lcpi-geo-flag{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:22px!important;
  height:16px!important;
  min-width:22px!important;
  max-width:22px!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
  position:relative!important;
  top:0!important;
  transform:translateY(0)!important;
}
body.lcpi-front-desktop .lcpi-topbar .lcpi-geo-chip-v2f .lcpi-geo-flag img,
body.lcpi-front-desktop .lcpi-geo-chip-v2f .lcpi-geo-flag img{
  display:block!important;
  width:22px!important;
  height:16px!important;
  min-width:22px!important;
  max-width:22px!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  border-radius:3px!important;
  vertical-align:top!important;
  transform:none!important;
}
body.lcpi-front-desktop .lcpi-topbar .lcpi-geo-chip-v2f .lcpi-geo-code,
body.lcpi-front-desktop .lcpi-geo-chip-v2f .lcpi-geo-code{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:16px!important;
  min-height:16px!important;
  margin:0!important;
  padding:0!important;
  line-height:16px!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  color:#fff!important;
  position:relative!important;
  top:0!important;
  transform:translateY(0)!important;
}
@media (max-width:1480px){
  body.lcpi-front-desktop .lcpi-topbar .lcpi-top-actions .lcpi-geo-chip-v2f,
  body.lcpi-front-desktop .lcpi-geo-chip-v2f{width:66px!important;min-width:66px!important;max-width:66px!important;gap:6px!important;}
  body.lcpi-front-desktop .lcpi-geo-chip-v2f .lcpi-geo-code{font-size:13px!important;}
}
