/* Code Systems V91 Responsive Mobile + Desktop Upgrade */
:root{
  --v91-bg:#030611;
  --v91-card:rgba(9,16,38,.78);
  --v91-card2:rgba(15,25,56,.88);
  --v91-line:rgba(255,255,255,.14);
  --v91-cyan:#23e7ff;
  --v91-blue:#2588ff;
  --v91-violet:#8f55ff;
  --v91-pink:#ff3fd2;
  --v91-green:#20f59d;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:radial-gradient(circle at 20% -10%,rgba(35,231,255,.25),transparent 33%),radial-gradient(circle at 82% 0,rgba(255,63,210,.23),transparent 35%),linear-gradient(180deg,#030611 0%,#071022 45%,#02040c 100%)!important}
body:after{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.08),transparent 28%),linear-gradient(90deg,transparent,rgba(35,231,255,.045),transparent);mix-blend-mode:screen;z-index:0}
.top{box-shadow:0 15px 45px rgba(0,0,0,.35)}
.nav{max-width:1480px}
.brand{letter-spacing:.2px}.brand b{font-size:18px}.brand img{border-radius:18px;box-shadow:0 0 28px rgba(35,231,255,.55),0 0 80px rgba(255,63,210,.18)}
.links{align-items:center}.links button{height:42px;border-radius:999px;padding:0 14px;background:rgba(255,255,255,.07)}
.links button.primary{background:linear-gradient(135deg,var(--v91-blue),var(--v91-cyan))}.mobileMenu{border-radius:999px;background:linear-gradient(135deg,var(--v91-violet),var(--v91-pink))!important}
.wrap{max-width:1480px;padding:38px 22px 130px}.card,.glass{background:linear-gradient(180deg,rgba(18,29,64,.76),rgba(5,10,24,.88))!important;border:1px solid var(--v91-line)!important;box-shadow:0 22px 80px rgba(0,0,0,.43),inset 0 1px 0 rgba(255,255,255,.08)!important}.card:hover{border-color:rgba(35,231,255,.33)!important;transform:translateY(-1px)}
.hero{min-height:min(720px,calc(100vh - 96px));grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr)}.hero h1{letter-spacing:-1.5px}.hero .muted{max-width:720px}.heroImg{aspect-ratio:1.03/1;object-fit:cover;border-radius:36px;box-shadow:0 28px 120px rgba(0,0,0,.65),0 0 80px rgba(35,231,255,.22)}
.v91HeroStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.v91HeroStats .glass{padding:15px;border-radius:22px}.v91HeroStats b{display:block;font-size:22px}.v91DeviceRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.v91DeviceRow .pill{border-color:rgba(35,231,255,.35);background:rgba(35,231,255,.08)}
.grid,.grid2,.grid4{align-items:stretch}.grid>.card,.grid2>.card,.grid4>.card{min-height:100%;display:flex;flex-direction:column}.grid>.card button,.grid2>.card button,.grid4>.card button{margin-top:auto}.brandCardV91{position:relative;overflow:hidden}.brandCardV91:before{content:"";position:absolute;inset:-1px;background:radial-gradient(circle at 15% 10%,rgba(35,231,255,.22),transparent 32%),radial-gradient(circle at 90% 12%,rgba(255,63,210,.16),transparent 33%);pointer-events:none}.brandCardV91>*{position:relative}.brandCardV91 img{transition:.22s}.brandCardV91:hover img{transform:scale(1.04) rotate(-1deg)}
.systemStrip{max-width:min(920px,calc(100vw - 28px));border-radius:28px;background:rgba(5,10,24,.82);border:1px solid rgba(35,231,255,.24);box-shadow:0 25px 80px rgba(0,0,0,.55),0 0 45px rgba(35,231,255,.13)}.systemStrip button{width:74px;height:64px;display:flex;flex-direction:column;font-size:10px;gap:3px;background:rgba(255,255,255,.06)}.systemStrip img{width:34px;height:34px}.systemStrip span{display:block;max-width:66px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gear,.aiBotBtn{box-shadow:0 0 38px rgba(35,231,255,.35),0 0 70px rgba(255,63,210,.18)}
.smmShell,.workerShell{grid-template-columns:minmax(0,1fr) 320px}.smmHero{grid-template-columns:minmax(230px,330px) minmax(0,1fr);border-color:rgba(255,63,210,.42);background:radial-gradient(circle at 10% 50%,rgba(143,85,255,.42),transparent 38%),linear-gradient(135deg,rgba(9,16,38,.95),rgba(23,11,45,.92))}.smmStats{grid-template-columns:repeat(4,minmax(0,1fr))}.searchLine{grid-template-columns:minmax(240px,1fr) 180px 180px 118px}.platforms{scroll-snap-type:x mandatory}.platform{scroll-snap-align:start}.serviceCard{background:linear-gradient(180deg,rgba(14,22,50,.9),rgba(6,11,28,.94));border-color:rgba(35,231,255,.17)}
.table{display:block;overflow:auto;white-space:nowrap}.table tbody,.table thead,.table tr{width:100%}.input,input,select,textarea{font-size:16px;background:rgba(3,7,18,.78)!important;border-color:rgba(255,255,255,.16)!important}.primary,.green,.pink,.danger{box-shadow:0 14px 35px rgba(0,0,0,.25),0 0 25px rgba(35,231,255,.13)!important}
@media (min-width:1200px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.authBox{margin-top:95px}.storeProduct{min-height:310px}}
@media (max-width:1100px){.links{position:fixed;top:74px;left:14px;right:14px;display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px;border:1px solid var(--v91-line);border-radius:24px;background:rgba(5,10,24,.96);box-shadow:0 22px 80px rgba(0,0,0,.62);z-index:120}.links:not(.hidden){display:grid!important}.links button{width:100%;height:auto;min-height:44px}.mobileMenu{display:inline-flex}.hero,.smmShell,.workerShell,.smmHero{grid-template-columns:1fr}.rightSidebar,.workerSide{position:relative;top:auto;max-height:none;order:-1}.smmStats{grid-template-columns:repeat(2,minmax(0,1fr))}.searchLine{grid-template-columns:1fr 1fr}.searchLine button{grid-column:1/-1}.walletTop{top:auto;bottom:104px;left:14px;right:auto;max-width:calc(100vw - 28px)}}
@media (max-width:720px){body{background-attachment:fixed!important}.top{position:sticky}.nav{padding:9px 12px}.brand b{font-size:14px}.brand span{font-size:12px}.brand img{width:42px;height:42px}.wrap{padding:18px 12px 118px}.hero{min-height:auto;gap:16px;padding-top:8px}.hero h1{font-size:clamp(31px,11vw,46px);line-height:1.02;margin:10px 0}.hero .muted{font-size:15px!important}.heroImg{aspect-ratio:16/10;border-radius:24px;max-height:260px}.row{gap:8px}.row button,.row .btn{flex:1 1 auto;min-height:44px}.v91HeroStats{grid-template-columns:repeat(3,1fr);gap:8px}.v91HeroStats .glass{padding:10px;border-radius:17px}.v91HeroStats b{font-size:17px}.v91HeroStats span{font-size:11px}.grid,.grid2,.grid4{grid-template-columns:1fr!important;gap:12px}.card,.glass{border-radius:22px!important;padding:16px!important}.card h2{font-size:22px}.pill{font-size:12px;padding:7px 10px}.systemStrip{left:8px;right:8px;bottom:8px;transform:none;overflow:auto;justify-content:space-between;padding:7px;border-radius:22px}.systemStrip button{min-width:58px;width:58px;height:56px;border-radius:17px;padding:4px}.systemStrip img{width:28px;height:28px}.systemStrip span{font-size:9px;max-width:50px}.gear{right:12px;bottom:76px;width:48px;height:48px}.aiBotBtn{left:12px;bottom:76px;width:54px;height:54px}.aiPanel{left:8px;right:8px;bottom:138px;width:auto;max-width:none;max-height:63vh}.walletTop{bottom:138px;left:8px;right:8px;width:auto;justify-content:space-between;border-radius:18px}.langPanel{right:8px;bottom:132px}.authBox{margin:20px auto}.smmStats{grid-template-columns:1fr 1fr}.smmHero{gap:13px;padding:14px!important}.smmHero img{max-height:190px;object-fit:cover}.searchLine{grid-template-columns:1fr}.platforms{gap:9px;padding:10px 0}.platform{min-width:74px;height:74px;font-size:12px}.serviceCard{padding:13px;border-radius:19px}.rightSidebar .sideMenu,.workerSide .sideMenu{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sideMenu button{margin:0;min-height:42px}.sideLogo{max-height:135px;object-fit:cover}.table td,.table th{padding:10px;font-size:13px}.mailShell{grid-template-columns:1fr}.composeGrid{grid-template-columns:1fr}.modal{align-items:end;padding:8px}.modalBox{width:100%;max-height:86vh;border-radius:24px 24px 16px 16px}}
@media (max-width:390px){.smmStats,.v91HeroStats{grid-template-columns:1fr}.brand span{display:none}.systemStrip{gap:4px}.systemStrip button{min-width:52px;width:52px}.wrap{padding-left:10px;padding-right:10px}}


/* ===== V92 FULL MOBILE SAME-DESIGN LOCK =====
   Purpose: keep the current Code Systems visual design, but make every page usable on phone + desktop.
   This layer only changes layout/spacing/responsiveness; colors, gradients and brand style stay the same.
*/
html,body{width:100%;max-width:100%;overflow-x:hidden!important}body{touch-action:manipulation}.wrap,#app,main,section{max-width:100%}img,video,canvas,svg{max-width:100%;height:auto}pre,code{white-space:pre-wrap;word-break:break-word}.hidden{display:none!important}
button,.btn,input,select,textarea{max-width:100%}button,.btn{min-height:42px}.card,.glass,.serviceCard,.mailCardPro{overflow:hidden}.row{min-width:0}.row>*{min-width:0}.muted{word-break:break-word}.table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table table{min-width:720px}.modal{overscroll-behavior:contain}.modalBox{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.links{transition:.18s ease}.links.hidden{display:none!important}

/* desktop remains premium and wide */
@media (min-width:1101px){
  .mobileMenu{display:none!important}.links{display:flex!important}.hero{align-items:center}.rightSidebar,.workerSide{min-width:0}.systemStrip{padding-inline:14px}.v89LawSalesEntry{bottom:106px}.aiBotBtn{bottom:110px}.gear{bottom:30px}
}

/* tablet / small laptop */
@media (max-width:1100px){
  .top{position:sticky;top:0;z-index:500}.nav{min-height:64px}.mobileMenu{display:inline-flex!important;min-width:46px;height:46px;border-radius:16px;z-index:3}.brand{margin-inline-start:auto}.links{position:fixed!important;top:72px;left:12px;right:12px;max-height:calc(100vh - 92px);overflow:auto;-webkit-overflow-scrolling:touch;display:none!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;background:rgba(5,8,22,.97);border:1px solid rgba(35,231,255,.24);border-radius:22px;box-shadow:0 24px 80px rgba(0,0,0,.75);backdrop-filter:blur(22px)}
  .links:not(.hidden){display:grid!important}.links button{width:100%;justify-content:center;white-space:normal;line-height:1.2;min-height:46px;padding:10px 8px}.hero{grid-template-columns:1fr!important;min-height:auto}.heroImg{max-height:420px}.smmShell,.workerShell{display:flex!important;flex-direction:column!important;gap:14px}.rightSidebar,.workerSide{order:2!important;width:100%;max-height:none!important;position:relative!important;top:auto!important}.smmMain,.workerMain{order:1!important;width:100%}.searchLine{grid-template-columns:1fr 1fr!important}.searchLine input{grid-column:1/-1}.searchLine button{grid-column:1/-1}.grid4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mailShell,.composeGrid,.composeGridPro{grid-template-columns:1fr!important}.walletTop{z-index:150}.aiPanel{z-index:800}.langPanel{z-index:820}
}

/* full phone version */
@media (max-width:760px){
  :root{--phone-pad:11px;--phone-bottom:92px}html{font-size:15px}body{min-height:100svh}.top{background:rgba(5,8,22,.94)!important}.nav{padding:8px var(--phone-pad)!important;gap:8px}.brand{gap:8px}.brand img{width:40px!important;height:40px!important;border-radius:14px!important}.brand b{font-size:14px!important}.brand small{font-size:10px!important}.mobileMenu{width:44px;height:44px;padding:0!important;font-size:20px}.links{top:62px!important;left:8px!important;right:8px!important;grid-template-columns:1fr!important;border-radius:20px!important;max-height:calc(100svh - 75px)!important}.links button{font-size:14px;min-height:44px}
  .wrap{padding:14px var(--phone-pad) calc(var(--phone-bottom) + 36px)!important}.hero{gap:14px!important;padding-top:4px!important}.hero h1,h1{font-size:clamp(28px,10vw,42px)!important;line-height:1.03!important;letter-spacing:-.8px!important}.hero h2,h2{font-size:22px!important}.hero h3,h3{font-size:18px!important}.hero .muted,.muted{font-size:14px;line-height:1.55}.heroImg{width:100%!important;max-height:230px!important;aspect-ratio:16/10!important;border-radius:22px!important;object-fit:cover!important}.card,.glass{padding:14px!important;border-radius:20px!important}.grid,.grid2,.grid4{grid-template-columns:1fr!important;gap:11px!important}.v91HeroStats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v91HeroStats .glass{padding:9px 7px!important}.v91HeroStats b{font-size:16px!important}.v91HeroStats span{font-size:10px!important;display:block}.v91DeviceRow{gap:7px}.pill{font-size:11px!important;padding:6px 8px!important;white-space:normal}.row{gap:7px!important}.row button,.row .btn{flex:1 1 auto;min-width:0;font-size:13px;padding:10px 9px!important}.input,input,select,textarea{font-size:16px!important;border-radius:14px!important;padding:12px 13px!important;margin:5px 0!important}textarea{min-height:105px!important}
  .smmStats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.stat{gap:9px!important}.statIcon{width:43px!important;height:43px!important;font-size:17px!important}.num{font-size:20px!important}.smmHero{grid-template-columns:1fr!important;margin:12px 0!important;padding:13px!important;border-radius:22px!important}.smmHero img{max-height:160px!important;object-fit:cover!important;border-radius:18px!important}.smmTitle{font-size:32px!important}.searchLine{grid-template-columns:1fr!important;gap:7px!important}.platforms{display:flex!important;gap:8px!important;overflow:auto!important;padding:9px 0!important;scroll-snap-type:x mandatory}.platform{min-width:70px!important;width:70px!important;height:70px!important;border-radius:18px!important;font-size:11px!important;scroll-snap-align:start}.serviceCard{padding:12px!important;border-radius:18px!important}.serviceCard .meta span{font-size:10px!important;padding:5px 7px!important}.rightSidebar .sideMenu,.workerSide .sideMenu{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.sideMenu button{margin:0!important;min-height:40px!important;font-size:12px!important;justify-content:center!important}.sideUser{padding:9px 0!important}.sideUser img{width:58px!important;height:58px!important}.sideLogo{max-height:112px!important;object-fit:cover!important;border-radius:20px!important}.table{border-radius:16px}.table td,.table th{font-size:12px!important;padding:9px!important}.mailFolders{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mailFolders button{margin:0!important}.mailCardPro{padding:12px!important;border-radius:18px!important}.mailSubject{font-size:15px}.mailBodyPreview{font-size:13px;max-height:110px;overflow:auto}
  .systemStrip{position:fixed!important;left:7px!important;right:7px!important;bottom:7px!important;transform:none!important;z-index:650!important;display:flex!important;justify-content:flex-start!important;gap:6px!important;padding:6px!important;overflow-x:auto!important;overflow-y:hidden!important;border-radius:20px!important;scrollbar-width:none}.systemStrip::-webkit-scrollbar{display:none}.systemStrip button{min-width:54px!important;width:54px!important;height:54px!important;border-radius:16px!important;padding:3px!important;flex:0 0 auto!important}.systemStrip img{width:26px!important;height:26px!important;border-radius:10px!important}.systemStrip span{font-size:8px!important;max-width:48px!important;line-height:1.05!important}.gear{right:10px!important;bottom:73px!important;width:48px!important;height:48px!important;z-index:680!important}.aiBotBtn{left:10px!important;bottom:73px!important;width:52px!important;height:52px!important;z-index:680!important}.walletTop{left:8px!important;right:8px!important;bottom:128px!important;top:auto!important;width:auto!important;min-height:42px!important;padding:8px 10px!important;font-size:12px!important;border-radius:16px!important;overflow:auto!important;z-index:660!important}.aiPanel{left:8px!important;right:8px!important;bottom:132px!important;width:auto!important;max-width:none!important;max-height:62svh!important;border-radius:22px!important}.langPanel{right:8px!important;left:8px!important;bottom:128px!important;width:auto!important;max-width:none!important;border-radius:20px!important}.modal{align-items:end!important;padding:7px!important}.modalBox{width:100%!important;max-height:86svh!important;border-radius:22px 22px 16px 16px!important}.toast{top:70px!important;width:calc(100vw - 20px)!important;text-align:center!important}.v89LawSalesTop{margin:10px 0!important;padding:12px!important;border-radius:18px!important}.v89LawSalesEntry{right:68px!important;bottom:75px!important;max-width:calc(100vw - 132px)!important;padding:10px 12px!important;font-size:12px!important;z-index:675!important}.v89LawSalesEntry small{display:none!important}
}

/* very small phones */
@media (max-width:390px){
  .brand small{display:none}.brand img{width:36px!important;height:36px!important}.v91HeroStats,.smmStats{grid-template-columns:1fr!important}.systemStrip button{min-width:50px!important;width:50px!important}.systemStrip span{display:none!important}.systemStrip img{width:28px!important;height:28px!important}.gear{bottom:70px!important}.aiBotBtn{bottom:70px!important}.v89LawSalesEntry{display:none!important}.walletTop{font-size:11px!important}.rightSidebar .sideMenu,.workerSide .sideMenu,.mailFolders{grid-template-columns:1fr!important}
}

/* landscape mobile: keep content readable */
@media (max-height:520px) and (max-width:920px){
  .systemStrip{display:none!important}.gear,.aiBotBtn,.v89LawSalesEntry{bottom:12px!important}.walletTop{display:none!important}.links{max-height:calc(100svh - 68px)!important}.heroImg{max-height:180px!important}.wrap{padding-bottom:70px!important}.aiPanel,.langPanel{bottom:70px!important;max-height:75svh!important}
}


@media (max-width: 768px){

.container,
.dashboard,
.hero,
.cards,
.grid{
    width:100% !important;
    max-width:100% !important;
    padding:12px !important;
}

.card{
    width:100% !important;
    margin-bottom:15px !important;
}

img{
    max-width:100% !important;
    height:auto !important;
}

table{
    display:block;
    overflow-x:auto;
}

.sidebar{
    width:100% !important;
}

.nav-links{
    flex-direction:column !important;
}

h1{
    font-size:32px !important;
}

h2{
    font-size:26px !important;
}

}

@media(max-width:768px){

.bottom-nav,
nav.bottom,
.tabbar{
height:65px !important;
padding:4px !important;
}

.bottom-nav img,
nav.bottom img,
.tabbar img{
width:24px !important;
height:24px !important;
}

.bottom-nav span,
nav.bottom span,
.tabbar span{
font-size:11px !important;
}

}

@media(max-width:768px){

.loginBtnTop{
position:static !important;
width:auto !important;
min-width:110px !important;
font-size:13px !important;
padding:8px 12px !important;
white-space:nowrap !important;
}

}

@media(max-width:768px){

.logoText,
.brandName,
.siteTitle,
.headerTitle{
max-width:140px !important;
overflow:hidden !important;
text-overflow:ellipsis !important;
white-space:nowrap !important;
font-size:18px !important;
}

}
