/* ═══ MARVEL NUMS — PRO LAYOUT LAYER (loads last on every page) ═══════════════
   One clean lane: nothing overlaps nothing. Floating buttons, toasts, pop-ups and pickers all
   sit in their own space and come up from the bottom like a native app.                        */
:root{--mp-safe:env(safe-area-inset-bottom,0px)}
body{--mp-nav-h:0px}
@media(max-width:900px){body{--mp-nav-h:92px}body.logged-out{--mp-nav-h:0px}}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{min-width:0}
img,video,canvas,svg{max-width:100%}
.container,.card,.panel,.box,section,main{min-width:0;max-width:100%}

/* 1. header: ONE logo, brand name never wraps */
.nav-brand>img[data-site-logo]{display:none!important}
.nav-brand{min-width:0;gap:10px}
.nav-brand .brand-words,.nav-brand .brand-mvn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 2. marketplace switcher: short labels, no mid-word breaks */
.mkt-page-switch a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px!important;padding:8px 4px!important;letter-spacing:0}
@media(max-width:380px){.mkt-page-switch{gap:4px!important}.mkt-page-switch a{font-size:12px!important}}

/* 3. search boxes: icon sits inside the field, never on the text */
.mkt-search-wrap{position:relative;display:block}
.mkt-search-wrap .mkt-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;display:flex;align-items:center;line-height:1}
.mkt-search-wrap input{width:100%;padding-left:44px!important;text-overflow:ellipsis}

/* 4. grid lanes: cards stay in their column and never stretch past the screen */
#marketGrid,.prod-grid,.market-grid,.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:12px;align-items:stretch}
#marketGrid>*,.prod-grid>*,.market-grid>*{min-width:0;position:relative}
.prod-card,.product-card,.market-card{overflow:hidden;display:flex;flex-direction:column}
.prod-card *,.product-card *{min-width:0}
.prod-title,.prod-name,.prod-card h3,.prod-card h4{overflow-wrap:anywhere}

/* 5. room at the bottom so the floating bar never hides the last card */
body{padding-bottom:calc(24px + var(--mp-safe))}
@media(max-width:900px){body:not(.logged-out){padding-bottom:calc(var(--mp-nav-h) + 20px + var(--mp-safe))!important}}

/* 6. bottom bar: readable labels, one tidy pill */
.bottom-tabbar{gap:0!important;padding:5px!important}
.bottom-tabbar .bt-item,.dsh-bottom-nav .dsh-nav-item{border:0!important;box-shadow:none!important;border-radius:999px!important;min-height:52px;padding:6px 2px!important;gap:2px!important;background:transparent!important;color:#a9bde9!important;font-size:11px!important}
.bottom-tabbar .bt-item .bt-label{display:block;max-width:100%;font-size:11px!important;font-weight:700;line-height:1.1;overflow:visible!important;text-overflow:clip!important;white-space:nowrap}
.bottom-tabbar .bt-item.active{background:rgba(26,109,255,.22)!important;color:#fff!important}
.bottom-tabbar .bt-item svg{width:22px;height:22px}

/* 7. floating buttons: one tidy column above the bar, slide away while scrolling */
.support-fab,#supportFab{right:14px!important;left:auto!important;bottom:calc(var(--mp-nav-h) + 18px + var(--mp-safe))!important;width:50px!important;height:50px!important}
.mx-fab{right:14px!important;left:auto!important;width:40px!important;height:40px!important;font-size:18px!important;opacity:.95}
.support-fab,#supportFab,.mx-fab{transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .2s ease}
html.mv-scrolling .support-fab,html.mv-scrolling #supportFab,html.mv-scrolling .mx-fab{transform:translateX(86px);opacity:0;pointer-events:none}

/* 8. messages come up from the bottom (above the bar), never behind it */
.toast{bottom:calc(var(--mp-nav-h) + 14px + var(--mp-safe))!important;max-width:min(92vw,440px);white-space:normal!important;text-align:center;border-radius:16px!important;padding:12px 18px!important;transform:translateX(-50%) translateY(140%)!important;transition:transform .32s cubic-bezier(.22,1,.36,1)!important;z-index:10050!important}
.toast.show{transform:translateX(-50%) translateY(0)!important}
.dsh-toast,[class*="toast"]:not(.toast){max-width:92vw}

/* 9. pop-ups = bottom sheets on phones (grab handle, rounded top, slide up) */
@keyframes mpSheetUp{from{transform:translate3d(0,100%,0)}to{transform:none}}
@keyframes mpFade{from{opacity:0}to{opacity:1}}
@media(max-width:700px){
  .modal-overlay.open,.ov.show,.ov.open,.overlay.open{align-items:flex-end!important;justify-content:center!important;padding:0!important;animation:mpFade .22s ease both}
  .modal-box,.ov.show .modal,.ov.show .sheet,.ov.open .modal,.ov.open .sheet{width:100%!important;max-width:100%!important;max-height:88vh!important;margin:0!important;border-radius:24px 24px 0 0!important;border-bottom:0!important;padding-bottom:calc(20px + var(--mp-safe))!important;overflow-y:auto;overscroll-behavior:contain;animation:mpSheetUp .34s cubic-bezier(.22,1,.36,1) both!important;box-shadow:0 -18px 50px rgba(0,0,0,.5)}
  .modal-box::before{content:"";display:block;width:44px;height:5px;border-radius:999px;background:rgba(160,185,255,.35);margin:8px auto 4px;position:sticky;top:0}
}
/* the searchable picker sheet keeps its own look, just above everything */
.ks-sheet-overlay{z-index:10060!important}

/* 10. no sideways scroll from wide tables / code */
table{display:block;max-width:100%;overflow-x:auto}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}

@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.dsh-bottom-nav .dsh-nav-item{background:transparent!important;border:0!important;color:#a9bde9!important;font-size:11px!important;min-height:52px}
.dsh-bottom-nav .dsh-nav-item.active{background:rgba(26,109,255,.22)!important;color:#fff!important}
/* support button on dashboard follows the same corner */
.dsh-support-fab,#dshSupportFab{right:14px!important;left:auto!important;bottom:calc(var(--mp-nav-h) + 18px + var(--mp-safe))!important;width:52px!important;height:52px!important}
html.mv-scrolling .dsh-support-fab{transform:translateX(86px);opacity:0;pointer-events:none}
.dsh-support-fab{transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .2s ease}

/* ═══ HAMBURGER BUTTON + MENU DRAWER (upgraded look) ═══════════════════════════ */
html body .mvn-menu-trigger{display:inline-flex!important;align-items:center;justify-content:center;gap:0;width:44px;height:44px;padding:0!important;border-radius:14px!important;
  background:linear-gradient(145deg,rgba(26,109,255,.28),rgba(14,28,78,.9))!important;border:1px solid rgba(110,170,255,.42)!important;color:#fff!important;cursor:pointer;
  box-shadow:0 4px 14px rgba(26,109,255,.28),inset 0 1px 0 rgba(255,255,255,.14);-webkit-tap-highlight-color:transparent}
html body .mvn-menu-trigger:active{transform:scale(.93)}
html body .mvn-menu-trigger .mvn-menu-word{display:none!important}
html body .mvn-menu-trigger .mvn-burger{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;width:20px;height:18px}
html body .mvn-menu-trigger .mvn-burger i{display:block!important;height:2.5px!important;width:20px!important;border-radius:3px;background:#fff!important;transform-origin:center}
html body .mvn-menu-trigger .mvn-burger i:nth-child(2){width:14px!important;background:#19c3ff!important}
html body .mvn-menu-trigger[aria-expanded="true"] .mvn-burger i:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
html body .mvn-menu-trigger[aria-expanded="true"] .mvn-burger i:nth-child(2){opacity:0;transform:scaleX(0)}
html body .mvn-menu-trigger[aria-expanded="true"] .mvn-burger i:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

html body .mvn-menu-backdrop{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
html body .mvn-drawer{width:min(330px,86vw)!important;padding:0 12px calc(26px + env(safe-area-inset-bottom,0px))!important;
  background:radial-gradient(120% 40% at 0% 0%,rgba(26,109,255,.28),transparent 70%),linear-gradient(180deg,#0b1a4d 0%,#070e2e 55%,#050a22 100%)!important;
  border-right:1px solid rgba(110,170,255,.25)!important;border-radius:0 26px 26px 0;box-shadow:18px 0 60px rgba(0,0,0,.55)}
html body .mvn-drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 -12px 10px;padding:calc(18px + env(safe-area-inset-top,0px)) 18px 14px;
  background:linear-gradient(180deg,#0b1a4d 70%,rgba(11,26,77,0));border:0!important}
html body .mvn-drawer-brand{display:flex;flex-direction:column;gap:2px;line-height:1.1}
html body .mvn-drawer-brand b{font-size:21px;font-weight:800;letter-spacing:.2px;background:linear-gradient(90deg,#fff,#19c3ff);-webkit-background-clip:text;background-clip:text;color:transparent}
html body .mvn-drawer-brand small{font-size:11.5px;color:#8fa4d4;font-weight:600;letter-spacing:.3px}
html body .mvn-drawer-close{width:36px;height:36px;border-radius:12px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center}

html body .mvn-drawer-link,html body .mvn-menu-toggle{display:flex!important;align-items:center;gap:12px;width:100%;margin:3px 0;padding:9px 10px!important;border:0!important;border-radius:15px!important;
  background:transparent!important;color:#e8efff!important;font:inherit;font-size:15.5px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer;transition:background .18s,transform .12s}
html body .mvn-drawer-link:hover,html body .mvn-menu-toggle:hover{background:rgba(110,170,255,.12)!important}
html body .mvn-drawer-link:active,html body .mvn-menu-toggle:active{transform:scale(.98)}
html body .mvn-drawer .mvn-ico{flex:0 0 auto;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:19px;
  background:rgba(26,109,255,.18);border:1px solid rgba(110,170,255,.22)}
html body .mvn-drawer-link>span:not(.mvn-ico),html body .mvn-menu-toggle>span:not(.mvn-ico):not(.mvn-chevron){flex:1;min-width:0}
html body .mvn-drawer .mvn-chevron{margin-left:auto;font-size:18px;color:#8fa4d4;line-height:1;transition:transform .25s}
html body .mvn-menu-toggle[aria-expanded="true"] .mvn-chevron{transform:rotate(180deg);color:#19c3ff}
html body .mvn-menu-toggle[aria-expanded="true"]{background:rgba(110,170,255,.1)!important}
html body .mvn-drawer-link.active,html body .mvn-menu-toggle.active{background:linear-gradient(90deg,#1a6dff,#2a86ff)!important;color:#fff!important;box-shadow:0 6px 18px rgba(26,109,255,.4)}
html body .mvn-drawer-link.active .mvn-ico,html body .mvn-menu-toggle.active .mvn-ico{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3)}

html body .mvn-submenu{margin:2px 0 6px 28px;padding-left:10px;border-left:2px solid rgba(110,170,255,.28)}
html body .mvn-sub-link{display:block;margin:2px 0;padding:10px 12px!important;border-radius:11px!important;color:#c3d3ff!important;font-size:14.5px;font-weight:600;text-decoration:none;background:transparent}
html body .mvn-sub-link:hover{background:rgba(110,170,255,.12)!important;color:#fff!important}
html body .mvn-sub-link.active{background:rgba(26,109,255,.35)!important;color:#fff!important}

html body .mvn-drawer-label{margin:16px 6px 6px;padding:0;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#6f87c4}
html body .mvn-drawer #mvnLogout{margin-top:18px;background:rgba(255,64,96,.12)!important;color:#ff8aa0!important;border:1px solid rgba(255,64,96,.32)!important}
html body .mvn-drawer #mvnLogout .mvn-ico{background:rgba(255,64,96,.16);border-color:rgba(255,64,96,.3)}

/* pages with no top bar (Airtime & Data, Websites, Telegram Tick): the menu button sits top-right, above the Back bar */
html body>#mvnMenuTrigger{z-index:10001!important}
html body:has(#mvnBackBar)>#mvnMenuTrigger{left:auto!important;right:12px!important}
