/* ===== Mobil-optimalizálás (minden oldalon utoljára betöltve). Telefon: ≤ 760 px. ===== */
@media (max-width:760px){
  html,body{max-width:100vw;overflow-x:clip}
  img,video,iframe,svg{max-width:100%}
  /* süti-sáv, lebegő elemek */
  #cookie,.cookie{left:10px !important;right:10px !important;width:auto !important;max-width:none !important;bottom:10px !important;box-sizing:border-box}
  /* főoldal */
  .footer__links{flex-wrap:wrap !important;gap:10px 18px !important;max-width:100%}
  .footer *{min-width:0;max-width:100%;box-sizing:border-box}
  .hero__content{order:0}.hero__panel{order:1}
  .nav__links a,.btn,.faq__q,.faq__question{min-height:44px}
  .va-marquee{padding:12px 0}.va-marquee__track{gap:36px;font-size:.72rem}.va-marquee__track span{gap:36px}
  .teaser__frame{border-radius:14px !important;margin-top:1.4rem}
  .pricing__price{font-size:2.6rem !important}
  .module-card,.pricing__card{transform:none !important}
  /* terminál – elemző nézetek */
  body:not(.ws-on) .top{flex-wrap:wrap;gap:6px;padding:8px 12px}
  body:not(.ws-on) .top .nav{order:3;width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  body:not(.ws-on) .top .nav::-webkit-scrollbar{display:none}
  body:not(.ws-on) .top .nav a{flex:none;min-height:40px;display:inline-flex;align-items:center}
  .layout{display:block !important}
  #wl{position:static !important;width:auto !important;height:auto !important;max-height:none !important;border-left:0 !important;border-top:1px solid var(--line);margin-top:16px}
  #main{min-width:0;padding-left:12px !important;padding-right:12px !important}
  body:not(.ws-on) .ph{flex-direction:column;align-items:stretch;gap:10px}
  body:not(.ws-on) .search,body:not(.ws-on) .search input{width:100% !important;max-width:none !important;box-sizing:border-box}
  body:not(.ws-on) .card{overflow-x:auto}
  body:not(.ws-on) .grid,body:not(.ws-on) [class*="g2"],body:not(.ws-on) [class*="g3"],body:not(.ws-on) [class*="g4"]{grid-template-columns:1fr !important}
  /* kereskedői felület */
  body.ws-on #ws .ws-top{flex-wrap:nowrap !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:6px;padding:6px 8px;row-gap:0}
  body.ws-on #ws .ws-top::-webkit-scrollbar{display:none}
  body.ws-on #ws .ws-top>*{flex:none}
  body.ws-on #ws .ws-btn,body.ws-on #ppTF button{min-height:38px;min-width:38px}
  body.ws-on .wsx-clock,body.ws-on .wsx-sess small,body.ws-on .wsx-cmd{display:none !important}
  body.ws-on #ws .ws-chartbox{height:56vh !important;min-height:320px;margin:4px}
  body.ws-on #ws .ws-right{padding:8px !important}
  body.ws-on #ws #ppSide button{padding:1rem .5rem !important;font-size:1rem !important}
  body.ws-on #ws input,body.ws-on #ws select{min-height:44px;font-size:16px !important}
  body.ws-on #ws .ws-bottom #ppTabBar{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  body.ws-on #ws #ppTabBar button{flex:none;min-height:40px}
  body.ws-on #ws #ppTabBody{overflow-x:auto}
  .ppm{padding:0 !important;align-items:end !important}
  .ppm>div{max-width:100vw !important;width:100vw !important;max-height:88vh !important;border-radius:20px 20px 0 0 !important;padding:1.2rem 1rem !important}
  .wsx-pal{padding-top:8vh}
  /* admin */
  body.adm-on .adm-main{min-width:0;overflow-x:clip}
  body.adm-on .card{overflow-x:auto}
  body.adm-on .adm-search{min-width:0 !important;flex:1 1 140px}
  body.adm-on .kpi{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  body.adm-on .adm-top{padding:14px 0 12px}body.adm-on .adm-top h1{font-size:26px}
  /* tanulói felület és egyéb oldalak */
  header.t .btn{min-height:38px}
  .tabs#tb button{min-height:40px}
  #ll .lsn{min-height:44px}
  input,select,textarea{font-size:16px}
}
@media (max-width:760px){
  body:not(.ws-on) .top .user{order:2;width:100%;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;min-width:0}
  body:not(.ws-on) .top .user>*{flex:none}
  body:not(.ws-on) .top .user .btn{min-height:38px;padding:.4rem .7rem;font-size:.8rem}
  body.adm-on #adm{grid-template-columns:minmax(0,1fr) !important}
  body.adm-on .adm-side,body.adm-on .adm-main{min-width:0;max-width:100vw;box-sizing:border-box}
  body.adm-on #admnav{min-width:0;max-width:100%;flex:1 1 100%}
  body.adm-on .adm-search{max-width:100%;box-sizing:border-box}
  body.adm-on .adm-top{flex-wrap:wrap;gap:8px}body.adm-on .adm-act{flex-wrap:wrap}
}
@media (max-width:760px){ body:not(.ws-on) .top{height:auto !important;min-height:56px;padding:8px 12px !important;align-items:center} }
.nav__burger{display:none}
@media (max-width:900px){
  .nav__burger{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border:1px solid var(--c-border,#e3dccd);border-radius:12px;background:transparent;cursor:pointer;padding:0 11px;margin-left:6px}
  .nav__burger span{display:block;height:2px;border-radius:2px;background:var(--c-ink,#2c2825);transition:transform .25s,opacity .2s}
  html.nav-open .nav__burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}html.nav-open .nav__burger span:nth-child(2){opacity:0}html.nav-open .nav__burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  html.nav-open .nav__links{display:flex !important;position:fixed;left:0;right:0;top:64px;bottom:0;z-index:999;flex-direction:column;align-items:stretch;gap:0;padding:12px 20px 30px;background:var(--c-bg,#f6f3ec);overflow:auto;animation:navIn .25s ease}
  html.nav-open .nav__links a{display:flex;align-items:center;min-height:56px;font-size:1.05rem;letter-spacing:.14em;border-bottom:1px solid var(--c-border,#e3dccd)}
  html.nav-open .nav__links .nav__cta{margin-top:18px;justify-content:center;border-bottom:0}
  html.nav-open{overflow:hidden}
  @keyframes navIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
}
@media (max-width:900px){
  .nav__burger span{width:22px;min-height:2px;background:#2c2825 !important;flex:none}
  [data-theme="dark"] .nav__burger span{background:#eee6d6 !important}
  html.nav-open .nav{backdrop-filter:none !important;-webkit-backdrop-filter:none !important;transform:none !important;filter:none !important;overflow:visible !important}
  html.nav-open .nav__links{z-index:2000 !important}
}
/* ===== Telefonos kereskedői app ===== */
@media (max-width:760px){
  html.wsm,html.wsm body{overflow:hidden;height:100%;overscroll-behavior:none}
  html.wsm #v-paper{overflow:hidden !important;height:calc(100dvh - 62px - env(safe-area-inset-bottom,0px)) !important;padding:0 !important}
  html.wsm #ws{display:flex !important;flex-direction:column;height:100%;min-height:0}
  html.wsm #ws>*{flex:none}
  html.wsm #ws .ws-top{order:1;padding:6px 8px !important;gap:6px;min-height:0}
  html.wsm #ws .ws-top .ws-grp:has(#ppSel){display:flex}
  html.wsm #ws #wsToolsGrp,html.wsm #ws .ws-grp:has(#wsRepBtn),html.wsm #ws .ws-grp:has(#wsIndBtn){display:flex}
  html.wsm #ws #wsLeft{order:2;display:flex !important;flex-direction:row;overflow-x:auto;gap:4px;padding:4px 8px !important;border:0;border-bottom:1px solid var(--line,#1c2333);scrollbar-width:none;width:auto !important;height:auto !important}
  html.wsm #ws #wsLeft::-webkit-scrollbar{display:none}html.wsm #ws #wsLeft .ws-sep{width:1px;height:26px;margin:0 4px}
  html.wsm #ws #wsLeft .ws-tool{width:42px;height:40px;min-width:42px}html.wsm #ws #wsLeft .dl-more{width:14px;height:14px;font-size:10px;right:0;bottom:0}
  html.wsm #ws #wsCenter{order:3;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;position:relative}
  html.wsm #ws #wsSub{flex:none;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}html.wsm #ws #wsSub::-webkit-scrollbar{display:none}html.wsm #ws #wsSub button{min-height:34px}
  html.wsm #ws .ws-chartbox{flex:1 1 auto;height:auto !important;min-height:0 !important;margin:2px 4px 0 !important}
  html.wsm #ws .ws-right{order:4;flex:1 1 auto;min-height:0;overflow-y:auto !important;-webkit-overflow-scrolling:touch;width:auto !important;max-width:none !important;border:0 !important;padding:10px !important}
  html.wsm #ws .ws-bottom{order:5;flex:1 1 auto;min-height:0;overflow:auto !important;height:auto !important;max-height:none !important}
  html.wsm #ws[data-m="chart"] .ws-right,html.wsm #ws[data-m="chart"] .ws-bottom{display:none !important}
  html.wsm #ws[data-m="order"] #wsCenter,html.wsm #ws[data-m="order"] #wsLeft,html.wsm #ws[data-m="order"] .ws-bottom,
  html.wsm #ws[data-m="coach"] #wsCenter,html.wsm #ws[data-m="coach"] #wsLeft,html.wsm #ws[data-m="coach"] .ws-bottom{display:none !important}
  html.wsm #ws[data-m="pos"] #wsCenter,html.wsm #ws[data-m="pos"] #wsLeft,html.wsm #ws[data-m="pos"] .ws-right{display:none !important}
  html.wsm #ws[data-m="order"] .ws-top,html.wsm #ws[data-m="pos"] .ws-top,html.wsm #ws[data-m="coach"] .ws-top{display:none !important}
  html.wsm #ws[data-m="pos"] .ws-bottom #ppTabBar{position:sticky;top:0;z-index:2;background:var(--bg2,#0d1220)}
  /* gyors Vétel / Eladás sáv */
  #wsmQ{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;padding:8px 8px 6px;flex:none}
  #wsmQ button{border:0;border-radius:12px;min-height:50px;font:800 15px Inter,system-ui,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
  #wsmQ button b{font:700 12px ui-monospace,monospace;opacity:.85;margin-top:2px}#wsmQ .s{background:linear-gradient(180deg,#f0525f,#c93a46);color:#fff}#wsmQ .b{background:linear-gradient(180deg,#22d3a6,#13a383);color:#04150f}
  #wsmQ .mid{text-align:center;font:700 13px Inter,sans-serif;color:var(--ink,#e6e9ef);min-width:72px}#wsmQ .mid small{display:block;font:700 12px ui-monospace,monospace}#wsmQ .up{color:#19c39c}#wsmQ .dn{color:#f0525f}
  html:not(.wsm) #wsmQ{display:none}
  /* alsó menüsor */
  #wsmNav{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:grid;grid-template-columns:repeat(4,1fr);height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:rgba(10,13,22,.97);border-top:1px solid #1f2738;backdrop-filter:blur(14px)}
  #wsmNav button{border:0;background:none;color:#8b94a7;font:600 11px Inter,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}#wsmNav button span{font-size:20px;filter:grayscale(.6)}
  #wsmNav button.on{color:#f3dfae}#wsmNav button.on span{filter:none}
  .ws-light #wsmNav{background:rgba(255,255,255,.97);border-color:#e6dfd1}
  /* chart-jelvények: alulra, kompaktan, hogy ne takarják a fejlécet */
  html.wsm #wsxCd{top:auto;bottom:30px;left:6px;right:auto;font-size:11px}html.wsm #wsxCd span{padding:3px 7px}html.wsm #wsxCd .warn{white-space:normal;max-width:70vw}
  /* rajz: lenyíló lista alsó lapként, stílus-sáv alul */
  .dl-fly{max-height:62vh;overflow:auto}
  html.wsm .dl-fly{left:0 !important;right:0;top:auto !important;bottom:calc(62px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;min-width:0}html.wsm .dl-fly button{min-height:46px;font-size:15px}
  html.wsm #dlBar{position:fixed !important;left:8px !important;right:8px;top:auto !important;bottom:calc(132px + env(safe-area-inset-bottom,0px));overflow-x:auto;scrollbar-width:none}html.wsm #dlBar button{min-width:34px;height:34px}html.wsm #dlBar .dl-c{min-width:22px;width:22px;height:22px}
  html.wsm #ws .ws-top .ws-btn,html.wsm #ws #ppTF button{min-height:40px;min-width:40px}
  html.wsm .ppm>div{padding-bottom:calc(1.2rem + env(safe-area-inset-bottom,0px)) !important}
  html.wsm #pwaBar,html.wsm #tfab{display:none !important}
}
@media (max-width:760px){html.wsm body>div[style*="bottom:24px"][style*="translateX(-50%)"]{bottom:calc(140px + env(safe-area-inset-bottom,0px)) !important;z-index:1200 !important;max-width:92vw;text-align:center}}
