/* ════════════════════════════════
     STICKY TOP NAV — BASE
  ════════════════════════════════ */
  .sticky-top-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    width: 100%;
    transition: box-shadow 0.3s;
  }
  .sticky-top-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  }

  /* ── Top bar (brand + hamburger) ── */
  .nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
  }
  .nav-brand-icon { font-size: 22px; line-height: 1; }
  .nav-brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1a2332;
    white-space: nowrap;
  }

  /* ── Hamburger button ── */
  .nav-hamburger {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .nav-hamburger:hover { background: rgba(0,0,0,0.06); }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1a2332;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
  }
  /* Animate to X when open */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* ── Icon grid ── */
  .sticky-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px 10px;
  }

  .sticky-top-nav .nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
  }
  .sticky-top-nav .nav-icon-item:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
  }

  .sticky-top-nav .nav-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
  }
  .sticky-top-nav .nav-icon-item:hover .nav-icon-box {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
  .sticky-top-nav .nav-icon-box svg {
    width: 22px;
    height: 22px;
  }
  .sticky-top-nav .nav-icon-item span {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
  }

  /* ════════════════════════════════
     DESKTOP: hide topbar chrome,
     show icon row normally
  ════════════════════════════════ */
  @media (min-width: 769px) {
    .nav-topbar {
      display: none; /* hide brand+hamburger on desktop */
    }
    .sticky-nav-inner {
      display: flex !important; /* always visible */
    }
  }

  /* ════════════════════════════════
     MOBILE (≤ 768px)
  ════════════════════════════════ */
  @media (max-width: 768px) {
    .nav-topbar {
      display: flex;
      padding: 10px 16px;
    }

    /* Hamburger visible on mobile */
    .nav-hamburger {
      display: flex;
    }

    /* Icon grid hidden by default; slides down when open */
    .sticky-nav-inner {
      display: none;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
      padding: 12px 16px 16px;
      border-top: 1px solid rgba(0,0,0,0.07);
      background: #fff;
    }
    .sticky-nav-inner.open {
      display: flex;
    }

    .sticky-top-nav .nav-icon-item {
      flex: 0 0 calc(25% - 6px); /* 4 per row */
      padding: 8px 4px;
      border-radius: 12px;
    }

    .sticky-top-nav .nav-icon-box {
      width: 48px;
      height: 48px;
      border-radius: 14px;
    }
    .sticky-top-nav .nav-icon-box svg {
      width: 24px;
      height: 24px;
    }
    .sticky-top-nav .nav-icon-item span {
      font-size: 10px;
      white-space: normal;
      line-height: 1.3;
    }
  }

  /* Very small phones */
  @media (max-width: 360px) {
    .sticky-top-nav .nav-icon-item {
      flex: 0 0 calc(33.33% - 6px); /* 3 per row on tiny screens */
    }
    .nav-brand-text { font-size: 13px; }
  }