/* Only Mobile/Tablet */
@media (max-width: 1024px) {

  /* If theme mobile header still shows, force hide (adjust selectors if needed) */
  .apus-header-mobile,
  .mobile-header,
  .header-mobile {
    display: none !important;
  }

  /* Mobile actions (icons) - you can tweak to match your header */
  .ncp-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ncp-mobile-actions button,
  .ncp-mobile-actions a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
  }

  .ncp-mobile-actions i {
    font-size: 20px;
    color: #111;
  }

  /* Offcanvas overlay */
  .ncp-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 99990;
  }
  .ncp-offcanvas-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Offcanvas panel */
  .ncp-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    background: #fff;
    transform: translateX(-102%);
    transition: transform .25s ease;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  }
  .ncp-offcanvas.is-open {
    transform: translateX(0);
  }

  .ncp-offcanvas__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ncp-offcanvas__top {
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid #eee;
  }

  /* Auth block (guest) */
  .ncp-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ncp-btn {
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #ddd;
    background: #fff;
  }

  .ncp-btn--solid {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  .ncp-btn--ghost {
    background: #fff;
    color: #111;
  }

  .ncp-btn--post {
    width: 100%;
    margin-top: 8px;
    background: #d4b26a;
    border-color: #d4b26a;
    color: #111;
  }

  .ncp-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    margin-top: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
  }

  .ncp-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  /* Logged-in block */
  .ncp-user-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
  }
  .ncp-user-name { font-weight: 800; font-size: 14px; color: #111; }
  .ncp-user-sub  { font-size: 12px; color: #666; }

  .ncp-user-links {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .ncp-logout {
    border-color: #f2d3d0;
    background: #fff6f5;
  }

  /* Menu list */
  .ncp-offcanvas__menu {
    overflow: auto;
    padding: 8px 10px 20px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .ncp-offcanvas-menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .ncp-offcanvas-menu li a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 10px;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
  }

  .ncp-offcanvas-menu li a:active {
    background: #f5f5f5;
  }

  body.ncp-offcanvas-open {
    overflow: hidden;
    touch-action: none;
  }
}
