/* =========================================================
   MUNCASTER SHELL PATCH (CSS ONLY)
   - Fixes top bar layout (clean + stable)
   - Adds Featured sections styling
   - Adds Mobile bottom navigation styling
   - Polishes sidebar items (keeps your existing structure)
   ========================================================= */

/* ---------------------------
   SIDEBAR POLISH
--------------------------- */
.mc-sidebar{
  border-right: 2px solid rgba(0,120,215,.14) !important;
  box-shadow: 8px 0 18px rgba(15,23,42,.06) !important;
  background: #ffffff !important;
}

.mc-sidebar::before{
  content:"";
  display:block;
  height:10px;
  margin: -12px -10px 10px;
  background: linear-gradient(90deg, #0078d7, #00b050);
  border-radius: 0 0 14px 14px;
  opacity: .95;
}

.mc-nav-section{
  padding: 10px 12px 6px !important;
  color: #334155 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .14em !important;
  border-left: 4px solid rgba(0,176,80,.55);
  margin: 10px 6px 6px;
}

.mc-nav-item{
  border: 1px solid rgba(2,6,23,.06) !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 12px 12px !important;
  margin: 6px 6px !important;
  display:flex;
  align-items:center;
  gap:10px;
}

.mc-nav-item:hover{
  background: linear-gradient(90deg, rgba(0,120,215,.08), rgba(0,176,80,.06)) !important;
  border-color: rgba(0,120,215,.18) !important;
}

.mc-nav-ic{
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.12) !important;
  font-size: 16px !important;
  flex: 0 0 34px;
}

.mc-nav-item.active{
  background: linear-gradient(90deg, rgba(0,120,215,.12), rgba(0,176,80,.10)) !important;
  border-color: rgba(0,176,80,.28) !important;
  box-shadow: inset 4px 0 0 #00b050, 0 10px 22px rgba(15,23,42,.06) !important;
  color: #0078d7 !important;
}

.mc-nav-divider{
  margin: 14px 12px !important;
  height: 1px !important;
  background: rgba(2,6,23,.10) !important;
}

/* ---------------------------
   TOP BAR FIX (YOUR EXISTING HTML)
   Works with:
   .mc-appbar .mc-brand .mc-top-search .mc-appbar-actions
--------------------------- */
.mc-appbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 16px;
  background:#ffffff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

/* Brand left */
.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-text{ line-height:1.1; }
.mc-brand-name{ font-weight:950; color:#0f172a; }
.mc-brand-tagline{ font-weight:650; color:#64748b; font-size:12px; }

/* Search center */
.mc-top-search{
  flex:1;
  max-width:620px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f1f5f9;
  border-radius:999px;
  padding:10px 14px;
  border: 1px solid rgba(2,6,23,.06);
}

.mc-top-search-ic{
  color:#0078d7 !important;
  opacity:1 !important;
}

.mc-top-search input{
  border:none;
  outline:none;
  background:transparent;
  width:100%;
  font-weight:700;
  color:#0f172a;
}

.mc-top-search input::placeholder{
  color:#64748b;
  font-weight:650;
}

/* Right actions */
.mc-appbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.mc-action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.12);
  text-decoration:none;
}

/* ---------------------------
   FEATURED SECTIONS (below modules)
   Use the HTML I gave you:
   .featured-section > h3
   .featured-row > .featured-pill
--------------------------- */
.featured-section{
  margin-top:26px;
}

.featured-section h3{
  font-size:16px;
  font-weight:900;
  margin:0 0 10px;
  color:#0f172a;
}

.featured-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:6px;
  -webkit-overflow-scrolling: touch;
}

.featured-pill{
  white-space:nowrap;
  padding:10px 16px;
  background:#e2e8f0;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  flex-shrink:0;
  border: 1px solid rgba(2,6,23,.06);
}

/* ---------------------------
   MOBILE BOTTOM NAV
   Works with the <nav class="mc-bottom-nav"> you added in mc-shell.html
--------------------------- */
.mc-bottom-nav{
  display:none;
}

@media(max-width:768px){
  .mc-bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:64px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.08);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-align:center;
    font-size:11px;
    font-weight:800;
    color:#475569;
    text-decoration:none;
    min-width:56px;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:18px;
    line-height:1;
    margin-bottom:2px;
  }

  .mc-bottom-nav small{
    display:block;
    font-size:10px;
    font-weight:800;
  }

  .mc-bottom-nav .mc-center{
    background:linear-gradient(135deg,#0078d7,#00b050);
    color:#fff;
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin-top:-20px;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 26px rgba(2,6,23,.18);
  }

  /* prevent content hiding behind bottom nav */
  .mc-page{
    padding-bottom:86px !important;
  }
}

/* Optional: hide any old account popovers if they exist */
#mcAccountBtn,
#mcAccountPop{
  display:none !important;
}
/* ===== TOP BAR tighten + align ===== */
.mc-appbar{
  justify-content: space-between;
}

.mc-top-search{
  max-width: 720px;           /* slightly wider but controlled */
  width: 100%;
}

@media(min-width: 1024px){
  .mc-top-search{
    margin-left: 18px;
    margin-right: 18px;
  }
}
/* =========================
   POPULAR SECTION (styled)
   ========================= */
.mc-popular{
  margin-top: 26px;
  padding-bottom: 10px;
}

.mc-popular-head h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}
.mc-popular-head p{
  margin: 0 0 14px;
  color:#64748b;
  font-weight: 650;
}

.mc-popular-title{
  font-weight: 950;
  color:#0f172a;
  margin: 12px 0 10px;
}

.mc-hscroll{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.mc-chipcard{
  flex: 0 0 240px;
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 12px;
  border-radius: 18px;
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  text-decoration:none;
}

.mc-chipcard:hover{
  border-color: rgba(0,120,215,.20);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

.mc-chip-ic{
  width:44px;
  height:44px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.12);
  font-size: 18px;
  flex: 0 0 44px;
}

.mc-chip-h{
  font-weight: 950;
  color:#0f172a;
  line-height:1.15;
}

.mc-chip-s{
  font-weight: 650;
  color:#64748b;
  font-size: 12px;
  margin-top: 3px;
}

.mc-popular-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

@media(max-width:860px){
  .mc-popular-grid{ grid-template-columns: 1fr; }
}

.mc-popcard{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 14px;
  border-radius: 18px;
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  text-decoration:none;
}

.mc-pop-ic{
  width:46px;
  height:46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,176,80,.10);
  border: 1px solid rgba(0,176,80,.14);
  font-size: 18px;
  flex: 0 0 46px;
}

.mc-pop-h{
  font-weight: 950;
  color:#0f172a;
  margin-bottom: 4px;
}

.mc-pop-s{
  font-weight: 650;
  color:#64748b;
  font-size: 12px;
}
/* =========================
   TOP BAR: SIMPLE (NO SEARCH)
   ========================= */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  padding:10px 14px;
  background:#ffffff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-name{
  font-weight:950;
  color:#0f172a;
  line-height:1.1;
}

.mc-brand-tagline{
  font-weight:650;
  color:#64748b;
  font-size:12px;
  line-height:1.1;
}

@media(max-width:720px){
  .mc-brand-tagline{ display:none; }
}
/* =========================
   MOBILE LAYOUT FIX: kill sidebar width + fill screen
   ========================= */
@media (max-width: 768px){
  /* completely remove sidebar from layout */
  .mc-sidebar{
    display:none !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
  }

  /* body should not reserve space for sidebar */
  .mc-body{
    display:block !important;
  }

  /* page area must take full width */
  .mc-page{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  /* prevent horizontal scrolling */
  html, body{
    overflow-x:hidden !important;
  }
}
/* =========================
   TOP BAR: compact + clean
   ========================= */
.mc-appbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

@media (max-width:768px){
  .mc-brand-tagline{ display:none !important; }
  .mc-brand-name{ font-size:14px !important; }
  .mc-action-btn{
    width:40px !important;
    height:40px !important;
    border-radius:14px !important;
  }
}
/* =========================
   BOTTOM NAV: clean + consistent
   ========================= */
@media(max-width:768px){
  .mc-bottom-nav{
    height:66px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    background:#fff !important;
    border-top:1px solid rgba(2,6,23,.10) !important;
  }

  .mc-bottom-nav a{
    color:#64748b !important;
    font-weight:800 !important;
    text-decoration:none !important;
    min-width:64px !important;
  }

  .mc-bottom-nav a span{
    font-size:20px !important;
    margin-bottom:3px !important;
  }

  .mc-bottom-nav a small{
    font-size:10px !important;
    letter-spacing:.02em !important;
  }

  /* active state */
  .mc-bottom-nav a.active{
    color:#0078d7 !important;
  }

  /* center button */
  .mc-bottom-nav .mc-center{
    margin-top:-22px !important;
  }

  /* make sure content is not hidden behind nav */
  .mc-page{
    padding-bottom: 96px !important;
  }
}
/* =========================
   TOP BAR (clean, finished)
   ========================= */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:#fff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 180px;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-name{
  font-weight:950;
  color:#0f172a;
  line-height:1.05;
}
.mc-brand-tagline{
  font-weight:650;
  color:#64748b;
  font-size:12px;
  line-height:1.05;
}

.mc-appbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

/* Search pill in header */
.mc-search-pill{
  flex: 1 1 auto;
  max-width: 640px;
  display:flex;
  align-items:center;
  gap:10px;
  border:none;
  cursor:pointer;
  background:#f1f5f9;
  border:1px solid rgba(2,6,23,.08);
  border-radius:999px;
  padding:10px 14px;
  color:#334155;
  font-weight:800;
}

.mc-search-ic{
  width:30px;
  height:30px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  flex: 0 0 30px;
}

.mc-search-tx{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Hide tagline on small screens, keep header compact */
@media(max-width:768px){
  .mc-brand-tagline{ display:none; }
  .mc-brand{ min-width: auto; }
  .mc-search-pill{ max-width: none; }
  .mc-search-tx{ display:none; }  /* icon-only search on mobile */
  .mc-search-pill{ padding:10px 12px; }
}
.mc-nav-item,
.mc-nav-item * {
  cursor: pointer;
}
/* =========================
   MOBILE LAYOUT FIX
   - remove huge left spacing
   - hide sidebar on phones
   - make page full width
   ========================= */
@media (max-width: 768px) {
  .mc-body{
    display:block !important;
  }

  .mc-sidebar{
    display:none !important;
  }

  .mc-page{
    width:100% !important;
    margin-left:0 !important;
    padding:16px !important;
    padding-bottom:92px !important; /* space for bottom nav */
  }

  /* keep top bar simple + aligned */
  .mc-appbar{
    padding:10px 12px !important;
    gap:10px !important;
  }

  .mc-brand-text .mc-brand-tagline{
    display:none !important; /* optional: cleaner on mobile */
  }
}

/* =========================
   MOBILE BOTTOM NAV - CLEAN
   ========================= */
.mc-bottom-nav{
  display:none;
}

@media (max-width: 768px){
  .mc-bottom-nav{
    position:fixed;
    left:0; right:0; bottom:0;
    height:70px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.10);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-decoration:none;
    text-align:center;
    font-size:11px;
    font-weight:800;
    color:#475569;
    min-width:56px;
    cursor:pointer;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:20px;
    line-height:1;
    margin-bottom:4px;
  }

  /* Center CBS button */
  .mc-bottom-nav .mc-center{
    width:54px;
    height:54px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0078d7,#00b050);
    color:#fff;
    margin-top:-24px;
    box-shadow:0 14px 26px rgba(2,6,23,.18);
  }
  .mc-bottom-nav .mc-center span{
    margin:0;
    font-size:22px;
  }
}
/* =========================
   MOBILE BOTTOM NAV - CLEAN 6 TABS
   ========================= */
.mc-bottom-nav{
  display:none;
}

@media (max-width: 768px){
  .mc-bottom-nav{
    position:fixed;
    left:0; right:0; bottom:0;
    height:70px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.10);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-decoration:none;
    text-align:center;
    font-size:10.5px;
    font-weight:800;
    color:#475569;
    min-width:52px;
    cursor:pointer;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:20px;
    line-height:1;
    margin-bottom:4px;
  }

  /* IMPORTANT: kill the big center button if any old class remains */
  .mc-bottom-nav .mc-center{
    background:none !important;
    box-shadow:none !important;
    width:auto !important;
    height:auto !important;
    border-radius:0 !important;
    margin-top:0 !important;
    color:inherit !important;
    display:block !important;
  }

  /* prevent content hiding behind tabs */
  .mc-page{
    padding-bottom:92px !important;
  }
}
/* === HARD-LOCK bottom nav styling across ALL modules === */
.mc-bottom-nav a{
  text-decoration: none !important;
  color: #475569 !important;
}

.mc-bottom-nav small{
  display:block !important;
  line-height: 1.1 !important;
}

.mc-bottom-nav span{
  display:block !important;
  line-height: 1 !important;
}

/* stop any global link styles from modules */
.mc-bottom-nav a:link,
.mc-bottom-nav a:visited,
.mc-bottom-nav a:hover,
.mc-bottom-nav a:active{
  text-decoration:none !important;
}
/* =========================================================
   HARD LOCK: universal appbar across ALL modules
   (prevents module CSS from messing your header)
   ========================================================= */
.mc-shell .mc-appbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:10px 12px !important;
  background:#ffffff !important;
  border-bottom:1px solid rgba(2,6,23,.08) !important;
}

.mc-shell .mc-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-decoration:none !important;
}

.mc-shell .mc-search-pill{
  flex: 1 1 auto !important;
  max-width: 720px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  background:#f1f5f9 !important;
  border:1px solid rgba(2,6,23,.08) !important;
  border-radius:999px !important;
  padding:10px 14px !important;
  cursor:pointer !important;
}

.mc-shell .mc-search-ic{
  width:30px !important;
  height:30px !important;
  border-radius:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  flex: 0 0 30px !important;
}

.mc-shell .mc-search-tx{
  font-weight:800 !important;
  color:#334155 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.mc-shell .mc-appbar-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

@media(max-width:768px){
  .mc-shell .mc-brand-tagline{ display:none !important; }
  .mc-shell .mc-search-tx{ display:none !important; } /* icon-only on mobile */
}
/* Re-apply the exact header layout */
.mc-shell .mc-appbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  gap:12px !important;
  padding:10px 14px !important;
  background:#fff !important;
  border-bottom:1px solid rgba(2,6,23,.08) !important;
}

.mc-shell .mc-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-decoration:none !important;
  color:inherit !important;
}

.mc-shell .mc-brand-logo{
  width:36px !important;
  height:36px !important;
  object-fit:contain !important;
}

.mc-shell .mc-brand-name{
  font-weight:950 !important;
  color:#0f172a !important;
}

.mc-shell .mc-brand-tagline{
  font-weight:650 !important;
  color:#64748b !important;
  font-size:12px !important;
}

.mc-shell .mc-appbar-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.mc-shell .mc-action-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:40px !important;
  height:40px !important;
  border-radius:12px !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.12) !important;
  text-decoration:none !important;
}
:root{
  --mc-blue:#0078d7;
  --mc-green:#00b050;
  --mc-ink:#0f172a;
}

.mc-topbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  background: linear-gradient(90deg, rgba(0,120,215,.10), rgba(0,176,80,.08));
  border-bottom:1px solid rgba(15,23,42,.10);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 220px;
}

.mc-logo{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:10px;
}

.mc-brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.mc-brand-name{ font-weight:900; color:var(--mc-ink); font-size:18px; }
.mc-brand-tag{ font-size:12px; font-weight:700; color:rgba(15,23,42,.60); }

.mc-top-search{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  padding:10px 12px;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}

.mc-search-input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
  background:transparent;
}

.mc-search-ico-btn,
.mc-search-go{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:18px;
}

.mc-top-actions{ display:flex; gap:10px; align-items:center; }

.mc-icon-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 18px rgba(15,23,42,.06);
  font-size:18px;
}
/* ===== TOP BAR: make it look like a real app ===== */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 9999;

  height: 72px;
  padding: 10px 18px;

  background: linear-gradient(90deg, #ffffff 0%, #f6fbff 55%, #f2fff8 100%);
  border-bottom: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 10px 26px rgba(2,6,23,0.06);
}

/* Brand area */
.mc-brand{
  gap: 12px;
  align-items: center;
  min-width: 250px;
}

/* FIX: logo size + crispness */
.mc-brand-logo{
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,120,215,0.12);
  box-shadow: 0 6px 16px rgba(2,6,23,0.08);
}

/* Make “Muncaster” feel like a brand */
.mc-brand-name{
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  color: #0b2a4a;
  line-height: 1.05;
}
.mc-brand-tagline{
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(15,23,42,0.65);
  margin-top: 2px;
}

/* Search pill: tighter + stronger */
.mc-search-pill{
  max-width: 720px;
  height: 46px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0,120,215,0.16);
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mc-search-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(0,176,80,0.28);
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}
.mc-search-ic{
  font-size: 18px;
}
.mc-search-tx{
  font-weight: 700;
  color: rgba(15,23,42,0.72);
}

/* Actions: make buttons match brand */
.mc-appbar-actions .mc-action-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,120,215,0.14);
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  display: grid;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mc-appbar-actions .mc-action-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}

/* Mobile: reduce height + keep it clean */
@media (max-width: 860px){
  .mc-appbar{
    height: 64px;
    padding: 8px 12px;
  }
  .mc-brand-text{ display:none; } /* keep logo only */
  .mc-search-pill{
    height: 42px;
  }
}
/* ===============================
   MUNCASTER TOP BAR (PREMIUM)
   - Clean, branded, not loud
================================ */

/* Core tokens */
:root{
  --mc-blue:#0078d7;
  --mc-green:#00b050;
  --mc-ink:#0f172a;
  --mc-muted:#64748b;
  --mc-line:rgba(15,23,42,.10);
  --mc-card:#ffffff;
  --mc-bg:#f4f7fb;
}

/* Appbar container: subtle tint + depth */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(0,120,215,.06), rgba(0,176,80,.03));
  border-bottom: 1px solid var(--mc-line);
  backdrop-filter: blur(10px);
}

/* Branded accent underline (thin, classy) */
.mc-appbar::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:3px;
  background: linear-gradient(90deg, var(--mc-blue), var(--mc-green));
  opacity:.9;
}

/* Brand area: tighter + stronger */
.mc-brand{
  gap: 10px !important;
}
.mc-brand-name{
  font-weight: 900 !important;
  letter-spacing: .2px;
  color: var(--mc-ink) !important;
}
.mc-brand-tagline{
  color: var(--mc-muted) !important;
  font-weight: 600 !important;
}

/* Logo: “app icon” treatment */
.mc-brand-logo{
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid rgba(0,120,215,.25) !important;
  box-shadow:
    0 10px 22px rgba(2,6,23,.10),
    0 0 0 4px rgba(0,120,215,.06);
  object-fit: contain;
  padding: 6px;
}

/* Search pill: clean white with Muncaster glow ring */
.mc-search-pill{
  background: var(--mc-card) !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(2,6,23,.10) !important;
  position: relative;
  overflow: visible;
}

/* “Glow ring” behind search (premium look) */
.mc-search-pill::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,120,215,.35), rgba(0,176,80,.30));
  filter: blur(10px);
  opacity: .65;
  z-index:-1;
}

/* Search icon bubble */
.mc-search-ic{
  width: 36px;
  height: 36px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,120,215,.12), rgba(0,176,80,.10));
  border: 1px solid rgba(0,120,215,.16);
}

/* Actions: consistent, not “random emojis in boxes” */
.mc-action-btn{
  border-radius: 14px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: rgba(255,255,255,.70) !important;
  box-shadow: 0 10px 22px rgba(2,6,23,.10) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mc-action-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,120,215,.35) !important;
  box-shadow: 0 14px 28px rgba(2,6,23,.14) !important;
}

/* Optional: make the action row feel “branded” */
.mc-appbar-actions{
  gap: 10px !important;
}

/* Mobile: reduce heaviness */
@media (max-width: 860px){
  .mc-search-pill{ box-shadow: 0 10px 18px rgba(2,6,23,.10) !important; }
  .mc-search-pill::after{ opacity:.45; filter: blur(12px); }
}
/* === FIX: show hand cursor (not I-beam) + prevent text caret on appbar actions === */
.mc-appbar a,
.mc-appbar button,
.mc-appbar .mc-action-btn,
.mc-appbar .mc-search-pill,
.mc-appbar .mc-brand{
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* If any icon is wrapped in spans, kill caret behavior there too */
.mc-appbar *{
  caret-color: transparent;
}

/* Prevent drag/select behavior on icons/text inside the buttons */
.mc-appbar a *,
.mc-appbar button *{
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Optional: if your action buttons are anchors, make them feel like buttons */
.mc-action-btn{
  text-decoration: none;
}
/* ===============================
   UNIVERSAL PAGE ENTER (JS-forced)
   =============================== */

@keyframes mcPageEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* base state (safe) */
.mc-page-enter{
  opacity: 1;              /* IMPORTANT: never hide by default */
  transform: none;
}

/* animated state (only when JS adds .mc-in) */
.mc-page-enter.mc-in{
  animation: mcPageEnter .95s cubic-bezier(.2,.9,.2,1) both;
  will-change: transform, opacity;
}

/* stop old hero-only animation inside the shell so it doesn't double animate */
.mc-shell #mcPageSlot .hero-section,
.mc-shell #mcPageSlot .projects-hero,
.mc-shell #mcPageSlot .landing-hero,
.mc-shell #mcPageSlot .category-hero{
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .mc-page-enter.mc-in{ animation: none !important; }
}
/* =========================================================
   MOBILE GRID OVERRIDES (GLOBAL)
   Put this at the VERY BOTTOM of shell-patch.css
   ========================================================= */

/* ✅ HOME: modules 2 columns on phone */
@media (max-width: 640px){
  .modules{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
  }
}

/* ✅ SERVICES: 2 columns on phone */
@media (max-width: 640px){
  .service-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }

  .service-card{
    border-radius:14px !important;
    padding:10px !important;
    min-height:130px !important;
  }
}

@media (max-width: 380px){
  .service-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .service-card{
    padding:9px !important;
  }
}

/* ✅ VEHICLES: 2 columns on phone (cards are heavy) */
@media (max-width: 640px){
  .veh-list{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }
}

/* ✅ CBS PRODUCTS: 3 columns on phone */
@media (max-width: 640px){
  .cbs-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px !important;
  }
}

/* ✅ Big phones: make CBS 4 columns */
@media (min-width: 641px) and (max-width: 820px){
  .cbs-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== HOME MODULE GRID: 2 columns on mobile ===== */
.modules{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 420px){
  .modules{ grid-template-columns:1fr; }
}
/* =========================
   FEATURED IN MOTION (HOME)
   ========================= */
.mc-featured-motion{
  margin-top: 22px;
}

.mc-featured-head h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}
.mc-featured-head p{
  margin: 0 0 12px;
  color:#64748b;
  font-weight: 650;
}

/* horizontal snap row (premium “carousel”) */
.mc-motion-row{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* card sizing: shows “peek” of next card */
.mc-motion-card{
  position:relative;
  flex: 0 0 420px;          /* desktop */
  height: 240px;
  border-radius: 22px;
  overflow:hidden;
  scroll-snap-align: start;
  text-decoration:none;
  border:1px solid rgba(2,6,23,.10);
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  background:#000;
}

@media(max-width:860px){
  .mc-motion-card{
    flex: 0 0 86vw;          /* mobile: big, immersive */
    height: 220px;
  }
}

.mc-motion-vid{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

/* gradient overlay + text */
.mc-motion-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
  padding:16px 16px 14px;
  background: linear-gradient(180deg,
    rgba(2,6,23,0) 30%,
    rgba(2,6,23,.45) 65%,
    rgba(2,6,23,.72) 100%);
}

.mc-motion-pill{
  display:inline-flex;
  align-self:flex-start;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
}

.mc-motion-title{
  color:#ffffff;
  font-weight:950;
  font-size:16px;
  line-height:1.2;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.mc-motion-cta{
  color:#e8f3ff;
  font-weight:900;
  font-size:13px;
  opacity:.95;
}

/* smooth hover */
@media(hover:hover){
  .mc-motion-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(15,23,42,.16);
    border-color: rgba(0,120,215,.22);
  }
}
/* =========================================================
   HOME: "Explore Muncaster in Motion" (Premium video carousel)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-featured-motion{
  margin-top: 22px;
  padding: 18px 14px 6px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,120,215,.07), rgba(0,176,80,.05));
  border: 1px solid rgba(2,6,23,.06);
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}

.mc-featured-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mc-featured-head h3{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}

.mc-featured-head p{
  margin:0;
  font-size: 12.5px;
  font-weight: 700;
  color:#64748b;
}

/* Horizontal row */
.mc-motion-row{
  display:flex;
  gap: 14px;
  overflow-x:auto;
  padding: 8px 6px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* make scrollbar subtle */
.mc-motion-row::-webkit-scrollbar{ height: 8px; }
.mc-motion-row::-webkit-scrollbar-thumb{
  background: rgba(2,6,23,.12);
  border-radius: 999px;
}
.mc-motion-row::-webkit-scrollbar-track{
  background: rgba(2,6,23,.06);
  border-radius: 999px;
}

/* Cards */
.mc-motion-card{
  position: relative;
  flex: 0 0 360px;              /* desktop width */
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: start;

  text-decoration: none !important; /* kill blue underline */
  color: inherit !important;

  background: #0b1220;          /* nice fallback if video missing */
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.mc-motion-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,176,80,.28);
  box-shadow: 0 26px 60px rgba(15,23,42,.18);
}

/* Video fills the card */
.mc-motion-vid{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay for readability */
.mc-motion-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(2,6,23,0) 40%, rgba(2,6,23,.72) 100%);
}

.mc-motion-pill{
  align-self:flex-start;
  font-size: 12px;
  font-weight: 950;
  color:#0f172a;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,120,215,.18);
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(2,6,23,.16);
  margin-bottom: 10px;
}

.mc-motion-title{
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 12px 24px rgba(0,0,0,.35);
  margin-bottom: 8px;
  max-width: 92%;
}

.mc-motion-cta{
  font-size: 12.5px;
  font-weight: 950;
  color: #ffffff;
  opacity: .95;
}

/* “Swipe” hint: make next card peek slightly */
@media (min-width: 860px){
  .mc-motion-row{ padding-right: 60px; }
}

/* Responsive sizes */
@media (max-width: 860px){
  .mc-motion-card{
    flex: 0 0 320px;
    height: 210px;
  }
}
@media (max-width: 520px){
  .mc-featured-motion{ padding: 14px 12px 4px; }
  .mc-motion-card{
    flex: 0 0 86%;
    height: 200px;
  }
  .mc-featured-head{
    flex-direction: column;
    align-items:flex-start;
  }
}
/* ✅ HOME: keep the top search pill (so appbar never looks empty) */
.mc-route-home .mc-shell .mc-search-pill{
  display:flex !important;
}

/* ✅ HOME: hide the hero search bar (avoid duplicate search) */
.mc-route-home .mc-home-search{
  display:none !important;
}

/* ✅ HOME: make the appbar pill feel like the “main” search (premium) */
.mc-route-home .mc-shell .mc-search-pill{
  max-width: 760px !important;
  margin: 0 auto !important;
}
/* Keep brand/actions tight so the center pill looks intentional */
.mc-shell .mc-brand{
  min-width: 210px !important;
}
.mc-shell .mc-appbar-actions{
  margin-left: 0 !important;
}
/* =========================
   SEARCH MODAL (universal)
   ========================= */
.mc-search-modal{ display:none; }
.mc-search-modal.open{ display:block; }

.mc-search-backdrop{
  position:fixed; inset:0;
  background:rgba(2,6,23,.45);
  z-index: 99980;
}

.mc-search-panel{
  position:fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  background:#fff;
  border:1px solid rgba(2,6,23,.10);
  border-radius:18px;
  box-shadow: 0 20px 60px rgba(2,6,23,.25);
  z-index: 99990;
  padding: 14px;
}

.mc-search-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:10px;
}
.mc-search-title{ font-weight:950; color:#0f172a; }
.mc-search-x{
  border:none; background:#f1f5f9;
  width:36px; height:36px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}

.mc-search-box{
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(2,6,23,.10);
  border-radius:999px;
  padding:10px 12px;
  background:#fff;
}
.mc-search-mag{
  width:34px; height:34px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,120,215,.10);
}
#mcSearchInput{
  border:none; outline:none;
  width:100%;
  font-weight:800;
  font-size:14px;
}

.mc-search-hint{
  margin:10px 2px 10px;
  color:#64748b;
  font-weight:650;
  font-size:12px;
}

.mc-search-list{
  display:grid;
  gap:10px;
}

.mc-search-item{
  text-align:left;
  width:100%;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
  border-radius:14px;
  padding:12px 12px;
  cursor:pointer;
}
.mc-search-item:hover{
  border-color: rgba(0,120,215,.22);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.mc-search-item-main{
  font-weight:950;
  color:#0f172a;
}
.mc-search-item-sub{
  margin-top:2px;
  font-size:12px;
  font-weight:650;
  color:#64748b;
}

@media(max-width:768px){
  .mc-search-panel{ top: 70px; }
}
/* =========================
   GLOBAL SEARCH MODAL
   ========================= */
.mc-search-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.mc-search-modal.open{ display:block; }

.mc-search-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(6px);
}

.mc-search-panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 72px auto 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 24px 60px rgba(2,6,23,.30);
  padding: 14px;
}

.mc-search-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 6px 6px 10px;
}
.mc-search-title{
  font-weight: 950;
  color:#0f172a;
  letter-spacing: .2px;
}
.mc-search-x{
  width:40px;
  height:40px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}

.mc-search-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 12px;
  border-radius: 999px;
  background:#f1f5f9;
  border: 1px solid rgba(2,6,23,.10);
}
.mc-search-emoji{
  width:34px;
  height:34px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.14);
}
#mcSearchInput{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-weight:800;
  color:#0f172a;
  font-size: 15px;
}

.mc-search-suggest{
  margin-top: 12px;
  display:grid;
  gap:10px;
  max-height: 320px;
  overflow:auto;
  padding-right: 4px;
}
.mc-sug{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
  cursor:pointer;
}
.mc-sug:hover{
  border-color: rgba(0,120,215,.22);
  box-shadow: 0 12px 26px rgba(15,23,42,.08);
}
.mc-sug b{ display:block; color:#0f172a; font-weight:950; }
.mc-sug small{ display:block; margin-top:3px; color:#64748b; font-weight:650; }

.mc-search-hints{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:#64748b;
  font-weight:700;
}
.mc-search-chip{
  border:none;
  cursor:pointer;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,120,215,.10), rgba(0,176,80,.08));
  border: 1px solid rgba(0,120,215,.18);
  font-weight: 900;
  color:#0f172a;
}

@media (max-width: 860px){
  .mc-search-panel{ margin: 18px auto 0; border-radius: 18px; }
}
@media (max-width: 768px){
  .mc-route-home .mc-home-search{ display:none !important; }
}
/* === HOME SEARCH: FORCE INPUT TO BE TYPEABLE ON MOBILE === */
.mc-home-search { position: relative; z-index: 5; }
.mc-home-search input{
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  caret-color: auto !important;
  -webkit-text-fill-color: initial;
}
/* =========================================
   OPTION A: Clean Corporate Appbar
   ========================================= */

.mc-appbar-a{
  height: 60px;
  padding: 10px 14px;
  background:#fff;
  border-bottom: 1px solid rgba(2,6,23,.10);
  display:flex;
  align-items:center;
  gap:12px;
}

.mc-brand-a{
  text-decoration:none !important;
  display:flex;
  align-items:center;
  min-width: 110px;
}

.mc-brand-word{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
  /* Muncaster colors */
  background: linear-gradient(135deg, #0078d7, #00b050);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-appbar-title{
  flex: 1;
  text-align:center;
  font-weight: 900;
  color:#0f172a;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-actions-a{
  display:flex;
  gap:10px;
  align-items:center;
}

.mc-icon-btn{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: #fff;
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
  text-decoration:none;
  cursor:pointer;
  position: relative;
}

.mc-badge-dot{
  position:absolute;
  top:8px;
  right:9px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ef4444;
  border:2px solid #fff;
}

/* Mobile: keep title readable */
@media(max-width:768px){
  .mc-brand-word{ font-size: 16px; }
  .mc-appbar-title{ font-size: 13px; }
}

/* =========================================
   Search Modal: make X + text ALWAYS visible
   ========================================= */
.mc-search-title{ color:#0f172a !important; }

.mc-search-x{
  color:#0f172a !important;
  background:#fff !important;
  border:1px solid rgba(2,6,23,.12) !important;
}

#mcSearchInput{
  color:#0f172a !important;
}

#mcSearchInput::placeholder{
  color:#64748b !important;
  opacity: 1 !important;
}

.mc-search-item-main{ color:#0f172a !important; }
.mc-search-item-sub{ color:#64748b !important; }
/* =========================================================
   FINAL LOCK: TOP BAR (OPTION A) - CONSISTENT ON ALL PAGES
   ========================================================= */

.mc-shell .mc-appbar.mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  height: 60px !important;
  padding: 10px 14px !important;

  display:flex !important;
  align-items:center !important;
  gap:12px !important;

  background:#fff !important;
  border-bottom: 1px solid rgba(2,6,23,.10) !important;
}

/* Brand (left) */
.mc-shell .mc-brand.mc-brand-a{
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  min-width: 120px !important;
}
.mc-shell .mc-brand-word{
  font-weight: 950 !important;
  font-size: 18px !important;
  letter-spacing: .2px !important;
  background: linear-gradient(135deg, #0078d7, #00b050) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Center title */
.mc-shell #mcAppbarTitle{
  flex: 1 !important;
  text-align:center !important;
  font-weight: 900 !important;
  color:#0f172a !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Actions (right) */
.mc-shell .mc-actions-a{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
}

.mc-shell .mc-icon-btn{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius: 12px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: #fff !important;

  box-shadow: 0 8px 18px rgba(2,6,23,.08) !important;
  text-decoration:none !important;
  cursor:pointer !important;

  user-select:none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
}

/* Red dot */
.mc-shell .mc-badge-dot{
  position:absolute !important;
  top:8px !important;
  right:9px !important;
  width:10px !important;
  height:10px !important;
  border-radius:50% !important;
  background:#ef4444 !important;
  border:2px solid #fff !important;
}

/* Mobile sizing */
@media(max-width:768px){
  .mc-shell .mc-appbar.mc-appbar-a{ height: 56px !important; padding: 8px 10px !important; }
  .mc-shell .mc-brand-word{ font-size: 16px !important; }
  .mc-shell #mcAppbarTitle{ font-size: 13px !important; }
  .mc-shell .mc-icon-btn{ width:38px !important; height:38px !important; border-radius: 12px !important; }
}
/* =========================================================
   FINAL HARD LOCK — OPTION A TOP BAR (LAST RULE WINS)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-shell .mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  height: 60px !important;
  padding: 10px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  background: #fff !important;
  border-bottom: 1px solid rgba(2,6,23,.10) !important;
}

.mc-shell .mc-brand-a{
  display:flex !important;
  align-items:center !important;
  text-decoration:none !important;
  min-width:auto !important;
}

.mc-shell .mc-brand-word{
  font-weight:950 !important;
  font-size:18px !important;
  letter-spacing:.2px !important;
  background: linear-gradient(135deg, #0078d7, #00b050) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color: transparent !important;
}

.mc-shell .mc-appbar-title{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 8px !important;
}

.mc-shell .mc-actions-a{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.mc-shell .mc-icon-btn{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:12px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background:#fff !important;
  box-shadow: 0 8px 18px rgba(2,6,23,.08) !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

@media(max-width:480px){
  .mc-shell .mc-appbar-a{
    height: 56px !important;
    padding: 8px 12px !important;
    gap: 10px !important;
  }
  .mc-shell .mc-brand-word{ font-size: 16px !important; }
  .mc-shell .mc-appbar-title{ font-size: 12.5px !important; padding: 0 6px !important; }
  .mc-shell .mc-icon-btn{ width:38px !important; height:38px !important; border-radius:12px !important; }
}
/* =========================================================
   FINAL TOP BAR (NO TITLE WORDS) — BIG SEARCH PILL
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-shell .mc-appbar-a{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

.mc-shell .mc-search-pill-a{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 760px !important;

  display:flex !important;
  align-items:center !important;
  gap:10px !important;

  height: 44px !important;
  padding: 0 14px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: #f1f5f9 !important;

  cursor: pointer !important;
}

.mc-shell .mc-search-emoji-a{
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.14) !important;
}

.mc-shell .mc-search-ph-a{
  font-weight: 800 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Mobile: keep pill visible + compact */
@media (max-width: 480px){
  .mc-shell .mc-search-pill-a{
    height: 40px !important;
    padding: 0 10px !important;
  }
  .mc-shell .mc-search-emoji-a{
    width: 32px !important;
    height: 32px !important;
  }
  .mc-shell .mc-search-ph-a{
    font-size: 12.5px !important;
  }
}
/* =========================================================
   SEARCH MODAL POLISH (premium list)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-search-panel{
  border-radius: 20px !important;
  padding: 14px 14px 16px !important;
}

.mc-search-top{
  padding: 6px 4px 12px !important;
}

.mc-search-title{
  font-size: 16px !important;
  font-weight: 950 !important;
}

.mc-search-x{
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size: 18px !important;
}

/* input bar: tighter + cleaner */
.mc-search-box{
  background: #f1f5f9 !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  border-radius: 999px !important;
  padding: 10px 12px !important;
}

#mcSearchInput{
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* suggestion list: less “big white blocks”, more app-like rows */
.mc-search-list{
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
  max-height: 56vh !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

/* each suggestion row */
.mc-search-item{
  border-radius: 16px !important;
  padding: 12px 12px !important;
  border: 1px solid rgba(2,6,23,.08) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06) !important;
}

.mc-search-item:hover{
  border-color: rgba(0,120,215,.22) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.10) !important;
}

/* typography hierarchy */
.mc-search-item-main{
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: .1px !important;
}

.mc-search-item-sub{
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #64748b !important;
}

/* Mobile: keep it clean */
@media (max-width: 480px){
  .mc-search-panel{ margin-top: 14px !important; }
  .mc-search-item{ padding: 11px 11px !important; }
  .mc-search-item-sub{ font-size: 11.5px !important; }
}
/* =========================================================
   FIX: Account / Page area collapsing to thin line
   (force shell layout to stretch full width)
   Paste at VERY BOTTOM (LAST RULES)
   ========================================================= */

.mc-shell,
#mcPageSlot,
#mcPageSlot > *{
  width: 100% !important;
  max-width: none !important;
}

/* Main/page must not shrink */
#mcPageSlot main,
.mc-shell main,
main{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Shell body layout: sidebar + page */
.mc-body{
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
}

/* Sidebar fixed, page flexible */
.mc-sidebar{
  flex: 0 0 280px !important;
}

.mc-page{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* If ANYTHING is centering/shrinking the page content */
.mc-page > *{
  max-width: none !important;
}
/* Hide "Track" label on tiny screens */
@media (max-width: 520px){
  .mc-hide-xs{ display:none; }
}
/* ===== APPBAR ICON BUTTON FIX (prevents icon floating outside) ===== */
.mc-appbar-actions .mc-icon-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  padding:8px 10px !important;
  line-height:1 !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  min-height:36px !important;
  box-sizing:border-box !important;
}

.mc-appbar-actions .mc-icon-btn span{
  display:inline-block !important;
  line-height:1 !important;
}
/* ===== FINAL FIX: Track button size = SAME HEIGHT as others ===== */
.mc-shell .mc-icon-btn.mc-icon-btn-label{
  height: 40px !important;          /* SAME as other icons */
  min-height: 40px !important;
  width: auto !important;

  padding: 0 10px !important;       /* tighter */
  gap: 6px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* icon inside Track */
.mc-shell .mc-icon-btn.mc-icon-btn-label .mc-ic{
  font-size: 16px !important;       /* match emoji size */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* text inside Track */
.mc-shell .mc-icon-btn.mc-icon-btn-label .mc-hide-xs{
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
/* =========================================================
   MUNCASTER SHELL PATCH (CSS ONLY)
   - Fixes top bar layout (clean + stable)
   - Adds Featured sections styling
   - Adds Mobile bottom navigation styling
   - Polishes sidebar items (keeps your existing structure)
   ========================================================= */

/* ---------------------------
   SIDEBAR POLISH
--------------------------- */
.mc-sidebar{
  border-right: 2px solid rgba(0,120,215,.14) !important;
  box-shadow: 8px 0 18px rgba(15,23,42,.06) !important;
  background: #ffffff !important;
}

.mc-sidebar::before{
  content:"";
  display:block;
  height:10px;
  margin: -12px -10px 10px;
  background: linear-gradient(90deg, #0078d7, #00b050);
  border-radius: 0 0 14px 14px;
  opacity: .95;
}

.mc-nav-section{
  padding: 10px 12px 6px !important;
  color: #334155 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .14em !important;
  border-left: 4px solid rgba(0,176,80,.55);
  margin: 10px 6px 6px;
}

.mc-nav-item{
  border: 1px solid rgba(2,6,23,.06) !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 12px 12px !important;
  margin: 6px 6px !important;
  display:flex;
  align-items:center;
  gap:10px;
}

.mc-nav-item:hover{
  background: linear-gradient(90deg, rgba(0,120,215,.08), rgba(0,176,80,.06)) !important;
  border-color: rgba(0,120,215,.18) !important;
}

.mc-nav-ic{
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.12) !important;
  font-size: 16px !important;
  flex: 0 0 34px;
}

.mc-nav-item.active{
  background: linear-gradient(90deg, rgba(0,120,215,.12), rgba(0,176,80,.10)) !important;
  border-color: rgba(0,176,80,.28) !important;
  box-shadow: inset 4px 0 0 #00b050, 0 10px 22px rgba(15,23,42,.06) !important;
  color: #0078d7 !important;
}

.mc-nav-divider{
  margin: 14px 12px !important;
  height: 1px !important;
  background: rgba(2,6,23,.10) !important;
}

/* ---------------------------
   TOP BAR FIX (YOUR EXISTING HTML)
   Works with:
   .mc-appbar .mc-brand .mc-top-search .mc-appbar-actions
--------------------------- */
.mc-appbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 16px;
  background:#ffffff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

/* Brand left */
.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-text{ line-height:1.1; }
.mc-brand-name{ font-weight:950; color:#0f172a; }
.mc-brand-tagline{ font-weight:650; color:#64748b; font-size:12px; }

/* Search center */
.mc-top-search{
  flex:1;
  max-width:620px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f1f5f9;
  border-radius:999px;
  padding:10px 14px;
  border: 1px solid rgba(2,6,23,.06);
}

.mc-top-search-ic{
  color:#0078d7 !important;
  opacity:1 !important;
}

.mc-top-search input{
  border:none;
  outline:none;
  background:transparent;
  width:100%;
  font-weight:700;
  color:#0f172a;
}

.mc-top-search input::placeholder{
  color:#64748b;
  font-weight:650;
}

/* Right actions */
.mc-appbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.mc-action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.12);
  text-decoration:none;
}

/* ---------------------------
   FEATURED SECTIONS (below modules)
   Use the HTML I gave you:
   .featured-section > h3
   .featured-row > .featured-pill
--------------------------- */
.featured-section{
  margin-top:26px;
}

.featured-section h3{
  font-size:16px;
  font-weight:900;
  margin:0 0 10px;
  color:#0f172a;
}

.featured-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:6px;
  -webkit-overflow-scrolling: touch;
}

.featured-pill{
  white-space:nowrap;
  padding:10px 16px;
  background:#e2e8f0;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  flex-shrink:0;
  border: 1px solid rgba(2,6,23,.06);
}

/* ---------------------------
   MOBILE BOTTOM NAV
   Works with the <nav class="mc-bottom-nav"> you added in mc-shell.html
--------------------------- */
.mc-bottom-nav{
  display:none;
}

@media(max-width:768px){
  .mc-bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:64px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.08);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-align:center;
    font-size:11px;
    font-weight:800;
    color:#475569;
    text-decoration:none;
    min-width:56px;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:18px;
    line-height:1;
    margin-bottom:2px;
  }

  .mc-bottom-nav small{
    display:block;
    font-size:10px;
    font-weight:800;
  }

  .mc-bottom-nav .mc-center{
    background:linear-gradient(135deg,#0078d7,#00b050);
    color:#fff;
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin-top:-20px;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 26px rgba(2,6,23,.18);
  }

  /* prevent content hiding behind bottom nav */
  .mc-page{
    padding-bottom:86px !important;
  }
}

/* Optional: hide any old account popovers if they exist */
#mcAccountBtn,
#mcAccountPop{
  display:none !important;
}
/* ===== TOP BAR tighten + align ===== */
.mc-appbar{
  justify-content: space-between;
}

.mc-top-search{
  max-width: 720px;           /* slightly wider but controlled */
  width: 100%;
}

@media(min-width: 1024px){
  .mc-top-search{
    margin-left: 18px;
    margin-right: 18px;
  }
}
/* =========================
   POPULAR SECTION (styled)
   ========================= */
.mc-popular{
  margin-top: 26px;
  padding-bottom: 10px;
}

.mc-popular-head h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}
.mc-popular-head p{
  margin: 0 0 14px;
  color:#64748b;
  font-weight: 650;
}

.mc-popular-title{
  font-weight: 950;
  color:#0f172a;
  margin: 12px 0 10px;
}

.mc-hscroll{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.mc-chipcard{
  flex: 0 0 240px;
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 12px;
  border-radius: 18px;
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  text-decoration:none;
}

.mc-chipcard:hover{
  border-color: rgba(0,120,215,.20);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

.mc-chip-ic{
  width:44px;
  height:44px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.12);
  font-size: 18px;
  flex: 0 0 44px;
}

.mc-chip-h{
  font-weight: 950;
  color:#0f172a;
  line-height:1.15;
}

.mc-chip-s{
  font-weight: 650;
  color:#64748b;
  font-size: 12px;
  margin-top: 3px;
}

.mc-popular-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

@media(max-width:860px){
  .mc-popular-grid{ grid-template-columns: 1fr; }
}

.mc-popcard{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 14px;
  border-radius: 18px;
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  text-decoration:none;
}

.mc-pop-ic{
  width:46px;
  height:46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,176,80,.10);
  border: 1px solid rgba(0,176,80,.14);
  font-size: 18px;
  flex: 0 0 46px;
}

.mc-pop-h{
  font-weight: 950;
  color:#0f172a;
  margin-bottom: 4px;
}

.mc-pop-s{
  font-weight: 650;
  color:#64748b;
  font-size: 12px;
}
/* =========================
   TOP BAR: SIMPLE (NO SEARCH)
   ========================= */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  padding:10px 14px;
  background:#ffffff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-name{
  font-weight:950;
  color:#0f172a;
  line-height:1.1;
}

.mc-brand-tagline{
  font-weight:650;
  color:#64748b;
  font-size:12px;
  line-height:1.1;
}

@media(max-width:720px){
  .mc-brand-tagline{ display:none; }
}
/* =========================
   MOBILE LAYOUT FIX: kill sidebar width + fill screen
   ========================= */
@media (max-width: 768px){
  /* completely remove sidebar from layout */
  .mc-sidebar{
    display:none !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
  }

  /* body should not reserve space for sidebar */
  .mc-body{
    display:block !important;
  }

  /* page area must take full width */
  .mc-page{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  /* prevent horizontal scrolling */
  html, body{
    overflow-x:hidden !important;
  }
}
/* =========================
   TOP BAR: compact + clean
   ========================= */
.mc-appbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

@media (max-width:768px){
  .mc-brand-tagline{ display:none !important; }
  .mc-brand-name{ font-size:14px !important; }
  .mc-action-btn{
    width:40px !important;
    height:40px !important;
    border-radius:14px !important;
  }
}
/* =========================
   BOTTOM NAV: clean + consistent
   ========================= */
@media(max-width:768px){
  .mc-bottom-nav{
    height:66px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    background:#fff !important;
    border-top:1px solid rgba(2,6,23,.10) !important;
  }

  .mc-bottom-nav a{
    color:#64748b !important;
    font-weight:800 !important;
    text-decoration:none !important;
    min-width:64px !important;
  }

  .mc-bottom-nav a span{
    font-size:20px !important;
    margin-bottom:3px !important;
  }

  .mc-bottom-nav a small{
    font-size:10px !important;
    letter-spacing:.02em !important;
  }

  /* active state */
  .mc-bottom-nav a.active{
    color:#0078d7 !important;
  }

  /* center button */
  .mc-bottom-nav .mc-center{
    margin-top:-22px !important;
  }

  /* make sure content is not hidden behind nav */
  .mc-page{
    padding-bottom: 96px !important;
  }
}
/* =========================
   TOP BAR (clean, finished)
   ========================= */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:#fff;
  border-bottom:1px solid rgba(2,6,23,.08);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 180px;
}

.mc-brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
}

.mc-brand-name{
  font-weight:950;
  color:#0f172a;
  line-height:1.05;
}
.mc-brand-tagline{
  font-weight:650;
  color:#64748b;
  font-size:12px;
  line-height:1.05;
}

.mc-appbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

/* Search pill in header */
.mc-search-pill{
  flex: 1 1 auto;
  max-width: 640px;
  display:flex;
  align-items:center;
  gap:10px;
  border:none;
  cursor:pointer;
  background:#f1f5f9;
  border:1px solid rgba(2,6,23,.08);
  border-radius:999px;
  padding:10px 14px;
  color:#334155;
  font-weight:800;
}

.mc-search-ic{
  width:30px;
  height:30px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  flex: 0 0 30px;
}

.mc-search-tx{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Hide tagline on small screens, keep header compact */
@media(max-width:768px){
  .mc-brand-tagline{ display:none; }
  .mc-brand{ min-width: auto; }
  .mc-search-pill{ max-width: none; }
  .mc-search-tx{ display:none; }  /* icon-only search on mobile */
  .mc-search-pill{ padding:10px 12px; }
}
.mc-nav-item,
.mc-nav-item * {
  cursor: pointer;
}
/* =========================
   MOBILE LAYOUT FIX
   - remove huge left spacing
   - hide sidebar on phones
   - make page full width
   ========================= */
@media (max-width: 768px) {
  .mc-body{
    display:block !important;
  }

  .mc-sidebar{
    display:none !important;
  }

  .mc-page{
    width:100% !important;
    margin-left:0 !important;
    padding:16px !important;
    padding-bottom:92px !important; /* space for bottom nav */
  }

  /* keep top bar simple + aligned */
  .mc-appbar{
    padding:10px 12px !important;
    gap:10px !important;
  }

  .mc-brand-text .mc-brand-tagline{
    display:none !important; /* optional: cleaner on mobile */
  }
}

/* =========================
   MOBILE BOTTOM NAV - CLEAN
   ========================= */
.mc-bottom-nav{
  display:none;
}

@media (max-width: 768px){
  .mc-bottom-nav{
    position:fixed;
    left:0; right:0; bottom:0;
    height:70px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.10);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-decoration:none;
    text-align:center;
    font-size:11px;
    font-weight:800;
    color:#475569;
    min-width:56px;
    cursor:pointer;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:20px;
    line-height:1;
    margin-bottom:4px;
  }

  /* Center CBS button */
  .mc-bottom-nav .mc-center{
    width:54px;
    height:54px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0078d7,#00b050);
    color:#fff;
    margin-top:-24px;
    box-shadow:0 14px 26px rgba(2,6,23,.18);
  }
  .mc-bottom-nav .mc-center span{
    margin:0;
    font-size:22px;
  }
}
/* =========================
   MOBILE BOTTOM NAV - CLEAN 6 TABS
   ========================= */
.mc-bottom-nav{
  display:none;
}

@media (max-width: 768px){
  .mc-bottom-nav{
    position:fixed;
    left:0; right:0; bottom:0;
    height:70px;
    background:#ffffff;
    border-top:1px solid rgba(2,6,23,.10);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mc-bottom-nav a{
    text-decoration:none;
    text-align:center;
    font-size:10.5px;
    font-weight:800;
    color:#475569;
    min-width:52px;
    cursor:pointer;
  }

  .mc-bottom-nav span{
    display:block;
    font-size:20px;
    line-height:1;
    margin-bottom:4px;
  }

  /* IMPORTANT: kill the big center button if any old class remains */
  .mc-bottom-nav .mc-center{
    background:none !important;
    box-shadow:none !important;
    width:auto !important;
    height:auto !important;
    border-radius:0 !important;
    margin-top:0 !important;
    color:inherit !important;
    display:block !important;
  }

  /* prevent content hiding behind tabs */
  .mc-page{
    padding-bottom:92px !important;
  }
}
/* === HARD-LOCK bottom nav styling across ALL modules === */
.mc-bottom-nav a{
  text-decoration: none !important;
  color: #475569 !important;
}

.mc-bottom-nav small{
  display:block !important;
  line-height: 1.1 !important;
}

.mc-bottom-nav span{
  display:block !important;
  line-height: 1 !important;
}

/* stop any global link styles from modules */
.mc-bottom-nav a:link,
.mc-bottom-nav a:visited,
.mc-bottom-nav a:hover,
.mc-bottom-nav a:active{
  text-decoration:none !important;
}
/* =========================================================
   HARD LOCK: universal appbar across ALL modules
   (prevents module CSS from messing your header)
   ========================================================= */
.mc-shell .mc-appbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:10px 12px !important;
  background:#ffffff !important;
  border-bottom:1px solid rgba(2,6,23,.08) !important;
}

.mc-shell .mc-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-decoration:none !important;
}

.mc-shell .mc-search-pill{
  flex: 1 1 auto !important;
  max-width: 720px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  background:#f1f5f9 !important;
  border:1px solid rgba(2,6,23,.08) !important;
  border-radius:999px !important;
  padding:10px 14px !important;
  cursor:pointer !important;
}

.mc-shell .mc-search-ic{
  width:30px !important;
  height:30px !important;
  border-radius:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  flex: 0 0 30px !important;
}

.mc-shell .mc-search-tx{
  font-weight:800 !important;
  color:#334155 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.mc-shell .mc-appbar-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

@media(max-width:768px){
  .mc-shell .mc-brand-tagline{ display:none !important; }
  .mc-shell .mc-search-tx{ display:none !important; } /* icon-only on mobile */
}
/* Re-apply the exact header layout */
.mc-shell .mc-appbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  gap:12px !important;
  padding:10px 14px !important;
  background:#fff !important;
  border-bottom:1px solid rgba(2,6,23,.08) !important;
}

.mc-shell .mc-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-decoration:none !important;
  color:inherit !important;
}

.mc-shell .mc-brand-logo{
  width:36px !important;
  height:36px !important;
  object-fit:contain !important;
}

.mc-shell .mc-brand-name{
  font-weight:950 !important;
  color:#0f172a !important;
}

.mc-shell .mc-brand-tagline{
  font-weight:650 !important;
  color:#64748b !important;
  font-size:12px !important;
}

.mc-shell .mc-appbar-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.mc-shell .mc-action-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:40px !important;
  height:40px !important;
  border-radius:12px !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.12) !important;
  text-decoration:none !important;
}
:root{
  --mc-blue:#0078d7;
  --mc-green:#00b050;
  --mc-ink:#0f172a;
}

.mc-topbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  background: linear-gradient(90deg, rgba(0,120,215,.10), rgba(0,176,80,.08));
  border-bottom:1px solid rgba(15,23,42,.10);
}

.mc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 220px;
}

.mc-logo{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:10px;
}

.mc-brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.mc-brand-name{ font-weight:900; color:var(--mc-ink); font-size:18px; }
.mc-brand-tag{ font-size:12px; font-weight:700; color:rgba(15,23,42,.60); }

.mc-top-search{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  padding:10px 12px;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}

.mc-search-input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
  background:transparent;
}

.mc-search-ico-btn,
.mc-search-go{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:18px;
}

.mc-top-actions{ display:flex; gap:10px; align-items:center; }

.mc-icon-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 18px rgba(15,23,42,.06);
  font-size:18px;
}
/* ===== TOP BAR: make it look like a real app ===== */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 9999;

  height: 72px;
  padding: 10px 18px;

  background: linear-gradient(90deg, #ffffff 0%, #f6fbff 55%, #f2fff8 100%);
  border-bottom: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 10px 26px rgba(2,6,23,0.06);
}

/* Brand area */
.mc-brand{
  gap: 12px;
  align-items: center;
  min-width: 250px;
}

/* FIX: logo size + crispness */
.mc-brand-logo{
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,120,215,0.12);
  box-shadow: 0 6px 16px rgba(2,6,23,0.08);
}

/* Make “Muncaster” feel like a brand */
.mc-brand-name{
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  color: #0b2a4a;
  line-height: 1.05;
}
.mc-brand-tagline{
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(15,23,42,0.65);
  margin-top: 2px;
}

/* Search pill: tighter + stronger */
.mc-search-pill{
  max-width: 720px;
  height: 46px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0,120,215,0.16);
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mc-search-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(0,176,80,0.28);
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}
.mc-search-ic{
  font-size: 18px;
}
.mc-search-tx{
  font-weight: 700;
  color: rgba(15,23,42,0.72);
}

/* Actions: make buttons match brand */
.mc-appbar-actions .mc-action-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,120,215,0.14);
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  display: grid;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mc-appbar-actions .mc-action-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}

/* Mobile: reduce height + keep it clean */
@media (max-width: 860px){
  .mc-appbar{
    height: 64px;
    padding: 8px 12px;
  }
  .mc-brand-text{ display:none; } /* keep logo only */
  .mc-search-pill{
    height: 42px;
  }
}
/* ===============================
   MUNCASTER TOP BAR (PREMIUM)
   - Clean, branded, not loud
================================ */

/* Core tokens */
:root{
  --mc-blue:#0078d7;
  --mc-green:#00b050;
  --mc-ink:#0f172a;
  --mc-muted:#64748b;
  --mc-line:rgba(15,23,42,.10);
  --mc-card:#ffffff;
  --mc-bg:#f4f7fb;
}

/* Appbar container: subtle tint + depth */
.mc-appbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(0,120,215,.06), rgba(0,176,80,.03));
  border-bottom: 1px solid var(--mc-line);
  backdrop-filter: blur(10px);
}

/* Branded accent underline (thin, classy) */
.mc-appbar::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:3px;
  background: linear-gradient(90deg, var(--mc-blue), var(--mc-green));
  opacity:.9;
}

/* Brand area: tighter + stronger */
.mc-brand{
  gap: 10px !important;
}
.mc-brand-name{
  font-weight: 900 !important;
  letter-spacing: .2px;
  color: var(--mc-ink) !important;
}
.mc-brand-tagline{
  color: var(--mc-muted) !important;
  font-weight: 600 !important;
}

/* Logo: “app icon” treatment */
.mc-brand-logo{
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid rgba(0,120,215,.25) !important;
  box-shadow:
    0 10px 22px rgba(2,6,23,.10),
    0 0 0 4px rgba(0,120,215,.06);
  object-fit: contain;
  padding: 6px;
}

/* Search pill: clean white with Muncaster glow ring */
.mc-search-pill{
  background: var(--mc-card) !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(2,6,23,.10) !important;
  position: relative;
  overflow: visible;
}

/* “Glow ring” behind search (premium look) */
.mc-search-pill::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,120,215,.35), rgba(0,176,80,.30));
  filter: blur(10px);
  opacity: .65;
  z-index:-1;
}

/* Search icon bubble */
.mc-search-ic{
  width: 36px;
  height: 36px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,120,215,.12), rgba(0,176,80,.10));
  border: 1px solid rgba(0,120,215,.16);
}

/* Actions: consistent, not “random emojis in boxes” */
.mc-action-btn{
  border-radius: 14px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: rgba(255,255,255,.70) !important;
  box-shadow: 0 10px 22px rgba(2,6,23,.10) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mc-action-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,120,215,.35) !important;
  box-shadow: 0 14px 28px rgba(2,6,23,.14) !important;
}

/* Optional: make the action row feel “branded” */
.mc-appbar-actions{
  gap: 10px !important;
}

/* Mobile: reduce heaviness */
@media (max-width: 860px){
  .mc-search-pill{ box-shadow: 0 10px 18px rgba(2,6,23,.10) !important; }
  .mc-search-pill::after{ opacity:.45; filter: blur(12px); }
}
/* === FIX: show hand cursor (not I-beam) + prevent text caret on appbar actions === */
.mc-appbar a,
.mc-appbar button,
.mc-appbar .mc-action-btn,
.mc-appbar .mc-search-pill,
.mc-appbar .mc-brand{
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* If any icon is wrapped in spans, kill caret behavior there too */
.mc-appbar *{
  caret-color: transparent;
}

/* Prevent drag/select behavior on icons/text inside the buttons */
.mc-appbar a *,
.mc-appbar button *{
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Optional: if your action buttons are anchors, make them feel like buttons */
.mc-action-btn{
  text-decoration: none;
}
/* ===============================
   UNIVERSAL PAGE ENTER (JS-forced)
   =============================== */

@keyframes mcPageEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* base state (safe) */
.mc-page-enter{
  opacity: 1;              /* IMPORTANT: never hide by default */
  transform: none;
}

/* animated state (only when JS adds .mc-in) */
.mc-page-enter.mc-in{
  animation: mcPageEnter .95s cubic-bezier(.2,.9,.2,1) both;
  will-change: transform, opacity;
}

/* stop old hero-only animation inside the shell so it doesn't double animate */
.mc-shell #mcPageSlot .hero-section,
.mc-shell #mcPageSlot .projects-hero,
.mc-shell #mcPageSlot .landing-hero,
.mc-shell #mcPageSlot .category-hero{
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .mc-page-enter.mc-in{ animation: none !important; }
}
/* =========================================================
   MOBILE GRID OVERRIDES (GLOBAL)
   Put this at the VERY BOTTOM of shell-patch.css
   ========================================================= */

/* ✅ HOME: modules 2 columns on phone */
@media (max-width: 640px){
  .modules{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
  }
}

/* ✅ SERVICES: 2 columns on phone */
@media (max-width: 640px){
  .service-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }

  .service-card{
    border-radius:14px !important;
    padding:10px !important;
    min-height:130px !important;
  }
}

/* ✅ VEHICLES: 2 columns on phone (cards are heavy) */
@media (max-width: 640px){
  .veh-list{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }
}

/* ✅ CBS PRODUCTS: 3 columns on phone */
@media (max-width: 640px){
  .cbs-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px !important;
  }
}

/* ✅ Big phones: make CBS 4 columns */
@media (min-width: 641px) and (max-width: 820px){
  .cbs-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== HOME MODULE GRID: 2 columns on mobile ===== */
.modules{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 420px){
  .modules{ grid-template-columns:1fr; }
}
/* =========================
   FEATURED IN MOTION (HOME)
   ========================= */
.mc-featured-motion{
  margin-top: 22px;
}

.mc-featured-head h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}
.mc-featured-head p{
  margin: 0 0 12px;
  color:#64748b;
  font-weight: 650;
}

/* horizontal snap row (premium “carousel”) */
.mc-motion-row{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* card sizing: shows “peek” of next card */
.mc-motion-card{
  position:relative;
  flex: 0 0 420px;          /* desktop */
  height: 240px;
  border-radius: 22px;
  overflow:hidden;
  scroll-snap-align: start;
  text-decoration:none;
  border:1px solid rgba(2,6,23,.10);
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  background:#000;
}

@media(max-width:860px){
  .mc-motion-card{
    flex: 0 0 86vw;          /* mobile: big, immersive */
    height: 220px;
  }
}

.mc-motion-vid{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

/* gradient overlay + text */
.mc-motion-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
  padding:16px 16px 14px;
  background: linear-gradient(180deg,
    rgba(2,6,23,0) 30%,
    rgba(2,6,23,.45) 65%,
    rgba(2,6,23,.72) 100%);
}

.mc-motion-pill{
  display:inline-flex;
  align-self:flex-start;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
}

.mc-motion-title{
  color:#ffffff;
  font-weight:950;
  font-size:16px;
  line-height:1.2;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.mc-motion-cta{
  color:#e8f3ff;
  font-weight:900;
  font-size:13px;
  opacity:.95;
}

/* smooth hover */
@media(hover:hover){
  .mc-motion-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(15,23,42,.16);
    border-color: rgba(0,120,215,.22);
  }
}
/* =========================================================
   HOME: "Explore Muncaster in Motion" (Premium video carousel)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-featured-motion{
  margin-top: 22px;
  padding: 18px 14px 6px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,120,215,.07), rgba(0,176,80,.05));
  border: 1px solid rgba(2,6,23,.06);
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}

.mc-featured-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mc-featured-head h3{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  color:#0f172a;
}

.mc-featured-head p{
  margin:0;
  font-size: 12.5px;
  font-weight: 700;
  color:#64748b;
}

/* Horizontal row */
.mc-motion-row{
  display:flex;
  gap: 14px;
  overflow-x:auto;
  padding: 8px 6px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* make scrollbar subtle */
.mc-motion-row::-webkit-scrollbar{ height: 8px; }
.mc-motion-row::-webkit-scrollbar-thumb{
  background: rgba(2,6,23,.12);
  border-radius: 999px;
}
.mc-motion-row::-webkit-scrollbar-track{
  background: rgba(2,6,23,.06);
  border-radius: 999px;
}

/* Cards */
.mc-motion-card{
  position: relative;
  flex: 0 0 360px;              /* desktop width */
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: start;

  text-decoration: none !important; /* kill blue underline */
  color: inherit !important;

  background: #0b1220;          /* nice fallback if video missing */
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.mc-motion-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,176,80,.28);
  box-shadow: 0 26px 60px rgba(15,23,42,.18);
}

/* Video fills the card */
.mc-motion-vid{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay for readability */
.mc-motion-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(2,6,23,0) 40%, rgba(2,6,23,.72) 100%);
}

.mc-motion-pill{
  align-self:flex-start;
  font-size: 12px;
  font-weight: 950;
  color:#0f172a;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,120,215,.18);
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(2,6,23,.16);
  margin-bottom: 10px;
}

.mc-motion-title{
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 12px 24px rgba(0,0,0,.35);
  margin-bottom: 8px;
  max-width: 92%;
}

.mc-motion-cta{
  font-size: 12.5px;
  font-weight: 950;
  color: #ffffff;
  opacity: .95;
}

/* “Swipe” hint: make next card peek slightly */
@media (min-width: 860px){
  .mc-motion-row{ padding-right: 60px; }
}

/* Responsive sizes */
@media (max-width: 860px){
  .mc-motion-card{
    flex: 0 0 320px;
    height: 210px;
  }
}
@media (max-width: 520px){
  .mc-featured-motion{ padding: 14px 12px 4px; }
  .mc-motion-card{
    flex: 0 0 86%;
    height: 200px;
  }
  .mc-featured-head{
    flex-direction: column;
    align-items:flex-start;
  }
}
/* ✅ HOME: keep the top search pill (so appbar never looks empty) */
.mc-route-home .mc-shell .mc-search-pill{
  display:flex !important;
}

/* ✅ HOME: hide the hero search bar (avoid duplicate search) */
.mc-route-home .mc-home-search{
  display:none !important;
}

/* ✅ HOME: make the appbar pill feel like the “main” search (premium) */
.mc-route-home .mc-shell .mc-search-pill{
  max-width: 760px !important;
  margin: 0 auto !important;
}
/* Keep brand/actions tight so the center pill looks intentional */
.mc-shell .mc-brand{
  min-width: 210px !important;
}
.mc-shell .mc-appbar-actions{
  margin-left: 0 !important;
}
/* =========================
   SEARCH MODAL (universal)
   ========================= */
.mc-search-modal{ display:none; }
.mc-search-modal.open{ display:block; }

.mc-search-backdrop{
  position:fixed; inset:0;
  background:rgba(2,6,23,.45);
  z-index: 99980;
}

.mc-search-panel{
  position:fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  background:#fff;
  border:1px solid rgba(2,6,23,.10);
  border-radius:18px;
  box-shadow: 0 20px 60px rgba(2,6,23,.25);
  z-index: 99990;
  padding: 14px;
}

.mc-search-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:10px;
}
.mc-search-title{ font-weight:950; color:#0f172a; }
.mc-search-x{
  border:none; background:#f1f5f9;
  width:36px; height:36px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}

.mc-search-box{
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(2,6,23,.10);
  border-radius:999px;
  padding:10px 12px;
  background:#fff;
}
.mc-search-mag{
  width:34px; height:34px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,120,215,.10);
}
#mcSearchInput{
  border:none; outline:none;
  width:100%;
  font-weight:800;
  font-size:14px;
}

.mc-search-hint{
  margin:10px 2px 10px;
  color:#64748b;
  font-weight:650;
  font-size:12px;
}

.mc-search-list{
  display:grid;
  gap:10px;
}

.mc-search-item{
  text-align:left;
  width:100%;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
  border-radius:14px;
  padding:12px 12px;
  cursor:pointer;
}
.mc-search-item:hover{
  border-color: rgba(0,120,215,.22);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.mc-search-item-main{
  font-weight:950;
  color:#0f172a;
}
.mc-search-item-sub{
  margin-top:2px;
  font-size:12px;
  font-weight:650;
  color:#64748b;
}

@media(max-width:768px){
  .mc-search-panel{ top: 70px; }
}
/* =========================
   GLOBAL SEARCH MODAL
   ========================= */
.mc-search-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.mc-search-modal.open{ display:block; }

.mc-search-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(6px);
}

.mc-search-panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 72px auto 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 24px 60px rgba(2,6,23,.30);
  padding: 14px;
}

.mc-search-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 6px 6px 10px;
}
.mc-search-title{
  font-weight: 950;
  color:#0f172a;
  letter-spacing: .2px;
}
.mc-search-x{
  width:40px;
  height:40px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}

.mc-search-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 12px;
  border-radius: 999px;
  background:#f1f5f9;
  border: 1px solid rgba(2,6,23,.10);
}
.mc-search-emoji{
  width:34px;
  height:34px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,120,215,.10);
  border: 1px solid rgba(0,120,215,.14);
}
#mcSearchInput{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-weight:800;
  color:#0f172a;
  font-size: 15px;
}

.mc-search-suggest{
  margin-top: 12px;
  display:grid;
  gap:10px;
  max-height: 320px;
  overflow:auto;
  padding-right: 4px;
}
.mc-sug{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
  cursor:pointer;
}
.mc-sug:hover{
  border-color: rgba(0,120,215,.22);
  box-shadow: 0 12px 26px rgba(15,23,42,.08);
}
.mc-sug b{ display:block; color:#0f172a; font-weight:950; }
.mc-sug small{ display:block; margin-top:3px; color:#64748b; font-weight:650; }

.mc-search-hints{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:#64748b;
  font-weight:700;
}
.mc-search-chip{
  border:none;
  cursor:pointer;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,120,215,.10), rgba(0,176,80,.08));
  border: 1px solid rgba(0,120,215,.18);
  font-weight: 900;
  color:#0f172a;
}

@media (max-width: 860px){
  .mc-search-panel{ margin: 18px auto 0; border-radius: 18px; }
}
@media (max-width: 768px){
  .mc-route-home .mc-home-search{ display:none !important; }
}
/* === HOME SEARCH: FORCE INPUT TO BE TYPEABLE ON MOBILE === */
.mc-home-search { position: relative; z-index: 5; }
.mc-home-search input{
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  caret-color: auto !important;
  -webkit-text-fill-color: initial;
}
/* =========================================
   OPTION A: Clean Corporate Appbar
   ========================================= */

.mc-appbar-a{
  height: 60px;
  padding: 10px 14px;
  background:#fff;
  border-bottom: 1px solid rgba(2,6,23,.10);
  display:flex;
  align-items:center;
  gap:12px;
}

.mc-brand-a{
  text-decoration:none !important;
  display:flex;
  align-items:center;
  min-width: 110px;
}

.mc-brand-word{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
  /* Muncaster colors */
  background: linear-gradient(135deg, #0078d7, #00b050);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-appbar-title{
  flex: 1;
  text-align:center;
  font-weight: 900;
  color:#0f172a;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-actions-a{
  display:flex;
  gap:10px;
  align-items:center;
}

.mc-icon-btn{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: #fff;
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
  text-decoration:none;
  cursor:pointer;
  position: relative;
}

.mc-badge-dot{
  position:absolute;
  top:8px;
  right:9px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ef4444;
  border:2px solid #fff;
}

/* Mobile: keep title readable */
@media(max-width:768px){
  .mc-brand-word{ font-size: 16px; }
  .mc-appbar-title{ font-size: 13px; }
}

/* =========================================
   Search Modal: make X + text ALWAYS visible
   ========================================= */
.mc-search-title{ color:#0f172a !important; }

.mc-search-x{
  color:#0f172a !important;
  background:#fff !important;
  border:1px solid rgba(2,6,23,.12) !important;
}

#mcSearchInput{
  color:#0f172a !important;
}

#mcSearchInput::placeholder{
  color:#64748b !important;
  opacity: 1 !important;
}

.mc-search-item-main{ color:#0f172a !important; }
.mc-search-item-sub{ color:#64748b !important; }
/* =========================================================
   FINAL LOCK: TOP BAR (OPTION A) - CONSISTENT ON ALL PAGES
   ========================================================= */

.mc-shell .mc-appbar.mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  height: 60px !important;
  padding: 10px 14px !important;

  display:flex !important;
  align-items:center !important;
  gap:12px !important;

  background:#fff !important;
  border-bottom: 1px solid rgba(2,6,23,.10) !important;
}

/* Brand (left) */
.mc-shell .mc-brand.mc-brand-a{
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  min-width: 120px !important;
}
.mc-shell .mc-brand-word{
  font-weight: 950 !important;
  font-size: 18px !important;
  letter-spacing: .2px !important;
  background: linear-gradient(135deg, #0078d7, #00b050) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Center title */
.mc-shell #mcAppbarTitle{
  flex: 1 !important;
  text-align:center !important;
  font-weight: 900 !important;
  color:#0f172a !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Actions (right) */
.mc-shell .mc-actions-a{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
}

.mc-shell .mc-icon-btn{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius: 12px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: #fff !important;

  box-shadow: 0 8px 18px rgba(2,6,23,.08) !important;
  text-decoration:none !important;
  cursor:pointer !important;

  user-select:none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
}

/* Red dot */
.mc-shell .mc-badge-dot{
  position:absolute !important;
  top:8px !important;
  right:9px !important;
  width:10px !important;
  height:10px !important;
  border-radius:50% !important;
  background:#ef4444 !important;
  border:2px solid #fff !important;
}

/* Mobile sizing */
@media(max-width:768px){
  .mc-shell .mc-appbar.mc-appbar-a{ height: 56px !important; padding: 8px 10px !important; }
  .mc-shell .mc-brand-word{ font-size: 16px !important; }
  .mc-shell #mcAppbarTitle{ font-size: 13px !important; }
  .mc-shell .mc-icon-btn{ width:38px !important; height:38px !important; border-radius: 12px !important; }
}
/* =========================================================
   FINAL HARD LOCK — OPTION A TOP BAR (LAST RULE WINS)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-shell .mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  height: 60px !important;
  padding: 10px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  background: #fff !important;
  border-bottom: 1px solid rgba(2,6,23,.10) !important;
}

.mc-shell .mc-brand-a{
  display:flex !important;
  align-items:center !important;
  text-decoration:none !important;
  min-width:auto !important;
}

.mc-shell .mc-brand-word{
  font-weight:950 !important;
  font-size:18px !important;
  letter-spacing:.2px !important;
  background: linear-gradient(135deg, #0078d7, #00b050) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color: transparent !important;
}

.mc-shell .mc-appbar-title{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 8px !important;
}

.mc-shell .mc-actions-a{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.mc-shell .mc-icon-btn{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:12px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background:#fff !important;
  box-shadow: 0 8px 18px rgba(2,6,23,.08) !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

@media(max-width:480px){
  .mc-shell .mc-appbar-a{
    height: 56px !important;
    padding: 8px 12px !important;
    gap: 10px !important;
  }
  .mc-shell .mc-brand-word{ font-size: 16px !important; }
  .mc-shell .mc-appbar-title{ font-size: 12.5px !important; padding: 0 6px !important; }
  .mc-shell .mc-icon-btn{ width:38px !important; height:38px !important; border-radius:12px !important; }
}
/* =========================================================
   FINAL TOP BAR (NO TITLE WORDS) — BIG SEARCH PILL
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-shell .mc-appbar-a{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

.mc-shell .mc-search-pill-a{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 760px !important;

  display:flex !important;
  align-items:center !important;
  gap:10px !important;

  height: 44px !important;
  padding: 0 14px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  background: #f1f5f9 !important;

  cursor: pointer !important;
}

.mc-shell .mc-search-emoji-a{
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.14) !important;
}

.mc-shell .mc-search-ph-a{
  font-weight: 800 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Mobile: keep pill visible + compact */
@media (max-width: 480px){
  .mc-shell .mc-search-pill-a{
    height: 40px !important;
    padding: 0 10px !important;
  }
  .mc-shell .mc-search-emoji-a{
    width: 32px !important;
    height: 32px !important;
  }
  .mc-shell .mc-search-ph-a{
    font-size: 12.5px !important;
  }
}
/* =========================================================
   SEARCH MODAL POLISH (premium list)
   Paste at VERY BOTTOM of shell-patch.css
   ========================================================= */

.mc-search-panel{
  border-radius: 20px !important;
  padding: 14px 14px 16px !important;
}

.mc-search-top{
  padding: 6px 4px 12px !important;
}

.mc-search-title{
  font-size: 16px !important;
  font-weight: 950 !important;
}

.mc-search-x{
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size: 18px !important;
}

/* input bar: tighter + cleaner */
.mc-search-box{
  background: #f1f5f9 !important;
  border: 1px solid rgba(2,6,23,.10) !important;
  border-radius: 999px !important;
  padding: 10px 12px !important;
}

#mcSearchInput{
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* suggestion list: less “big white blocks”, more app-like rows */
.mc-search-list{
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
  max-height: 56vh !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

/* each suggestion row */
.mc-search-item{
  border-radius: 16px !important;
  padding: 12px 12px !important;
  border: 1px solid rgba(2,6,23,.08) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06) !important;
}

.mc-search-item:hover{
  border-color: rgba(0,120,215,.22) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.10) !important;
}

/* typography hierarchy */
.mc-search-item-main{
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: .1px !important;
}

.mc-search-item-sub{
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #64748b !important;
}

/* Mobile: keep it clean */
@media (max-width: 480px){
  .mc-search-panel{ margin-top: 14px !important; }
  .mc-search-item{ padding: 11px 11px !important; }
  .mc-search-item-sub{ font-size: 11.5px !important; }
}
/* =========================================================
   FIX: Account / Page area collapsing to thin line
   (force shell layout to stretch full width)
   Paste at VERY BOTTOM (LAST RULES)
   ========================================================= */

.mc-shell,
#mcPageSlot,
#mcPageSlot > *{
  width: 100% !important;
  max-width: none !important;
}

/* Main/page must not shrink */
#mcPageSlot main,
.mc-shell main,
main{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Shell body layout: sidebar + page */
.mc-body{
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
}

/* Sidebar fixed, page flexible */
.mc-sidebar{
  flex: 0 0 280px !important;
}

.mc-page{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* If ANYTHING is centering/shrinking the page content */
.mc-page > *{
  max-width: none !important;
}
/* Hide "Track" label on tiny screens */
@media (max-width: 520px){
  .mc-hide-xs{ display:none; }
}
/* ===== APPBAR ICON BUTTON FIX (prevents icon floating outside) ===== */
.mc-appbar-actions .mc-icon-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  padding:8px 10px !important;
  line-height:1 !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  min-height:36px !important;
  box-sizing:border-box !important;
}

.mc-appbar-actions .mc-icon-btn span{
  display:inline-block !important;
  line-height:1 !important;
}
/* ===== FINAL FIX: Track button size = SAME HEIGHT as others ===== */
.mc-shell .mc-icon-btn.mc-icon-btn-label{
  height: 40px !important;          /* SAME as other icons */
  min-height: 40px !important;
  width: auto !important;

  padding: 0 10px !important;       /* tighter */
  gap: 6px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* icon inside Track */
.mc-shell .mc-icon-btn.mc-icon-btn-label .mc-ic{
  font-size: 16px !important;       /* match emoji size */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* text inside Track */
.mc-shell .mc-icon-btn.mc-icon-btn-label .mc-hide-xs{
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
/* Sidebar stays visible (desktop only) */
@media (min-width: 769px){
  .mc-shell .mc-sidebar{
    position: sticky !important;
    top: 60px !important;        /* start below the fixed top bar */
    height: calc(100vh - 60px) !important;
    overflow-y: auto !important; /* sidebar scrolls if long */
    align-self: flex-start !important;
  }

  /* Prevent page area from pushing sidebar */
  .mc-shell .mc-body{
    align-items: flex-start !important;
  }
}
/* =========================================================
   PROPERTY MODULE (Rentals) — styles
   (Global because page <head> CSS links are not injected)
   ========================================================= */
.property-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 90px;
}

.property-hero{
  border: 1px solid rgba(2,6,23,.10);
  background: linear-gradient(135deg, rgba(0,120,215,.10), rgba(0,176,80,.10));
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

.property-hero h1{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
}
.property-hero p{
  margin: 6px 0 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.35;
}

.property-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.p-card{
  grid-column: span 12;
  border: 1px solid rgba(2,6,23,.10);
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

@media (min-width: 920px){
  .p-card.span-6{ grid-column: span 6; }
  .p-card.span-4{ grid-column: span 4; }
  .p-card.span-8{ grid-column: span 8; }
}

.p-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 0 0 8px;
}

.p-ic{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(2,6,23,.06);
  font-size: 18px;
}

.p-title h2{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  color: #0f172a;
}
.p-sub{
  margin: 0;
  color: #475569;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

.p-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* kill ugly blue links globally for these buttons */
.p-btn{
  appearance:none;
  border:none;
  cursor:pointer;
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 13px;
  color: #0f172a;
  background: rgba(2,6,23,.06);
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.p-btn:hover{ transform: translateY(-1px); background: rgba(2,6,23,.08); }
.p-btn:active{ transform: translateY(0px); }

.p-btn.primary{
  color: #fff !important;
  background: linear-gradient(135deg, #0078d7, #00b050);
  box-shadow: 0 12px 24px rgba(2,6,23,.12);
}

.p-chiprow{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}

.p-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.8);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 850;
  color: #0f172a;
  font-size: 12.5px;
}

.p-note{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(2,6,23,.16);
  background: rgba(2,6,23,.03);
  padding: 10px 12px;
  color: #475569;
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.35;
}

.p-list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-weight: 650;
  line-height: 1.5;
}
/* =========================================================
   MOBILE BOTTOM NAV FIX (support 7 items: incl. Property + More)
   Paste at END of shell-patch.css
========================================================= */

/* make sure nav is always visible and not clipped */
.mc-bottom-nav{
  position: fixed;              /* in case it isn't already */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  overflow: hidden;
}

/* 7 equal columns (Home, Projects, CBS, Vehicles, Services, Property, More) */
.mc-bottom-nav{
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

/* each item must be allowed to shrink, not overflow */
.mc-bottom-nav > a{
  min-width: 0;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* make labels smaller so all 7 fit nicely */
.mc-bottom-nav > a > span{
  font-size: 18px;
  line-height: 1;
}
.mc-bottom-nav > a > small{
  font-size: 10px;
  line-height: 1.05;
  margin-top: 3px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* extra tiny phones: slightly tighter */
@media (max-width: 380px){
  .mc-bottom-nav > a{ padding: 7px 1px; }
  .mc-bottom-nav > a > span{ font-size: 17px; }
  .mc-bottom-nav > a > small{ font-size: 9px; }
}
/* =========================================================
   FIX: Bottom nav should be MOBILE ONLY (hide on desktop)
========================================================= */

/* default: desktop/tablet -> hide */
.mc-bottom-nav{
  display: none !important;
}

/* show only on mobile */
@media (max-width: 900px){
  .mc-bottom-nav{
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
  }

  /* give pages space so content doesn't go behind bottom nav */
  body{
    padding-bottom: 88px; /* adjust if your nav is taller */
  }
}
@media (max-width: 900px){
  .mc-bottom-nav a{
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .mc-bottom-nav small{
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }
}
/* =========================================================
   FIX: Bottom nav must fit 7 items (including "More")
========================================================= */

@media (max-width: 900px){

  /* force exact equal slots so the last item doesn't disappear */
  .mc-bottom-nav{
    display: grid !important;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    gap: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }

  .mc-bottom-nav a{
    min-width: 0;
    padding: 6px 2px;
    text-align: center;
  }

  .mc-bottom-nav a span{
    display: block;
    font-size: 18px;  /* icon size */
    line-height: 1;
  }

  .mc-bottom-nav a small{
    display: block;
    font-size: 10px;  /* label size */
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* extra-tight phones */
@media (max-width: 380px){
  .mc-bottom-nav a span{ font-size: 17px; }
  .mc-bottom-nav a small{ font-size: 9px; }
}
/* =========================================================
   FINAL CRISP LOCK (LAST RULES WIN)
   - Prevent "soft/blur" text from transform layers
   - Stabilize shell layout
   ========================================================= */

/* 1) Never leave transforms on main page wrapper */
.mc-page,
#mcPageSlot,
#mcPageSlot > *,
.mc-page-enter{
  transform: none !important;
  filter: none !important;
}

/* 2) Disable transform-based page enter (fade only) */
.mc-page-enter.mc-in{
  animation: mcPageEnterFade .35s ease both !important;
  will-change: opacity !important;
}
@keyframes mcPageEnterFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/* 3) Improve font rendering (especially Windows/Chrome) */
html, body{
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Avoid forcing caret off everywhere (can break inputs) */
.mc-appbar *{
  caret-color: auto !important;
}

/* =====================================================
   GLOBAL LOADING OVERLAY (spinner)
   ===================================================== */

.mc-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events:none;
  transition: opacity 180ms ease;
}

.mc-loader.is-on{
  opacity: 1;
  pointer-events:auto;
}

.mc-loader .mc-loader-card{
  width:min(420px, 92vw);
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(15,23,42,.12);
  padding:18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
}

.mc-loader .mc-spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  border:4px solid rgba(10,102,194,.18);
  border-top-color: rgba(15,163,107,.95);
  animation: mcSpin 0.75s linear infinite;
}

@keyframes mcSpin { to { transform: rotate(360deg); } }

.mc-loader .mc-loader-title{
  font-weight:950;
  color:#0f172a;
  letter-spacing:.2px;
}

.mc-loader .mc-loader-sub{
  font-size:13.5px;
  color:#475569;
  line-height:1.35;
}

.mc-loader .mc-loader-logo{
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:contain;
  display:none; /* default hidden unless branded */
}

/* Branded loader mode (home) */
.mc-loader.is-branded .mc-loader-logo{
  display:block;
}

@media (prefers-reduced-motion: reduce){
  .mc-loader, .mc-loader.is-on{ transition:none !important; }
  .mc-loader .mc-spinner{ animation:none !important; }
}
/* =====================================================
   GLOBAL PAGE TRANSITIONS (slide in / slide out)
   ===================================================== */

:root{
  --mc-enter-x: 16px;
  --mc-exit-x: -12px;
  --mc-dur-in: 260ms;
  --mc-dur-out: 200ms;
  --mc-ease: cubic-bezier(.2,.9,.2,1);
}

body.mc-page{
  opacity: 0;
  transform: translateX(var(--mc-enter-x));
  transition: opacity var(--mc-dur-in) var(--mc-ease),
              transform var(--mc-dur-in) var(--mc-ease);
}

body.mc-page.mc-page--ready{
  opacity: 1;
  transform: translateX(0);
}

body.mc-page.mc-page--leaving{
  opacity: 0;
  transform: translateX(var(--mc-exit-x));
  transition: opacity var(--mc-dur-out) var(--mc-ease),
              transform var(--mc-dur-out) var(--mc-ease);
}

@media (prefers-reduced-motion: reduce){
  body.mc-page,
  body.mc-page.mc-page--leaving{
    transition: none !important;
    transform: none !important;
  }
}

/* =====================================================
   GLOBAL LOADING OVERLAY (spinner)
   ===================================================== */

.mc-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events:none;
  transition: opacity 180ms ease;
}

.mc-loader.is-on{
  opacity: 1;
  pointer-events:auto;
}

.mc-loader .mc-loader-card{
  width:min(420px, 92vw);
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(15,23,42,.12);
  padding:18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
}

.mc-loader .mc-spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  border:4px solid rgba(10,102,194,.18);
  border-top-color: rgba(15,163,107,.95);
  animation: mcSpin 0.75s linear infinite;
}

@keyframes mcSpin { to { transform: rotate(360deg); } }

.mc-loader .mc-loader-title{
  font-weight:950;
  color:#0f172a;
  letter-spacing:.2px;
}

.mc-loader .mc-loader-sub{
  font-size:13.5px;
  color:#475569;
  line-height:1.35;
}

.mc-loader .mc-loader-logo{
  width:72px;
  height:72px;
  border-radius:18px;
  object-fit:contain;
  display:none; /* default hidden unless branded */
}

.mc-loader.is-branded .mc-loader-logo{
  display:block;
}

@media (prefers-reduced-motion: reduce){
  .mc-loader, .mc-loader.is-on{ transition:none !important; }
  .mc-loader .mc-spinner{ animation:none !important; }
}
/* =========================================================
   FINAL FIX: Appbar action icons must NEVER float outside
   - Centers emoji/icons perfectly
   - Prevents clipping/hiding of the whole actions row
   Paste as LAST block in shell-patch.css
   ========================================================= */

/* Let middle area shrink so actions always fit */
.mc-appbar,
.mc-shell .mc-appbar{
  overflow: visible !important; /* don't hide the whole actions row */
}

.mc-search-pill,
.mc-shell .mc-search-pill{
  min-width: 0 !important;      /* critical: allows search to shrink */
  flex: 1 1 auto !important;
}

/* Actions container must not shrink into nothing */
.mc-appbar-actions,
.mc-shell .mc-appbar-actions,
.mc-actions-a{
  flex: 0 0 auto !important;
  min-width: max-content !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* The ACTUAL fix: make each action button a perfect centered box */
.mc-action-btn,
.mc-shell .mc-action-btn,
.mc-icon-btn,
.mc-shell .mc-icon-btn{
  width: 44px !important;
  height: 44px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;
  line-height: 1 !important;
  font-size: 18px !important;      /* controls emoji size */

  overflow: hidden !important;     /* hides any glyph overflow INSIDE button */
  box-sizing: border-box !important;
}

/* If icons are wrapped in spans/emojis, kill baseline behavior */
.mc-action-btn > *,
.mc-icon-btn > *{
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* If you have SVGs/images inside buttons */
.mc-action-btn svg,
.mc-icon-btn svg,
.mc-action-btn img,
.mc-icon-btn img{
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

/* Mobile: slightly smaller so they fit comfortably */
@media (max-width: 520px){
  .mc-action-btn,
  .mc-shell .mc-action-btn,
  .mc-icon-btn,
  .mc-shell .mc-icon-btn{
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
  }

  .mc-appbar-actions,
  .mc-shell .mc-appbar-actions,
  .mc-actions-a{
    gap: 6px !important;
  }
}
/* =========================================================
   APPBAR ACTIONS HOTFIX (NO HEIGHT INCREASE, NO CLIP)
   - Desktop: icon + readable label (same 40px height)
   - Mobile: icons only, centered
   Paste as LAST block in shell-patch.css
   ========================================================= */

/* Kill the "grid 44x44 overflow hidden" behavior for THESE actions */
.mc-shell .mc-appbar-actions.mc-actions-a a.mc-icon-btn.mc-action{
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  padding: 0 10px !important;
  overflow: visible !important;     /* critical: don’t clip the label */
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* Icon styling (prevents baseline gap under emoji) */
.mc-shell .mc-appbar-actions.mc-actions-a .mc-action-ic{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 18px !important;
}

/* Label should exist and be readable on desktop */
.mc-shell .mc-appbar-actions.mc-actions-a .mc-action-txt{
  display: inline !important;
  visibility: visible !important;
  opacity: .9 !important;

  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  white-space: nowrap !important;
}

/* Mobile: icons only (centered) */
@media (max-width: 640px){
  .mc-shell .mc-appbar-actions.mc-actions-a a.mc-icon-btn.mc-action{
    width: 40px !important;
    padding: 0 !important;
  }
  .mc-shell .mc-appbar-actions.mc-actions-a .mc-action-txt{
    display: none !important;
  }
}
/* =========================================================
   HARD FIX (LAST BLOCK WINS)
   - Appbar layout: left brand, center search, right actions
   - Fix: actions dropping down
   - Fix: badge dot position
   ========================================================= */

.mc-shell .mc-appbar.mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  height: 60px !important;
  padding: 8px 14px !important;

  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;

  background: #fff !important;
  border-bottom: 1px solid rgba(2,6,23,.10) !important;
}

/* keep brand centered vertically */
.mc-shell .mc-brand.mc-brand-a{
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

/* search stays centered and shrinks if needed */
.mc-shell .mc-search-pill-a{
  align-self: center !important;
  justify-self: center !important;

  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;

  height: 44px !important;
  margin: 0 !important;
}

/* RIGHT ACTIONS: force them INSIDE the bar and centered */
.mc-shell .mc-appbar-actions.mc-actions-a{
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 10px !important;

  position: relative !important;
  top: 0 !important;
  transform: none !important;
}

/* action buttons: same size, no drop, no weird padding */
.mc-shell .mc-appbar-actions.mc-actions-a a.mc-icon-btn.mc-action{
  height: 40px !important;
  width: 40px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;
  margin: 0 !important;

  line-height: 1 !important;
  overflow: visible !important;
}

/* make emoji sit perfectly centered */
.mc-shell .mc-appbar-actions.mc-actions-a .mc-action-ic{
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* the notification dot must anchor to the BUTTON (not float) */
.mc-shell a.mc-action-notif{
  position: relative !important;
}
.mc-shell a.mc-action-notif .mc-badge-dot{
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
}

/* Mobile: icons only */
@media (max-width: 640px){
  .mc-shell .mc-appbar.mc-appbar-a{ height: 56px !important; padding: 6px 10px !important; }
  .mc-shell .mc-search-pill-a{ height: 40px !important; }
  .mc-shell .mc-action-txt{ display: none !important; }
}

/* =========================================================
   KEPLER — FINAL HOME / APPBAR POLISH
   PASTE THIS AS THE VERY LAST BLOCK IN shell-patch.css
   ========================================================= */

/* ---------- Brand rename styling ---------- */
.mc-shell .mc-brand-word{
  font-weight: 950 !important;
  font-size: 18px !important;
  letter-spacing: .2px !important;
  background: linear-gradient(135deg, #0078d7, #00b050) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ---------- Final appbar layout lock ---------- */
.mc-shell .mc-appbar.mc-appbar-a{
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;

  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;

  height: 60px !important;
  padding: 8px 14px !important;

  background: #ffffff !important;
  border-bottom: 1px solid rgba(2,6,23,.08) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.05) !important;
}

/* ---------- Brand ---------- */
.mc-shell .mc-brand.mc-brand-a{
  display: inline-flex !important;
  align-items: center !important;
  min-width: auto !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* ---------- Search pill ----------
   removes the ugly "double box" feel */
.mc-shell .mc-search-pill-a{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;
  height: 42px !important;

  padding: 0 12px !important;
  margin: 0 !important;

  background: #f8fafc !important;
  border: 1px solid rgba(2,6,23,.08) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.mc-shell .mc-search-pill-a::before,
.mc-shell .mc-search-pill-a::after{
  content: none !important;
}

.mc-shell .mc-search-emoji-a{
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(0,120,215,.10) !important;
  border: 1px solid rgba(0,120,215,.10) !important;
  line-height: 1 !important;
  font-size: 16px !important;
}

.mc-shell .mc-search-ph-a{
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #64748b !important;
}

/* ---------- Action row ----------
   fixes icons sitting badly in the boxes */
.mc-shell .mc-appbar-actions.mc-actions-a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
}

.mc-shell .mc-appbar-actions.mc-actions-a a.mc-icon-btn.mc-action{
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(2,6,23,.08) !important;
  box-shadow: 0 4px 10px rgba(15,23,42,.05) !important;

  line-height: 1 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.mc-shell .mc-appbar-actions.mc-actions-a .mc-action-ic{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 1 !important;
  font-size: 18px !important;
  margin: 0 !important;
}

.mc-shell .mc-appbar-actions.mc-actions-a .mc-action-txt{
  display: none !important;
}

/* notification badge should sit properly inside bell button */
.mc-shell a.mc-action-notif{
  position: relative !important;
}

.mc-shell a.mc-action-notif [data-mc-notif-count]{
  position: absolute !important;
  top: -6px !important;
  right: -8px !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  font-size: 10px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
}

/* ---------- Desktop ----------
   keep search readable and actions neat */
@media (min-width: 761px){
  .mc-shell .mc-search-ph-a{
    display: inline !important;
  }
}

/* ---------- Mobile ----------
   keep icon-only search, remove outer ugly feel */
@media (max-width: 760px){
  .mc-shell .mc-appbar.mc-appbar-a{
    grid-template-columns: auto auto auto !important;
    height: 56px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }

  .mc-shell .mc-search-pill-a{
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .mc-shell .mc-search-ph-a{
    display: none !important;
  }

  .mc-shell .mc-search-emoji-a{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 10px !important;
  }

  .mc-shell .mc-appbar-actions.mc-actions-a{
    gap: 6px !important;
  }

  .mc-shell .mc-appbar-actions.mc-actions-a a.mc-icon-btn.mc-action{
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
  }
}

/* ---------- Home deals tidy-up ---------- */
.mc-home-deals-shell{
  padding: 12px !important;
}

.mc-rewards-strip{
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 10px !important;
}

.mc-reward-tile{
  min-height: 108px !important;
}

@media (max-width: 900px){
  .mc-rewards-strip{
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Home section spacing polish ---------- */
.mc-shell #mcPageSlot .hero-section{
  margin: 0 !important;
  padding: 12px 0 8px !important;
}

.mc-shell #mcPageSlot .mc-featured-motion{
  margin-top: 18px !important;
}

.mc-shell #mcPageSlot .mc-home-after{
  margin-top: 14px !important;
}
/* =========================================================
   GLOBAL PAGE TRANSITION ENGINE (Kepler motion layer)
   Safe enhancement — works with include.js router
   ========================================================= */

main#app-main,
.mc-main,
.app-main {

  opacity: 0;
  transform: translateY(10px) scale(.995);

  transition:
    opacity .38s cubic-bezier(.22,.61,.36,1),
    transform .42s cubic-bezier(.22,.61,.36,1);

}

/* Active page state */

main#app-main.mc-in,
.mc-main.mc-in,
.app-main.mc-in {

  opacity: 1;
  transform: translateY(0) scale(1);

}


/* Entry animation */

.mc-page-enter {

  opacity: 0;
  transform: translateY(18px) scale(.992);

}


/* Prevent flashing on reload */

html.mc-preload main {

  opacity: 0 !important;

}


/* Smooth iframe-loaded account pages */

iframe {

  transition:
    opacity .25s ease,
    transform .25s ease;

}


/* Account iframe fade-in */

iframe[src] {

  opacity: 1;

}


/* Navigation click micro-motion polish */

.account-nav a.nav-link,
.sidebar a,
.bottom-nav a {

  transition:
    transform .15s ease,
    background .15s ease,
    color .15s ease;

}

.account-nav a.nav-link:active,
.sidebar a:active,
.bottom-nav a:active {

  transform: scale(.97);

}


/* Button polish */

button {

  transition:
    transform .12s ease,
    box-shadow .18s ease;

}

button:active {

  transform: scale(.96);

}

/* =========================================================
   KEPLER UNIVERSAL PAGE TRANSITION SYSTEM
   FINAL LAST BLOCK — this must stay at the very bottom
   ========================================================= */

#mcPageSlot{
  position: relative;
  min-height: 120px;
}

#mcPageSlot > *{
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ENTER */
#mcPageSlot > *.mc-page-enter{
  opacity: 0;
  transform: translateX(18px) translateY(4px);
}

#mcPageSlot > *.mc-page-enter.mc-page-enter-active{
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition:
    opacity 320ms cubic-bezier(.22,.61,.36,1),
    transform 380ms cubic-bezier(.22,.61,.36,1);
}

/* EXIT */
#mcPageSlot > *.mc-page-exit{
  opacity: 1;
  transform: translateX(0) translateY(0);
}

#mcPageSlot > *.mc-page-exit.mc-page-exit-active{
  opacity: 0;
  transform: translateX(-14px) translateY(2px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

/* Stop older conflicting hero-only animation effects inside shell pages */
#mcPageSlot .hero-section,
#mcPageSlot .projects-hero,
#mcPageSlot .landing-hero,
#mcPageSlot .category-hero{
  animation: none !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  #mcPageSlot > *.mc-page-enter,
  #mcPageSlot > *.mc-page-enter.mc-page-enter-active,
  #mcPageSlot > *.mc-page-exit,
  #mcPageSlot > *.mc-page-exit.mc-page-exit-active{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* FINAL HARD LOCK — Home Services 2 columns on mobile */
@media (max-width: 640px){
  .service-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }
}