
/* ===== Mega header/footer shared styles ===== */
.mw-header{
  position: sticky; top:0; z-index: 1100;
  background: rgba(247,248,251,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mw-stroke);
  transition: background 180ms var(--mw-ease, cubic-bezier(.2,.8,.2,1)), border-color 180ms var(--mw-ease, cubic-bezier(.2,.8,.2,1));
}
.mw-header.compact{
  background: rgba(247,248,251,.90);
  border-bottom-color: var(--mw-stroke2);
}
.mw-bar{ height: var(--mw-h, 84px); display:flex; align-items:center; transition: height 220ms cubic-bezier(.2,.8,.2,1); }
.mw-header.compact .mw-bar{ height: var(--mw-h2, 70px); }

.mw-wrap{
  width:100%;
  max-width: var(--mw-maxw);
  margin: 0 auto;
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.mw-brand{ display:flex; align-items:center; gap: 12px; min-width: 270px; }
.mw-logo{
  width: 44px; height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.95), transparent 60%),
    linear-gradient(135deg, rgba(109,40,217,.95), rgba(8,145,178,.85));
  box-shadow: 0 16px 30px rgba(109,40,217,.14);
  position:relative;
  overflow:hidden;
  flex: 0 0 auto;
}
.mw-logo:after{
  content:"";
  position:absolute; inset:-30%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.36), transparent);
  transform: rotate(20deg);
  animation: mw_shine 5s cubic-bezier(.2,.8,.2,1) infinite;
}
@keyframes mw_shine{
  0%{ transform: translateX(-45%) rotate(20deg); opacity:0; }
  18%{ opacity:.65; }
  35%{ transform: translateX(65%) rotate(20deg); opacity:0; }
  100%{ transform: translateX(65%) rotate(20deg); opacity:0; }
}

.mw-btxt{ line-height: 1.05; }
.mw-bname{ font-weight: 600; font-size: 16px; letter-spacing: .15px; }
.mw-bsub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--mw-muted);
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
  font-weight: 400;
}
.mw-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.72);
  font-size: 11px;
  color: rgba(18,26,41,.70);
  font-weight: 500;
}

/* Desktop nav */
.mw-nav{ display:flex; align-items:center; gap:6px; }
.mw-nav ul{ list-style:none; padding:0; margin:0; display:flex; align-items:center; gap: 2px; }

.mw-topbtn, .mw-toplink{
  display:flex; align-items:center; gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(18,26,41,.88);
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  transition: background 140ms cubic-bezier(.2,.8,.2,1), border-color 140ms cubic-bezier(.2,.8,.2,1), transform 140ms cubic-bezier(.2,.8,.2,1);
  user-select:none;
  white-space:nowrap;
}
.mw-topbtn:hover, .mw-toplink:hover{
  background: rgba(255,255,255,.72);
  border-color: var(--mw-stroke);
  transform: none;
}
.mw-topbtn[aria-expanded="true"]{
  background: rgba(255,255,255,.86);
  border-color: var(--mw-stroke2);
}
.mw-chev{ width: 14px; height: 14px; transition: transform 150ms cubic-bezier(.2,.8,.2,1); opacity:.9; }
.mw-topbtn[aria-expanded="true"] .mw-chev{ transform: rotate(180deg); }

.mw-actions{ display:flex; align-items:center; gap: 10px; min-width: 320px; justify-content:flex-end; }
.mw-ghost{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 500;
  color: rgba(18,26,41,.84);
  cursor:pointer;
  transition: transform 140ms cubic-bezier(.2,.8,.2,1), background 140ms cubic-bezier(.2,.8,.2,1);
  white-space:nowrap;
}
.mw-ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.85); }
.mw-cta{
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(109,40,217,.22);
  background:
    radial-gradient(110px 60px at 30% 20%, rgba(255,255,255,.65), transparent 60%),
    linear-gradient(135deg, rgba(109,40,217,.92), rgba(8,145,178,.85));
  box-shadow: 0 16px 34px rgba(109,40,217,.12);
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor:pointer;
  transition: transform 140ms cubic-bezier(.2,.8,.2,1), filter 140ms cubic-bezier(.2,.8,.2,1);
  white-space:nowrap;
}
.mw-cta:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Mega */
.mw-mega{
  position:fixed;
  left: 0;
  top: 0;
  width: 100vw;
  transform: translateY(-8px);
  opacity:0;
  pointer-events:none;
  transition: opacity 170ms cubic-bezier(.2,.8,.2,1), transform 170ms cubic-bezier(.2,.8,.2,1);
  z-index: 1200;
}
.mw-mega[data-open="true"]{ opacity:1; pointer-events:auto; transform: translateY(0); }

.mw-panel{
  border-radius: 0 0 22px 22px;
  border-top: 1px solid var(--mw-stroke2);
  border-bottom: 1px solid var(--mw-stroke2);
  border-left: 0;
  border-right: 0;
  background: rgba(255,255,255,.86);
  box-shadow: var(--mw-shadow);
  overflow:hidden;
}
.mw-megaTop{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--mw-stroke);
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(109,40,217,.10), transparent 55%),
    radial-gradient(900px 240px at 85% 20%, rgba(8,145,178,.08), transparent 55%),
    rgba(255,255,255,.86);
}
.mw-megaTitle{ display:flex; align-items:center; gap:10px; min-width: 280px; }
.mw-megaTitle b{ font-size:14px; letter-spacing:.15px; font-weight:600; }
.mw-megaTitle span{ font-size:12px; color: var(--mw-muted); font-weight:400; }

.mw-megaTools{ display:flex; gap:10px; align-items:center; flex:1; justify-content:flex-end; flex-wrap:wrap; }
.mw-search{ position:relative; flex:1; min-width: 300px; max-width: 580px; }
.mw-search input{
  width:100%;
  padding: 11px 12px 11px 40px;
  border-radius: 14px;
  border-top: 1px solid var(--mw-stroke2);
  border-bottom: 1px solid var(--mw-stroke2);
  border-left: 0;
  border-right: 0;
  background: rgba(255,255,255,.92);
  color: rgba(18,26,41,.92);
  font-size: 13px;
  font-weight: 400;
}
.mw-sicon{
  position:absolute; left:12px; top:50%;
  transform: translateY(-50%);
  opacity:.85;
  font-size: 14px;
}
.mw-chips{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.mw-chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 500;
  color: rgba(18,26,41,.78);
  cursor:pointer;
  transition: transform 130ms cubic-bezier(.2,.8,.2,1), background 130ms cubic-bezier(.2,.8,.2,1), border-color 130ms cubic-bezier(.2,.8,.2,1);
}
.mw-chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.92); border-color: var(--mw-stroke2); }
.mw-chip[data-active="true"]{
  background: rgba(8,145,178,.10);
  border-color: rgba(8,145,178,.25);
  color: rgba(18,26,41,.88);
}

.mw-megaBody{
  display:grid;
  grid-template-columns: 340px 1fr;
  min-height: 560px;
}
.mw-side{
  padding: 14px;
  border-right: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.76);
  display:flex; flex-direction:column; gap:12px;
}
.mw-card2{
  border-radius: 18px;
  border: 1px solid var(--mw-stroke);
  background:
    radial-gradient(700px 280px at 25% 10%, rgba(109,40,217,.08), transparent 55%),
    radial-gradient(700px 280px at 85% 20%, rgba(8,145,178,.06), transparent 55%),
    rgba(255,255,255,.86);
  box-shadow: var(--mw-shadow2);
  padding: 14px;
}
.mw-card2 h3{ margin:0; font-size:14px; letter-spacing:.12px; font-weight:600; }
.mw-card2 p{ margin:8px 0 12px; color: var(--mw-muted); font-size:12px; line-height:1.5; font-weight:400; }
.mw-row{ display:flex; gap:10px; flex-wrap:wrap; }
.mw-smallBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border-top: 1px solid var(--mw-stroke2);
  border-bottom: 1px solid var(--mw-stroke2);
  border-left: 0;
  border-right: 0;
  background: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 500;
  color: rgba(18,26,41,.84);
  cursor:pointer;
  transition: transform 130ms cubic-bezier(.2,.8,.2,1), background 130ms cubic-bezier(.2,.8,.2,1), border-color 130ms cubic-bezier(.2,.8,.2,1);
  white-space:nowrap;
}
.mw-smallBtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.96); }

.mw-meta{ display:flex; gap:8px; flex-wrap:wrap; color: rgba(18,26,41,.50); font-size:12px; align-items:center; font-weight:400; }

.mw-gridWrap{ padding: 14px; overflow:auto; max-height: 700px; background: rgba(255,255,255,.86); }
.mw-cols{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.mw-sectionBox{
  border-radius: 18px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.78);
  overflow:hidden;
}
.mw-sectionHead{
  padding: 10px 10px 9px;
  border-bottom: 1px solid var(--mw-stroke);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  background: rgba(255,255,255,.85);
}
.mw-sectionHead b{
  font-size: 12px;
  letter-spacing:.22px;
  text-transform: uppercase;
  color: rgba(18,26,41,.70);
  font-weight: 600;
}
.mw-count{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.92);
  color: rgba(18,26,41,.66);
  font-weight: 500;
}
.mw-links{ display:grid; gap: 6px; padding: 10px; }
.mw-item{
  display:flex; gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.88);
  transition: background 130ms cubic-bezier(.2,.8,.2,1), border-color 130ms cubic-bezier(.2,.8,.2,1), transform 130ms cubic-bezier(.2,.8,.2,1);
  min-height: 44px;
}
.mw-item:hover{
  background: rgba(255,255,255,.98);
  border-color: var(--mw-stroke2);
  transform: none;
}
.mw-ico{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  border: 1px solid var(--mw-stroke);
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255,255,255,.90), transparent 65%),
    linear-gradient(135deg, rgba(109,40,217,.18), rgba(8,145,178,.14));
  box-shadow: 0 10px 18px rgba(18,26,41,.06);
  flex: 0 0 auto;
}
.mw-txt{ min-width:0; }
.mw-t{ margin:0; font-size:13px; font-weight:500; line-height:1.2; color: rgba(18,26,41,.90); }
.mw-d{ margin-top:3px; font-size:12px; color: var(--mw-muted); line-height:1.3; font-weight:400; }

/* Overlay + mobile drawer */
.mw-overlay{
  position:fixed; inset:0;
  background: rgba(18,26,41,0);
  opacity:0;
  pointer-events:none;
  transition: opacity 160ms cubic-bezier(.2,.8,.2,1);
  z-index: 1150;
}
.mw-overlay[data-open="true"]{ opacity:1; pointer-events:auto; }

.mw-hamb{
  display:none;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.70);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  transition: background 140ms cubic-bezier(.2,.8,.2,1), transform 140ms cubic-bezier(.2,.8,.2,1);
}
.mw-hamb:hover{ background: rgba(255,255,255,.92); transform: translateY(-1px); }
.mw-hamb span{ width:18px; height:2px; background: rgba(18,26,41,.86); display:block; position:relative; border-radius:2px; }
.mw-hamb span:before,.mw-hamb span:after{
  content:""; position:absolute; left:0; width:18px; height:2px;
  background: rgba(18,26,41,.86); border-radius:2px;
}
.mw-hamb span:before{ top:-6px; }
.mw-hamb span:after{ top:6px; }

.mw-drawer{
  position:fixed; top:0; right:0; height:100%;
  width: min(480px, 94vw);
  background: rgba(255,255,255,.92);
  border-left: 1px solid var(--mw-stroke2);
  box-shadow: var(--mw-shadow);
  transform: translateX(105%);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  z-index: 1300;
  display:flex;
  flex-direction:column;
}
.mw-drawer[data-open="true"]{ transform: translateX(0); }
.mw-dHead{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px;
  border-bottom: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.92);
}
.mw-dTitle{ display:flex; align-items:center; gap: 10px; }
.mw-dTitle .mw-logo{ width:36px; height:36px; border-radius:12px; }
.mw-close{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.80);
  cursor:pointer;
}
.mw-dBody{ padding: 12px; overflow:auto; }
.mw-mnav{ display:grid; gap: 10px; }
.mw-mblk{
  border-radius: 18px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.86);
  overflow:hidden;
}
.mw-mblk > button{
  width:100%;
  background:transparent;
  border:0;
  color: rgba(18,26,41,.92);
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
}
.mw-mblk[data-open="true"] svg{ transform: rotate(180deg); }
.mw-msub{
  max-height: 0;
  overflow:hidden;
  transition: max-height 220ms cubic-bezier(.2,.8,.2,1);
  padding: 0 12px;
  display:grid;
  gap: 8px;
}
.mw-mblk[data-open="true"] .mw-msub{ max-height: 1800px; padding-bottom: 12px; }
.mw-msub a{
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 500;
  color: rgba(18,26,41,.86);
}
.mw-dFoot{
  padding:12px;
  border-top:1px solid var(--mw-stroke);
  display:flex;
  gap:10px;
  background:rgba(255,255,255,.92);
}

/* Footer */
.mw-footer{
  margin-top: 60px;
  border-top: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.78);
}
.mw-footerTop{
  padding: 34px 0 28px;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}
.mw-footerBrand{ display:flex; flex-direction:column; gap: 12px; }
.mw-footerBrandLink{ min-width: auto; }
.mw-footerNote{
  margin:0;
  color: var(--mw-muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
.mw-footerCtas{ display:flex; gap: 10px; flex-wrap:wrap; }

.mw-footerNav{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.mw-fCol{
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.86);
  border-radius: 18px;
  overflow:hidden;
}
.mw-fHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.92);
}
.mw-fHead b{
  font-size: 12px;
  letter-spacing:.22px;
  text-transform: uppercase;
  color: rgba(18,26,41,.70);
  font-weight: 600;
}
.mw-fList{
  padding: 12px;
  display:grid;
  gap: 8px;
}
.mw-fList a{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 500;
  color: rgba(18,26,41,.86);
}
.mw-fList a:hover{ background: rgba(255,255,255,.98); }

.mw-footerBottom{
  border-top: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.90);
}
.mw-footerBottomInner{
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(18,26,41,.64);
  font-size: 12px;
  font-weight: 400;
}
.mw-footerLinks{ display:flex; gap: 12px; flex-wrap:wrap; }
.mw-footerLinks a{ color: rgba(18,26,41,.64); }
.mw-footerLinks a:hover{ color: rgba(18,26,41,.92); }

@media (max-width: 1100px){
  .mw-cols{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mw-megaBody{ grid-template-columns: 320px 1fr; }
  .mw-brand{ min-width: auto; }
  .mw-actions{ min-width: auto; }
  .mw-footerTop{ grid-template-columns: 1fr; }
  .mw-footerNav{ grid-template-columns: 1fr; }
}
@media (max-width: 980px){
  .mw-nav{ display:none; }
  .mw-hamb{ display:inline-flex; }
}
@media (max-width: 760px){
  .mw-mega{ display:none !important; }
  .mw-cols{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Hybrid width: full-width mega background, constrained content */
.mw-panelInner{
  max-width: var(--mw-maxw);
  margin: 0 auto;
}

/* Close button inside mega */
.mw-megaClose{
  width: 38px; height: 38px;
  border-radius: 14px;
  border: 1px solid var(--mw-stroke);
  background: rgba(255,255,255,.84);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  color: rgba(18,26,41,.78);
  transition: transform 140ms cubic-bezier(.2,.8,.2,1), background 140ms cubic-bezier(.2,.8,.2,1);
}
.mw-megaClose:hover{
  transform: none;
  background: rgba(255,255,255,.96);
}

/* Hover bridge: creates a tiny invisible hit-area above the panel so pointer can travel without losing hover */
.mw-megaBridge{
  position:absolute;
  left:0; right:0;
  top:-10px;
  height:10px;
}
