* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Desktop: hide the whole navbar and remove its height from the layout */
@media (min-width: 901px){
  .navbar { display: none; }
  :root { --nav-h: 0px; }
}

html, body {
  height: 100%;
  font-family: 'Inter';
  background-color: #f4f4f4;
}
.dash-toggle { display: none; }
.navbar {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.navbarul {
  display: flex;
  gap: 90px;
  list-style: none;
  font-size: 25px;
  font-weight: 500;
  padding: 0;
  margin: 0;
}

.navbarli a {
  text-decoration: none;
  color: black;
}

.signup-button {
  position: absolute;
  right: 200px;
  background-color: #1F6F79;
  color: white;
  padding: 12px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.signup-button:hover {
  background-color: #17565e;
}

a {
    text-decoration: none;
    color: black;
}


/* SIDEBAR */
.sidebar {
  width: 250px;
  background-color: #2E2E2E;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* CONTENT AREA */
.content {
  flex: 1;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
}

.navbar-center2 {
  width: 100%;
  margin-bottom: 20px;
  display: flex; 
  justify-content: center;
}

.navbarul2 {
  display: flex;
  gap: 90px;
  list-style: none;
  font-size: 25px;
  font-weight: 300;
  padding: 0;
  margin: 0;
  justify-content: center; /* center nav items */
}

.navbarli2 a {
  text-decoration: none;
  color: black;
  font-size: 25px;
  line-height: 1;
}


.navbarli2.selected a {
  color: black;
  font-weight: 550;
  font-size: 30px;
  transition: 0.5s;
}


.text-under-shipped {
  margin-top: 40px;
  align-items: center;
  font-size: 20px;
}


.packages-box {
  width: 100%;
  background-color: #ffffff;
  border-radius: 40px;
  margin-top: 40px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  box-sizing: border-box;
  align-self: stretch;
}

.packages-header{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr minmax(0, 2fr) 170px 170px;
  min-width: 0;
  column-gap:20px;
  min-height:74px;
  background:#1F6F79;
  border-top-left-radius:40px;
  border-top-right-radius:40px;
  color:#fff;
  padding:20px;
  font-weight:500;
  align-items:center;
}

.packages-header span {
  align-self: center;
}

.package-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr minmax(0, 2fr) 170px 170px;
  min-width: 0;
  column-gap:20px;
  align-items:center;
  padding:20px;
  border-bottom:1px solid #e5e5e5;
}


.package-row > span:nth-child(4){
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.package-row:last-child {
  border-bottom: none;
}

.package-btn {
  background-color: #ffffff;
  border: 1px solid #1F6F79;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.consolidation-btn {
  background-color: #ffffff;
  border: 1px solid #1F6F79;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.package-btn:hover {
  background-color: #f5f5f5;
}


.package-row .package-btn {
  justify-self: center;
}

.package-summary {
  background-color: #f5f8fc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  color: green;
  font-weight: 600;
}

.send-btn {
  background-color: #43a2cc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
}

.package-details {
  margin-top: 20px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  font-size: 14px;
}


.package-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0 10px;
  background-color: #f4f4f4;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  font-size: 14px;
}

.package-row.open .package-details {
  max-height: 500px; /* adjust as needed */
  opacity: 1;
  margin-top: 10px;
  padding: 15px 10px 10px 10px;
}

.package-btn.view-details {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.package-btn.view-details.active {
  background-color: #1F6F79;
  color: white;
}

.package-btn.add-to-bundle {
  transition: background-color 0.3s ease, color 0.3s ease, width 0.3s ease;
  background-color: white;
  justify-self: center;
  border: 1px solid #1F6F79;
  width: 118px;
  position: relative;
  overflow: hidden;
  text-indent: -9999px; /* hide original text */
}

/* show text with pseudo-element */
.package-btn.add-to-bundle::after {
  content: 'Add to Bundle';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.1s ease-in 0.3s; /* delay until width transition ends */
  opacity: 1;
  color: black;
}

/* active state */
.package-btn.add-to-bundle.active {
  background-color: #1F6F79;
  color: white;
  width: 160px;
}

/* switch text AFTER animation finishes */
.package-btn.add-to-bundle.active::after {
  content: 'Remove from Bundle';
  color: white;
  transition-delay: 0.3s;
}

.consolidation-btn {
  background-color: #ffffff;
  border: 1px solid #1F6F79;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  margin: auto; /* centers the button in its grid/column */
  transition: width 0.4s ease, opacity 0.3s ease;
}

.consolidation-btn.show {
  width: 170px;
  opacity: 1;
}

.bundle-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.package-row .package-btn.view-details { justify-self: center; }
.package-row .package-btn.add-to-bundle { justify-self: center; }


.side-nav{
  padding:24px 16px;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
}

.side-title{
  font-size:18px;
  font-weight:600;
  letter-spacing:.3px;
  opacity:.9;
  margin-bottom:6px;
}

.side-menu{
  list-style:none;
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
}

.side-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  width:100%;
  border-radius:14px;
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-weight:500;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}

.side-menu a:hover{
  background:#3a3a3a;
  color:#fff;
}

/* active page */
.side-menu a.active{
  background:#1F6F79;
  color:#fff;
  box-shadow:0 6px 18px rgba(31,111,121,.35);
}

/* tiny dot indicator (optional) */
.side-menu a::before{
  content:"";
  width:8px; height:8px; border-radius:50%;
  background:transparent;
  transition:background .2s ease;
}
.side-menu a.active::before{ background:#fff; }

.packages-box.is-empty {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  margin: auto;
  align-self: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-top: 0;
}

.packages-box.is-empty .empty-state {
  text-align: center;
  max-width: 520px;
  padding: 24px;
}

.empty-state {
  text-align: center;
  max-width: 520px;
  padding: 24px;
}

.empty-state h3 { margin: 0 0 8px; font-weight: 600; }
.empty-state p  { margin: 0 0 12px; color: #6b7280; }

.primary-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: #111827;
  color: #fff;
}

/* ===========================
   MOBILE LAYOUT (<= 900px)
   =========================== */
@media (max-width: 900px) {
  html, body {
    background: #f7f7f7;
  }

  /* Navbar tweaks */
  .navbar {
    height: 64px;
    justify-content: space-between;
    padding: 0 16px;
  }
  .navbarul { display: none; } /* hide large nav list */
  .signup-button {
    position: static;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 15px;
  }

  /* Optional hamburger (if present in HTML) */
  .dash-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 0; background: transparent; padding: 0;
  }
  .dash-toggle span {
    display: block; width: 24px; height: 2px; background: #222; margin: 5px 0;
  }

  /* Layout becomes stacked */
  .main-layout {
    flex-direction: column;
    height: auto;
  }

  /* Sidebar: slide-in drawer */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: #2E2E2E;
    border-radius: 0 24px 24px 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }

  /* Dim overlay */
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
  }
  .sidebar-overlay.show { display: block; }

  /* Content padding tighter */
  .content {
    padding: 16px;
  }

  /* Status filters: make scrollable & smaller */
  .navbar-center2 {
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbarul2 {
    gap: 16px;
    font-size: 16px;
    padding: 8px 2px;
    white-space: nowrap;
  }
  .navbarli2 a { font-size: 16px; }
  .navbarli2.selected a { font-size: 18px; }

  /* Packages container looks like a stack of cards */
  .packages-box {
    border-radius: 16px;
    box-shadow: none;
    background: transparent;
    margin-top: 16px;
  }

  /* Hide table header on mobile */
  .packages-header { display: none; }

  /* Each row becomes a card */
  .package-row {
    display: block;                /* from grid -> block */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 14px 8px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }

  /* Data lines inside the card */
  .package-row > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    line-height: 1.35;
  }
  .package-row > span:last-of-type { border-bottom: 0; }

  /* Add labels using :nth-of-type so we don't need to change HTML */
  /* Order expected: Name, Tracking Number, Arrival Date, Status */
  .package-row > span:nth-of-type(1)::before { content: 'Name'; }
  .package-row > span:nth-of-type(2)::before { content: 'Tracking Number'; }
  .package-row > span:nth-of-type(3)::before { content: 'Arrival Date'; }
  .package-row > span:nth-of-type(4)::before { content: 'Status'; }

  .package-row > span::before {
    color: #6b7280;
    font-weight: 600;
    margin-right: 12px;
    flex: 0 0 auto;
  }

  /* Buttons become full-width */
  .package-btn,
  .consolidation-btn {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
  }
  .package-btn + .package-btn { margin-top: 8px; }

  /* Remove the animated width behavior on tiny screens */
  .package-btn.add-to-bundle {
    text-indent: 0;
    width: 100%;
  }
  .package-btn.add-to-bundle::after { content: none; }

  /* Consolidation CTA shows as a normal button */
  .consolidation-btn {
    width: 100% !important;
    opacity: 1 !important;
    margin-top: 8px;
  }

  /* Details section: single column */
  .package-details {
    grid-template-columns: 1fr;
    padding: 0 6px;
    font-size: 14px;
    background: #fafafa;
  }
  .package-row.open .package-details {
    padding: 10px 6px 12px;
  }

  /* Empty state spacing */
  .packages-box.is-empty {
    margin-top: 24px;
  }
}

/* Even tighter on small phones */
@media (max-width: 420px) {
  .navbar { padding: 0 10px; }
  .navbarli2 a { font-size: 15px; }
  .package-row { padding: 12px; }
  .package-row > span { padding: 6px 2px; }
  .package-btn, .consolidation-btn { padding: 10px 12px; font-size: 14px; }
}

.desktop-ctas { display: flex; gap: 12px; margin-left: auto; }
.desktop-ctas .btn-cta { border:1px solid #1F6F79; background:#fff; border-radius:20px; padding:8px 16px; }
.btn-cta { display: none; }
.btn-cta.show { display: inline-block; }

@media (min-width: 901px) {
  .bundle-toolbar { display: none !important; }
}

@media (max-width: 900px) {
  .packages-header { display: none; }
  .bundle-toolbar {
    display: none;
    position: sticky;
    top: 64px;
    z-index: 5;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
  }
  .bundle-toolbar.active { display: flex; }
  .bundle-toolbar .btn-cta {
    flex: 1 1 0;
    border: 1px solid #1F6F79;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 15px;
    background: #fff;
  }
}

/* CTA visibility toggled by JS */
.btn-cta { 
  display: none;
  background: #fff;
  border: 1px solid #1F6F79;
  color: #1F6F79;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 600;
}
.btn-cta.show { display: inline-block; }

/* Desktop header CTA placement */
.desktop-ctas {
  display: grid;
  grid-template-columns: 170px 170px;
  gap: 10px;
  justify-self: end;
}

/* Mobile toolbar (sticky) */
.bundle-toolbar {
  display: none;
}
@media (max-width: 900px) {
  .desktop-ctas { display: none; }
  .bundle-toolbar {
    position: sticky;
    top: 64px;
    z-index: 20;
    background: #1F6F79;
    padding: 10px 12px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
  }
  .bundle-toolbar.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .bundle-toolbar .btn-cta {
    background: #fff;
    color: #0f3940;
    border: 0;
    border-radius: 28px;
    padding: 12px 14px;
  }
}

/* ---- Mobile toolbar polish (override) ---- */
@media (max-width: 900px) {
  /* Ensure toolbar is white, compact, and below the filter tabs */
  .bundle-toolbar {
    display: none;                       /* stays hidden until .active by JS */
    position: sticky;
    top: calc(64px + 56px);              /* navbar (64px) + filters height */
    z-index: 35;
    background: #fff !important;         /* override any teal background */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 10px 12px 6px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    gap: 8px;
  }

  /* When JS toggles it on */
  .bundle-toolbar.active {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  /* Buttons: outline + filled */
  .bundle-toolbar .btn-cta {
    display: inline-block;
    border-radius: 999px;
    padding: 12px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
  }
  .bundle-toolbar .add-new-bundle {
    background: #fff;
    color: #1F6F79;
    border: 1px solid #1F6F79;
  }
  .bundle-toolbar .go-consolidation {
    background: #1F6F79;
    color: #fff;
    border: 1px solid #1F6F79;
  }

  /* Hide desktop header CTAs entirely on mobile */
  .packages-header .desktop-ctas { display: none !important; }
}

/* Desktop hides the mobile toolbar */
@media (min-width: 901px){
  .bundle-toolbar { display: none; }
}

/* Mobile: sticky bar right under navbar */
@media (max-width: 900px){
  .bundle-toolbar{
    position: sticky;
    top: 64px; /* your mobile navbar height */
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.95);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #e5e7eb;
  }
  .bundle-toolbar .btn-cta{
    display: block;
    border: 1px solid #1F6F79;
    color: #1F6F79;
    background: #fff;
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 600;
  }
  .bundle-toolbar .btn-cta:disabled{
    opacity: .45;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
  }

  .desktop-ctas { display: none; } /* desktop header CTAs hidden on mobile */
}

/* Desktop header CTAs (unchanged) */
.desktop-ctas { display: grid; grid-template-columns: 170px 170px; gap: 10px; justify-self: end; }
.btn-cta { display: none; }
.btn-cta.show { display: inline-block; }

@media (max-width: 900px){
  .navbar{
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e5e7eb;

    /* turn navbar into two rows: controls + CTA row */
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 10px;
  }

  .navbarul{ display:none; }   /* hide desktop menu on mobile */

  /* CTA row spans the full width as a second row */
  .mobile-cta-bar{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
  }
  .mobile-cta-bar .btn-cta{
    display: block;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid #1F6F79;
    background: #fff;
    color: #1F6F79;
    font-weight: 600;
  }
  .mobile-cta-bar .btn-cta:disabled{
    opacity: .45;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
  }
}

/* Hide the mobile CTA row on desktop */
@media (min-width: 901px){
  .mobile-cta-bar{ display:none; }
}


@media (max-width: 900px){
  .main-layout, .content { overflow: visible; }

  .content > .navbar-center2{
    margin-left: -12px;   /* match your .content padding-left */
    margin-right: -12px;  /* match your .content padding-right */
    border-radius: 0;     /* avoids rounded clipping at edges */
  }


  #statusFilters{
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
    scroll-padding-left: 12px; /* snap starts nicely at the first pill */
    justify-content: flex-start; /* you already added this; keep it */
    padding-top: 10px;
  }

  /* Optional: if .packages-box has a negative margin that can overlap, give a bit of top space */
  .packages-box{ margin-top: 8px; }
}

@media (max-width:900px){
  .sidebar{
    position: fixed; inset: 0 auto 0 0; z-index:1100;
    width: min(84vw, 320px);
    background:#2E2E2E; border-radius: 0 20px 20px 0;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .sidebar.open{ transform: translateX(0); }  /* JS toggles this */

  .sidebar-overlay{
    position: fixed; inset:0; z-index:1090;
    background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
    display: none;
  }
  .sidebar-overlay.show{ display:block; }     /* JS toggles this */
}


/* ==== NAVBAR/LAYOUT CORE – single source of truth ==== */
:root { --nav-h: 64px; } /* mobile default navbar height */

@media (min-width: 901px){
  .navbar { display: none !important; } /* hide navbar on desktop */
  :root { --nav-h: 0px; }               /* remove its height from layout */
}

/* main layout must be a flex row and honor the var height */
.main-layout {
  display: flex;
  height: calc(100vh - var(--nav-h));
}

/* Hamburger visibility */
.dash-toggle { display: none; }
@media (max-width: 900px){
  .dash-toggle { display: inline-flex; align-items:center; justify-content:center; }
}

/* Drawer z-order + overlay */
.sidebar { z-index: 1100; }
.sidebar-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: none; z-index: 1090;
}
.sidebar-overlay.show{ display: block; }

/* Sidebar structure becomes a column so footer can sit at the bottom */
@media (min-width: 901px){
  .sidebar{
    display: flex;
    flex-direction: column;
    height: 100vh;            /* full column */
  }
  .side-nav{
    display: flex;
    flex-direction: column;
    flex: 1;                  /* take remaining height */
  }

  /* Footer area */
  .side-footer{
    display: block;
    margin-top: auto;         /* push to bottom */
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  /* Logout button styling */
  .logout-btn{
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ef4444;
    background: transparent;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }
  .logout-btn:hover{
    background: #ef4444;
    color: #fff;
  }
}

/* === Sidebar footer + logout — works on desktop AND mobile === */

/* Make the drawer a column everywhere so the footer can stick to bottom */
.sidebar{
  display:flex;                 /* add */
  flex-direction:column;        /* add */
}
.side-nav{
  display:flex;                 /* add */
  flex-direction:column;        /* add */
  flex:1;                       /* take remaining height */
  overflow:auto;
}

/* Footer area (visible on all sizes) */
.side-footer{
  display:block;                /* ensure not hidden */
  margin-top:auto;              /* push to bottom */
  padding:16px;
  border-top:1px solid rgba(255,255,255,.08);
}

/* Logout button (shared) */
.logout-btn{
  width:100%;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #ef4444;
  background:transparent;
  color:#ef4444;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.logout-btn:hover{ background:#ef4444; color:#fff; }

/* Mobile comfort (safe areas/padding) */
@media (max-width: 900px){
  .side-footer{
    padding:16px calc(16px + env(safe-area-inset-right))
             calc(16px + env(safe-area-inset-bottom)) 16px;
  }
}

@media (max-width: 900px){
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-auto-rows: min-content;
    gap: 12px;
    padding: 8px 12px 10px;
  }

  .filter-pills {
    grid-column: 1 / -1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 6px;
    border-top: 1px solid #e5e7eb;
  }
  .filter-pills::-webkit-scrollbar{ display:none; }

  /* Turn the existing list into horizontal “chips” */
  .filter-pills .navbarul2{
    display: flex;
    gap: 8px;
    padding: 0 2px;
    margin: 0;
    white-space: nowrap;
  }
  .filter-pills .navbarli2{
    list-style: none;
    flex: 0 0 auto;
  }
  .filter-pills .navbarli2 a{
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    background: #f3f4f6;        /* light gray like YouTube’s unselected */
    color: #111827;
    border: 1px solid #e5e7eb;
  }
  .filter-pills .navbarli2.selected a{
    background: #1F6F79;        /* your teal */
    color: #fff;
    border-color: #1F6F79;
    box-shadow: 0 6px 16px rgba(31,111,121,.18);
  }
}

/* Desktop keeps your old centered bar look */
@media (min-width: 901px){
  .navbar-center2 { display: flex; justify-content: center; }
  .navbarul2 { display: flex; gap: 24px; }
}