/* Maaeen Pricing — bilingual layout + mobile UX layer (loaded after inline styles) */
/* ===== Bilingual: direction-neutral layout (works in RTL + LTR) ===== */
html[lang=en] body,html[lang=en] input,html[lang=en] select,html[lang=en] textarea,html[lang=en] button{font-family:"IBM Plex Sans","IBM Plex Sans Arabic",Arial,sans-serif}
html[lang=en] h1{letter-spacing:-.4px}
.heroTools{direction:inherit}
.sysPrice{text-align:end}
.sysPrice .extraRecurring{text-align:start}
.choice{text-align:start}
.choice .infoBtn{left:auto;inset-inline-end:7px}
.infoClose{left:auto;inset-inline-end:14px}
.cost{margin-right:0;margin-inline-start:auto}
.langTool{font-family:"IBM Plex Sans","IBM Plex Sans Arabic",Arial,sans-serif;font-size:14px;font-weight:700;letter-spacing:.5px}
.quoteActions{display:flex;gap:7px;margin-top:12px}
.quoteActions .btn{flex:1}
.btn,.choice,.seg button,.heroTool,.qty button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.btn:focus-visible,.choice:focus-visible,.seg button:focus-visible,.heroTool:focus-visible,.qty button:focus-visible,.infoBtn:focus-visible{outline:3px solid #1cc99877;outline-offset:2px}
.mobileTotal{display:none}
html{scroll-padding-top:12px}

/* fixes: unstyled AI help/top-up heading; .total class collision in AI top-up */
.hostHelp{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}
.topupBox .meta{font-size:12px;font-weight:700;color:var(--g)}
.topupMetric.total{display:block;padding:10px;margin:0;color:inherit;border-radius:12px}
.topupMetric.total small{color:#2f6f5c;font-size:9px}
@media(max-width:680px){.hostHelp{font-size:11px}.topupMetric.total small{font-size:10px}}

/* ===== Mobile & tablet UX ===== */
@media(max-width:980px){
  .mobileTotal{position:fixed;inset-inline:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#063f35f2;color:#fff;box-shadow:0 -10px 30px #052f2933;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:transform .22s ease}
  .mobileTotal.away{transform:translateY(110%)}
  .mobileTotal small{display:block;font-size:11px;color:#b7d4cd}
  .mobileTotal b{display:block;font-size:21px;line-height:1.25;color:var(--lime);white-space:nowrap}
  .mobileTotal .mMeta{display:block;font-size:11px;color:#cfe5df;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62vw}
  .mobileTotal .btn{flex:none;min-height:44px;background:var(--lime);border-color:var(--lime);color:var(--g);padding:10px 16px}
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .side{scroll-margin-top:12px}
}
@media(max-width:680px){
  /* iOS: inputs under 16px trigger auto-zoom on focus */
  input,select,textarea{font-size:16px!important}
  .heroTop{gap:10px}
  .heroTool{width:44px;height:44px}
  h1{font-size:25px}
  /* summary becomes a swipeable strip instead of a 5-row block */
  .summary{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:7px;padding:8px}
  .summary::-webkit-scrollbar{display:none}
  .summary .sum{flex:0 0 auto;min-width:132px;scroll-snap-align:start}
  .summary .sum.main{min-width:178px}
  .summary .sum b{overflow:visible}
  /* bigger touch targets */
  .qty{gap:8px}
  .qty button{width:44px;height:44px;border-radius:11px;font-size:20px}
  .qty input{width:72px;height:44px;border-radius:11px}
  .cost{width:100%;margin-inline-start:0;margin-top:2px;font-size:12px}
  .infoBtn{width:28px;height:28px;font-size:13px}
  .choice .infoBtn{width:26px;height:26px}
  .sysCheck{width:26px;height:26px}
  .chev{width:36px;height:36px}
  .sysTop{padding:13px}
  .sysPrice{text-align:start}
  .subhead small{text-align:end}
  .qrow span:first-child{padding-left:0;padding-inline-end:8px}
  .seg button{min-height:46px;font-size:12px}
  .choice{min-height:52px;padding:11px 12px}
  .choice b{font-size:13px}
  .customer input{min-height:46px}
  .quoteActions{flex-direction:column}
  .quoteActions .btn{min-height:46px}
  .moneyInput:before{right:auto;inset-inline-start:8px}
  /* dialogs become bottom sheets */
  .infoOverlay,.confirmOverlay{align-items:flex-end;padding:0}
  .infoCard,.confirmCard{width:100%;max-height:82vh;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));animation:sheetUp .22s ease}
  .infoCard:before,.confirmCard:before{content:"";display:block;width:42px;height:4px;border-radius:9px;background:#d4e3de;margin:-8px auto 14px}
  .infoClose{width:38px;height:38px;top:16px}
  .confirmActions{flex-direction:column-reverse}
  .confirmActions .btn{min-height:48px}
  .modalhead .btn{min-height:42px}
}
@media(max-width:390px){
  .heroLogos{transform-origin:center}
  .summary .sum{min-width:120px}
  .mobileTotal b{font-size:19px}
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.mobileTotal,.infoCard,.confirmCard{transition:none;animation:none}}
@media print{.mobileTotal,.langTool{display:none!important}body{padding:0}}

/* ===== Login page ===== */
.loginLang{position:absolute;right:20px;top:20px;width:44px;height:44px;border:1px solid #dce9e4;border-radius:13px;background:#f6faf8;color:#063f35;cursor:pointer;font-family:"IBM Plex Sans","IBM Plex Sans Arabic",Arial,sans-serif;font-size:14px;font-weight:700}
@media(max-width:600px){.loginLang{right:18px;top:18px}}