/* BankMovie UI polish and shared shell — v145
   Front-end only: no API, player, authentication or database behavior is changed. */

:root{
  --bm-shell-max:1500px;
  --bm-shell-gutter:clamp(14px,2vw,28px);
  --bm-surface-1:rgba(8,12,22,.86);
  --bm-surface-2:rgba(14,20,34,.74);
  --bm-line:rgba(255,255,255,.105);
  --bm-muted:rgba(229,235,246,.68);
  --bm-soft-shadow:0 18px 54px rgba(0,0,0,.28);
  --bm-card-radius:17px;
}

html{scrollbar-gutter:stable}
html,body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.bm-ui-v145{overflow-x:hidden}
body.bm-ui-v145 :where(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid rgba(var(--accent-rgb,47,124,255),.95)!important;
  outline-offset:3px!important;
}

.bm-skip-link{
  position:fixed;inset:10px auto auto 12px;z-index:25000;
  transform:translateY(-160%);padding:10px 14px;border-radius:12px;
  color:#fff;background:#1469e8;border:1px solid rgba(255,255,255,.3);
  text-decoration:none;font-size:13px;font-weight:900;transition:transform .18s ease;
}
.bm-skip-link:focus{transform:translateY(0)}

/* ---------- Shared public header ---------- */
@media (min-width:992px){
  html body #siteHeader[data-bm-header-version="145"]{
    min-height:88px!important;height:88px!important;
    padding:0!important;isolation:isolate!important;
    transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease!important;
  }
  html body.bm-v145-solid-header #siteHeader[data-bm-header-version="145"]{
    background:linear-gradient(180deg,rgba(3,7,14,.96),rgba(3,7,14,.83))!important;
    border-bottom:1px solid rgba(255,255,255,.075)!important;
    box-shadow:0 15px 38px rgba(0,0,0,.19)!important;
    backdrop-filter:blur(18px) saturate(1.15)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
  }
  html body.bm-v145-cinematic-header #siteHeader[data-bm-header-version="145"]{
    background:linear-gradient(180deg,rgba(0,3,9,.72),rgba(0,3,9,.22) 68%,transparent)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .header-inner{
    width:min(var(--bm-shell-max),calc(100% - (var(--bm-shell-gutter) * 2)))!important;
    max-width:var(--bm-shell-max)!important;height:88px!important;min-height:88px!important;
    grid-template-columns:minmax(440px,530px) minmax(430px,1fr) minmax(150px,205px)!important;
    column-gap:clamp(16px,2vw,32px)!important;padding:0!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .bm-header-logo-img{
    height:50px!important;max-height:50px!important;max-width:176px!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav{
    max-width:760px!important;gap:clamp(16px,2vw,36px)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item{
    position:relative!important;min-height:42px!important;height:42px!important;
    padding:0 7px!important;border-radius:13px!important;
    font-size:clamp(13px,.82vw,15px)!important;font-weight:850!important;
    color:rgba(255,255,255,.9)!important;text-shadow:0 2px 12px rgba(0,0,0,.5)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item::after{
    content:"";position:absolute;inset:auto 20% 1px;height:2px;border-radius:999px;
    background:linear-gradient(90deg,transparent,var(--accent,#2f7cff),transparent);
    opacity:0;transform:scaleX(.5);transition:opacity .18s ease,transform .18s ease;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item:hover,
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item.active{
    color:#fff!important;background:rgba(var(--accent-rgb,47,124,255),.12)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item:hover::after,
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item.active::after{
    opacity:1;transform:scaleX(1);
  }
  html body #siteHeader[data-bm-header-version="145"] .header-actions{
    height:46px!important;min-height:46px!important;gap:9px!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search{
    height:44px!important;min-height:44px!important;border-radius:14px!important;
    background:linear-gradient(180deg,rgba(8,14,27,.94),rgba(4,8,17,.94))!important;
    border-color:rgba(var(--accent-rgb,47,124,255),.7)!important;
    box-shadow:0 0 0 2px rgba(var(--accent-rgb,47,124,255),.13),0 12px 30px rgba(0,0,0,.24)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search:hover{
    border-color:rgba(var(--accent-rgb,47,124,255),1)!important;
    box-shadow:0 0 0 3px rgba(var(--accent-rgb,47,124,255),.14),0 16px 38px rgba(0,0,0,.3)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] :is(.notif-bell,.user-trigger,.admin-panel-trigger){
    min-height:44px!important;height:44px!important;border-radius:14px!important;
    border-color:rgba(255,255,255,.12)!important;
    background:linear-gradient(180deg,rgba(18,25,40,.72),rgba(7,11,21,.72))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 10px 24px rgba(0,0,0,.18)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] :is(.notif-bell,.user-trigger,.admin-panel-trigger):hover{
    border-color:rgba(var(--accent-rgb,47,124,255),.45)!important;
    background:rgba(var(--accent-rgb,47,124,255),.12)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .auth-menu{
    border:1px solid rgba(255,255,255,.11)!important;border-radius:18px!important;
    background:rgba(6,10,19,.96)!important;box-shadow:0 24px 70px rgba(0,0,0,.5)!important;
    backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;
  }
}

@media (min-width:992px) and (max-width:1279px){
  html body #siteHeader[data-bm-header-version="145"] .header-inner{
    grid-template-columns:minmax(350px,430px) minmax(390px,1fr) 145px!important;
    column-gap:14px!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search{
    flex-basis:190px!important;width:190px!important;min-width:190px!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav{gap:14px!important}
  html body #siteHeader[data-bm-header-version="145"] .desktop-nav-item{font-size:12.5px!important;padding-inline:5px!important}
  html body #siteHeader[data-bm-header-version="145"] .bm-header-logo-img{max-width:142px!important;height:45px!important}
}

@media (max-width:991px){
  html body #siteHeader[data-bm-header-version="145"]{
    border-bottom:1px solid rgba(255,255,255,.075)!important;
    background:rgba(3,7,14,.76)!important;
    backdrop-filter:blur(18px) saturate(1.12)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.12)!important;
  }
  html body #siteHeader[data-bm-header-version="145"] .header-inner{
    width:100%!important;max-width:none!important;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))!important;
  }
}

/* ---------- Shared footer ---------- */
html body .bm-global-footer[data-bm-global-footer="v145"]{
  position:relative!important;z-index:2!important;clear:both!important;
  width:min(var(--bm-shell-max),calc(100% - (var(--bm-shell-gutter) * 2)))!important;
  max-width:var(--bm-shell-max)!important;margin:48px auto 0!important;
  padding:0 0 max(18px,env(safe-area-inset-bottom))!important;direction:rtl!important;
}
html body .bm-global-footer[data-bm-global-footer="v145"],
html body .bm-global-footer[data-bm-global-footer="v145"] *{box-sizing:border-box!important}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-shell{
  position:relative;overflow:hidden;padding:28px clamp(18px,2.5vw,34px) 18px;
  border:1px solid var(--bm-line);border-radius:28px;
  background:
    radial-gradient(circle at 8% 5%,rgba(var(--accent-rgb,47,124,255),.18),transparent 31%),
    radial-gradient(circle at 92% 0,rgba(139,92,246,.13),transparent 30%),
    linear-gradient(150deg,rgba(17,24,39,.88),rgba(5,9,18,.96));
  box-shadow:var(--bm-soft-shadow),inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-main{
  display:grid;grid-template-columns:minmax(250px,1.15fr) minmax(320px,1fr) auto;
  align-items:center;gap:clamp(22px,4vw,58px);
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-brand{
  display:flex;align-items:center;gap:15px;min-width:0;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-logo{
  width:76px;height:52px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 9px 18px rgba(0,0,0,.34));
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-brand-copy{min-width:0}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-brand-copy strong{
  display:block;color:#fff;font-size:17px;font-weight:950;line-height:1.35;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-brand-copy span{
  display:block;margin-top:5px;color:var(--bm-muted);font-size:12px;line-height:1.8;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav{
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav a{
  min-height:38px;padding:0 13px;border:1px solid rgba(255,255,255,.085);border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.035);text-decoration:none;font-size:12px;font-weight:800;
  transition:color .16s ease,border-color .16s ease,background .16s ease,transform .16s ease;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav a:hover{
  color:#fff;border-color:rgba(var(--accent-rgb,47,124,255),.4);
  background:rgba(var(--accent-rgb,47,124,255),.1);transform:translateY(-1px);
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social{
  display:flex;align-items:center;justify-content:flex-end;gap:9px;direction:ltr;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social a{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;
  border:1px solid rgba(255,255,255,.12);text-decoration:none;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social a svg{width:19px;height:19px;display:block;fill:currentColor}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social a.telegram{background:linear-gradient(135deg,#2aabee,#168ac8);box-shadow:0 10px 26px rgba(42,171,238,.18)}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social a.instagram{background:linear-gradient(45deg,#f09433,#dc2743 48%,#bc1888);box-shadow:0 10px 26px rgba(220,39,67,.17)}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social a:hover{transform:translateY(-3px);filter:saturate(1.1);box-shadow:0 15px 34px rgba(0,0,0,.3)}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-bottom{
  margin-top:22px;padding-top:16px;border-top:1px solid rgba(255,255,255,.075);
  display:flex;align-items:center;justify-content:space-between;gap:16px;color:rgba(255,255,255,.48);
  font-size:11px;line-height:1.8;
}
html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-headline{color:rgba(255,255,255,.7);font-weight:750}

@media(max-width:960px){
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-main{grid-template-columns:1fr auto;gap:22px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav{grid-column:1/-1;grid-row:2}
}
@media(max-width:680px){
  html body .bm-global-footer[data-bm-global-footer="v145"]{width:calc(100% - 24px)!important;margin-top:30px!important}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-shell{padding:22px 15px 16px;border-radius:22px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-main{grid-template-columns:1fr;gap:18px;text-align:center}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-brand{justify-content:center;flex-direction:column;gap:8px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-logo{width:72px;height:45px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-social{justify-content:center}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav{grid-column:auto;grid-row:auto;gap:7px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-nav a{min-height:36px;padding-inline:11px;font-size:11px}
  html body .bm-global-footer[data-bm-global-footer="v145"] .bm-footer-bottom{flex-direction:column;gap:5px;text-align:center}
}

/* ---------- Horizontal content rails ---------- */
body.bm-ui-v145 .bm-rail-host{position:relative!important}
body.bm-ui-v145 .scroll-horizontal{
  scrollbar-width:none!important;-ms-overflow-style:none!important;
  scroll-snap-type:x proximity!important;scroll-padding-inline:8px!important;
  overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important;
  padding-bottom:16px!important;cursor:grab!important;
}
body.bm-ui-v145 .scroll-horizontal::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body.bm-ui-v145 .scroll-horizontal.is-dragging{
  cursor:grabbing!important;scroll-snap-type:none!important;user-select:none!important;-webkit-user-select:none!important;
}
body.bm-ui-v145 .scroll-horizontal>*{scroll-snap-align:start;scroll-snap-stop:normal}
body.bm-ui-v145 .bm-rail-arrow{
  position:absolute;z-index:18;top:calc(50% + 14px);transform:translateY(-50%);
  width:42px;height:42px;border:1px solid rgba(255,255,255,.14);border-radius:14px;
  display:grid;place-items:center;color:#fff;background:rgba(5,9,18,.82);
  box-shadow:0 13px 34px rgba(0,0,0,.33);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  cursor:pointer;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease,border-color .16s ease;
}
body.bm-ui-v145 .bm-rail-arrow svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2}
body.bm-ui-v145 .bm-rail-host:hover>.bm-rail-arrow:not([disabled]),
body.bm-ui-v145 .bm-rail-arrow:focus-visible{opacity:1;pointer-events:auto}
body.bm-ui-v145 .bm-rail-arrow:hover{border-color:rgba(var(--accent-rgb,47,124,255),.55);background:rgba(var(--accent-rgb,47,124,255),.2)}
body.bm-ui-v145 .bm-rail-arrow[disabled]{opacity:0!important;pointer-events:none!important}
body.bm-ui-v145 .bm-rail-arrow.is-left{left:8px}
body.bm-ui-v145 .bm-rail-arrow.is-right{right:8px}

@media(min-width:1200px){
  body.bm-ui-v145 .scroll-card.movie-card{width:clamp(164px,9.15vw,184px)!important;border-radius:var(--bm-card-radius)!important}
}
@media(max-width:991px){body.bm-ui-v145 .bm-rail-arrow{display:none!important}}

/* ---------- Card polish and readable hierarchy ---------- */
body.bm-ui-v145 :is(.section-title,.bm-arc1-section-title,.movie-info-title){
  letter-spacing:-.015em;line-height:1.45;
}
body.bm-ui-v145 .section-title{font-size:clamp(14px,1vw,17px)!important;font-weight:900!important;color:rgba(255,255,255,.94)!important}
body.bm-ui-v145 .section-title>svg,
body.bm-ui-v145 .section-title .section-icon-svg{color:var(--accent,#2f7cff)!important}
body.bm-ui-v145 .scroll-card{
  border-color:rgba(255,255,255,.08)!important;
  background:linear-gradient(180deg,rgba(15,21,34,.96),rgba(8,12,21,.98))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}
body.bm-ui-v145 .scroll-card:hover{
  transform:translateY(-5px)!important;border-color:rgba(var(--accent-rgb,47,124,255),.4)!important;
  box-shadow:0 20px 42px rgba(0,0,0,.34),0 0 0 1px rgba(var(--accent-rgb,47,124,255),.07)!important;
}
body.bm-ui-v145 .scroll-card-info{padding:10px 10px 11px!important}
body.bm-ui-v145 .scroll-card-title-fa{
  min-height:1.55em;font-size:12.5px!important;line-height:1.55!important;font-weight:850!important;color:rgba(255,255,255,.94)!important;
}
body.bm-ui-v145 .scroll-card-title-en{
  font-size:10px!important;line-height:1.5!important;color:rgba(224,231,243,.58)!important;margin-top:2px!important;
}
body.bm-ui-v145 .scroll-card-meta{
  font-size:10.5px!important;line-height:1.55!important;color:rgba(224,231,243,.58)!important;
}
body.bm-ui-v145 :is(.view-all-btn,.genre-chip,.country-chip){font-weight:800!important}

/* ---------- Ads: keep provider output untouched, improve its container only ---------- */
body.bm-ui-v145 .bm-ad-slot{
  width:min(1120px,calc(100% - 28px));margin-inline:auto!important;border-radius:22px!important;
  overflow:hidden!important;isolation:isolate!important;
}
body.bm-ui-v145 .bm-ad-slot :is(img,iframe){max-width:100%!important}

/* ---------- Movie detail readability, without changing API fields ---------- */
body.movie-page.bm-ui-v145 .movie-detail .movie-title-fa{
  font-size:clamp(24px,2.25vw,38px)!important;line-height:1.35!important;font-weight:950!important;letter-spacing:-.025em!important;
}
body.movie-page.bm-ui-v145 .movie-detail .movie-title-en{
  margin-top:5px!important;font-size:clamp(15px,1.15vw,20px)!important;line-height:1.5!important;color:rgba(255,255,255,.68)!important;
}
body.movie-page.bm-ui-v145 .movie-info-block{
  border-color:rgba(255,255,255,.1)!important;background:rgba(4,8,16,.4)!important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
body.movie-page.bm-ui-v145 .movie-info-title{font-size:14px!important;font-weight:950!important;color:#fff!important}
body.movie-page.bm-ui-v145 .meta-item{
  min-height:34px!important;font-size:12px!important;line-height:1.7!important;color:rgba(255,255,255,.78)!important;
}
body.movie-page.bm-ui-v145 .meta-item .label{color:rgba(255,255,255,.48)!important;font-weight:750!important}
body.movie-page.bm-ui-v145 .meta-item .value{color:rgba(255,255,255,.9)!important;font-weight:800!important}
body.movie-page.bm-ui-v145 .description,
body.movie-page.bm-ui-v145 .description .bm-readmore-content{
  font-size:13px!important;line-height:2.05!important;color:rgba(244,247,252,.79)!important;
}
body.movie-page.bm-ui-v145 .action-buttons .btn{min-height:43px!important;font-weight:900!important}
body.movie-page.bm-ui-v145 :is(.download-section,.arc1-series-downloads,.bm-archive2-movie-list){scroll-margin-top:110px}
body.movie-page.bm-ui-v145 .arc1-link-row{border-color:rgba(255,255,255,.095)!important}

/* ---------- Search, collection and listing pages ---------- */
body.search-page.bm-ui-v145 :where(p,small,.subtitle,.description),
body.view-all-page.bm-ui-v145 :where(p,small,.subtitle,.description){line-height:1.85}
body.search-page.bm-ui-v145 :is(.search-subtitle,.advanced-search-hint,.search-hint){color:rgba(230,236,247,.62)!important;font-size:12px!important}
body.bm-ui-v145 :is(.collections-page-hero,.collections-hero,.collection-hero){border-color:rgba(255,255,255,.1)!important}

/* ---------- Native lightweight states ---------- */
body.bm-ui-v145 .bm-v145-empty-state,
body.bm-ui-v145 .bm-v145-error-state{
  width:min(620px,calc(100% - 28px));margin:28px auto;padding:28px 20px;border-radius:22px;
  text-align:center;border:1px dashed rgba(255,255,255,.14);background:rgba(255,255,255,.035);color:rgba(255,255,255,.72);
}
body.bm-ui-v145 .bm-v145-empty-state strong,
body.bm-ui-v145 .bm-v145-error-state strong{display:block;margin-bottom:7px;color:#fff;font-size:16px}

@media(max-width:680px){
  body.bm-ui-v145 .section-title{font-size:14px!important}
  body.bm-ui-v145 .scroll-card-title-fa{font-size:11.5px!important}
  body.bm-ui-v145 .scroll-card-meta{font-size:9.8px!important}
  body.movie-page.bm-ui-v145 .meta-item{font-size:11.5px!important}
}

@media(prefers-reduced-motion:reduce){
  html body.bm-ui-v145 *,html body.bm-ui-v145 *::before,html body.bm-ui-v145 *::after{
    scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;
  }
}

/* ---------- Lightweight public archive/map shell ---------- */
body.bm-standalone-public{
  padding:0 14px 72px!important;background:radial-gradient(circle at 50% -10%,#111b33 0,#070a12 42%,#04060b 100%)!important;
}
body.bm-standalone-public>.wrap{width:min(1180px,100%);max-width:1180px;padding-top:18px}
body.bm-standalone-public .top{
  min-height:70px;margin:0 0 22px!important;padding:9px 14px;border:1px solid rgba(255,255,255,.08);
  border-radius:20px;background:linear-gradient(180deg,rgba(8,13,24,.92),rgba(4,8,16,.86));
  box-shadow:0 15px 36px rgba(0,0,0,.2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
body.bm-standalone-public .top .brand img{height:48px!important;max-width:160px;object-fit:contain}
body.bm-standalone-public .top .brand span{font-family:var(--bm-latin-font,var(--bm-site-font,inherit));font-size:15px}
body.bm-standalone-public .top .nav a{
  min-height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
body.bm-standalone-public .top .nav a:hover{
  background:rgba(var(--accent-rgb,47,124,255),.13)!important;border-color:rgba(var(--accent-rgb,47,124,255),.38)!important;
  transform:translateY(-1px);
}
body.bm-standalone-public .hero,body.bm-standalone-public .box,body.bm-standalone-public .card{
  border-color:rgba(255,255,255,.095)!important;box-shadow:0 14px 34px rgba(0,0,0,.18);
}
@media(max-width:680px){
  body.bm-standalone-public{padding-inline:10px!important;padding-bottom:100px!important}
  body.bm-standalone-public>.wrap{padding-top:10px}
  body.bm-standalone-public .top{min-height:auto;padding:10px!important;align-items:center!important;flex-direction:column}
  body.bm-standalone-public .top .nav{justify-content:center}
}

/* ======================================================================
   V146 mobile header rollback + footer redesign
   ====================================================================== */
@media (max-width: 991px) {
  html body #siteHeader[data-bm-header-version="145"] {
    position: sticky !important;
    top: 0 !important;
    inset: auto !important;
    min-height: 74px !important;
    z-index: 1700 !important;
    background: #070b12 !important;
    border-bottom: 1px solid rgba(255,255,255,.075) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.24) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 74px !important;
    height: 74px !important;
    margin: 0 !important;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    direction: ltr !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .desktop-nav,
  html body #siteHeader[data-bm-header-version="145"] .auth-dropdown,
  html body #siteHeader[data-bm-header-version="145"] .admin-panel-trigger {
    display: none !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .logo {
    position: relative !important;
    z-index: 2 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .bm-header-logo-img {
    width: auto !important;
    max-width: min(150px, 44vw) !important;
    height: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.26)) !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .header-actions {
    position: absolute !important;
    inset: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)) !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    direction: ltr !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .menu-btn,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-collection,
  html body #siteHeader[data-bm-header-version="145"] .notif-bell,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search {
    position: relative !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    color: #eef4ff !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .menu-btn svg,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-collection svg,
  html body #siteHeader[data-bm-header-version="145"] .notif-bell svg,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-content svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .bm-header-search {
    margin-left: auto !important;
    background: rgba(47,124,255,.14) !important;
    border-color: rgba(47,124,255,.28) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(17,72,180,.15) !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-glow,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-white,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-border,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-dark,
  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-label {
    display: none !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .bm-header-search-content {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body #siteHeader[data-bm-header-version="145"] .notif-bell .notif-badge {
    top: 7px !important;
    right: 7px !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    border: 0 !important;
    box-shadow: 0 0 0 3px rgba(255,59,92,.14) !important;
  }
}

/* ---------- Footer redesign v146 ---------- */
html body .bm-global-footer[data-bm-global-footer="v146"] {
  position: relative !important;
  z-index: 2 !important;
  clear: both !important;
  width: min(var(--bm-shell-max), calc(100% - (var(--bm-shell-gutter) * 2))) !important;
  max-width: var(--bm-shell-max) !important;
  margin: 54px auto 0 !important;
  padding: 0 0 max(18px, env(safe-area-inset-bottom)) !important;
  direction: rtl !important;
}
html body .bm-global-footer[data-bm-global-footer="v146"],
html body .bm-global-footer[data-bm-global-footer="v146"] * { box-sizing: border-box !important; }
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-shell {
  position: relative;
  overflow: hidden;
  padding: 26px clamp(18px,2.4vw,34px) 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 12% 0, rgba(var(--accent-rgb,47,124,255),.20), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(124,58,237,.20), transparent 26%),
    linear-gradient(145deg, rgba(10,15,25,.98), rgba(5,8,15,.96));
  box-shadow: 0 26px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-topline {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-logo {
  width: 82px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.34));
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand-copy { min-width: 0; }
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand-copy strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 980;
  line-height: 1.3;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand-copy span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.85;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-cta {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb,47,124,255),.22);
  background: linear-gradient(135deg, rgba(var(--accent-rgb,47,124,255),.18), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-cta-title {
  display: block;
  font-size: 15px;
  font-weight: 950;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-cta small {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 11.5px;
  line-height: 1.8;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(18px,2vw,28px);
  align-items: start;
  padding-top: 22px;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-column {
  min-width: 0;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 920;
  margin-bottom: 14px;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #2f7cff);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb,47,124,255),.14);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-about-text,
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social-copy {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12.5px;
  line-height: 2;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-nav,
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-nav a,
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-links-list a {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-nav a:hover,
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-links-list a:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(var(--accent-rgb,47,124,255),.34);
  background: rgba(var(--accent-rgb,47,124,255),.12);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social-wrap {
  direction: rtl;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  direction: ltr;
  margin-top: 14px;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social a.telegram {
  background: linear-gradient(135deg,#2aabee,#168ac8);
  box-shadow: 0 12px 28px rgba(42,171,238,.18);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social a.instagram {
  background: linear-gradient(45deg,#f09433,#dc2743 48%,#bc1888);
  box-shadow: 0 12px 28px rgba(220,39,67,.17);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social a:hover {
  transform: translateY(-3px);
  filter: saturate(1.1);
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-bottom {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  line-height: 1.8;
}
html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-headline {
  color: rgba(255,255,255,.78);
  font-weight: 760;
}

@media (max-width: 980px) {
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-topline,
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-main {
    grid-template-columns: 1fr 1fr;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  html body .bm-global-footer[data-bm-global-footer="v146"] {
    width: calc(100% - 22px) !important;
    margin-top: 32px !important;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-shell {
    padding: 22px 15px 16px;
    border-radius: 24px;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-topline,
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-main {
    grid-template-columns: 1fr;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-brand-copy strong {
    font-size: 20px;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-cta,
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-column {
    text-align: center;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-section-title {
    justify-content: center;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-nav,
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-links-list,
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-social {
    justify-content: center;
  }
  html body .bm-global-footer[data-bm-global-footer="v146"] .bm-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}
